Skip to content

Conversation

@a-hilaly
Copy link
Member

@a-hilaly a-hilaly commented Dec 22, 2022

Issue: aws-controllers-k8s/community#1367
Follow-up of aws-controllers-k8s/runtime#106

This patch completes the implementation of support for resource-specific
resync periods and a default drift remediation period made in runtime
repository. The resync period for each reconciler is determined by trying
to retrieve it from the following sources, in this order:

  1. A resource-specific period specified in the drift remediation configuration.
  2. A resource-specific requeue on success period specified by the resource manager factory.
  3. The default drift remediation period specified in the controller configuration.
  4. The default resync period defined in the ACK runtime package.

This allows users to customize the drift remediation behavior for different
resources as needed, while still providing a fallback option for resources
that do not have a specific period specified.

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

@ack-bot ack-bot requested review from jaypipes and vijtrip2 December 22, 2022 17:29
@ack-bot
Copy link
Collaborator

ack-bot commented Dec 22, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly

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:

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

@a-hilaly
Copy link
Member Author

/hold

@ack-bot ack-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 22, 2022
Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

@a-hilaly do we have a GH issue number for this?

Also, left a couple thoughts inline...

@a-hilaly a-hilaly force-pushed the default-sync-period branch from 9f6095b to e0df5a9 Compare January 5, 2023 01:18
@a-hilaly
Copy link
Member Author

a-hilaly commented Jan 5, 2023

@jaypipes Addressed all

@ack-bot
Copy link
Collaborator

ack-bot commented Jan 5, 2023

@a-hilaly: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ecr-controller-test e0df5a9 link /test ecr-controller-test
s3-controller-test e0df5a9 link /test s3-controller-test
dynamodb-controller-test e0df5a9 link /test dynamodb-controller-test

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@jaypipes
Copy link
Collaborator

jaypipes commented Jan 6, 2023

@a-hilaly can you rebase this please? I see some unrelated changes in the code-gen templates.

Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

Agree with @RedbackThomson's comments...

…ft remediation period

Issue: aws-controllers-k8s/community#1367
Follow-up of aws-controllers-k8s/runtime#106

This patch completes the implementation of support for resource-specific
resync periods and a default drift remediation period made in runtime
repository. The resync period for each reconciler is determined by trying
to retrieve it from the following sources, in this order:

1. A resource-specific period specified in the drift remediation configuration.
2. A resource-specific requeue on success period specified by the resource manager factory.
3. The default drift remediation period specified in the controller configuration.
4. The default resync period defined in the ACK runtime package.

This allows users to customize the drift remediation behavior for different
resources as needed, while still providing a fallback option for resources
that do not have a specific period specified.

Signed-off-by: Amine Hilaly <[email protected]>
@a-hilaly a-hilaly force-pushed the default-sync-period branch from e0df5a9 to e81a8a0 Compare February 3, 2023 17:42
@a-hilaly
Copy link
Member Author

a-hilaly commented Feb 3, 2023

It is normal that the tests don't pass here, we'll need to merge the runtime PR first
/hold

@RedbackThomson
Copy link
Contributor

/hold
Waiting for some results of local testing, since we don't have automated tests for this feature

Signed-off-by: Amine Hilaly <[email protected]>
@a-hilaly a-hilaly force-pushed the default-sync-period branch from 96b0743 to 70b55da Compare February 7, 2023 00:24
@ack-prow
Copy link

ack-prow bot commented Feb 7, 2023

@a-hilaly: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
dynamodb-controller-test 70b55da link false /test dynamodb-controller-test
ecr-controller-test 70b55da link false /test ecr-controller-test
s3-controller-test 70b55da link false /test s3-controller-test

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@a-hilaly
Copy link
Member Author

a-hilaly commented Feb 7, 2023

Waiting for some results of local testing, since we don't have automated tests for this feature

Tested by building an image locally and deploying it using the new helm chart configurations. Works like a rocket!

@a-hilaly
Copy link
Member Author

a-hilaly commented Feb 7, 2023

/unhold

@ack-prow ack-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 7, 2023
@RedbackThomson
Copy link
Contributor

Thank you for testing this again and catching those minor things. Hopefully we get automated regression tests for this "soon"

/lgtm

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

ack-prow bot commented Feb 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, 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]

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 adad76c into aws-controllers-k8s:main Feb 7, 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.

5 participants