Skip to content

Set defaultResyncPeriod helm value to 36000 #450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

a-hilaly
Copy link
Member

Fixes aws-controllers-k8s/community#1671

The 0 value of defaultResyncPeriod causes the controller to use 10
hours as a resyncPeriod .. which is a very confusing.

This patch sets the default value to 36000 (10 hours in seconds) to
match the expected default behaviour.

See https://github.com/aws-controllers-k8s/runtime/blob/main/pkg/runtime/reconciler.go#L48-L51

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot requested review from jljaco and RedbackThomson May 20, 2023 02:05
@ack-prow ack-prow bot added the approved label May 20, 2023
@a-hilaly
Copy link
Member Author

/retest

1 similar comment
@a-hilaly
Copy link
Member Author

/retest

@@ -110,7 +110,7 @@ deletionPolicy: delete
# controller reconciliation configurations
reconcile:
# The default duration, in seconds, to wait before resyncing desired state of custom resources.
defaultResyncPeriod: 0
defaultResyncPeriod: 36000 # 10 Hours (https://github.com/aws-controllers-k8s/runtime/blob/main/pkg/runtime/reconciler.go#L48-L51)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would leave out the link to the code. It's not relevant to most customers who simply consume the default values.

Fixes aws-controllers-k8s/community#1671

The 0 value of `defaultResyncPeriod` causes the controller to use 10
hours as a `resyncPeriod` .. which is a very confusing.

This patch sets the default value to 36000 (10 hours in seconds) to
match the expected default behaviour.

See https://github.com/aws-controllers-k8s/runtime/blob/main/pkg/runtime/reconciler.go#L48-L51
@a-hilaly a-hilaly force-pushed the helm-resync-period-default branch from a5d6600 to adb9674 Compare June 14, 2023 08:36
@a-hilaly a-hilaly requested a review from RedbackThomson June 14, 2023 08:37
@jaypipes
Copy link
Collaborator

Note that the API Gateway test will continue to fail until aws-controllers-k8s/community#1825 is addressed

@a-hilaly
Copy link
Member Author

/retest

Copy link
Contributor

@RedbackThomson RedbackThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jun 15, 2023
@ack-prow
Copy link

ack-prow bot commented Jun 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, jljaco, RedbackThomson

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [A-Hilaly,RedbackThomson,jljaco]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot merged commit e9b6859 into aws-controllers-k8s:main Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider changing defaultResyncPeriod values and doc string
4 participants