Skip to content
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

pkg/helm: add option to watch dependent resources #885

Merged

Conversation

joelanford
Copy link
Member

Description of the change:
Adding option to enable watches of dependent resources of Helm releases.

Motivation for the change:
Currently, the helm operator must perform a periodic reconciliation to ensure that dependent resources do not drift from their release manifest. This periodic reconciliation is often a no-op since no changes have occurred. This PR will reduce resource utilization in the operator and against the API server by eliminating the need for periodic reconciliation.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 7, 2019
Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

LGTM, just one question.

GVK: gvk,
ManagerFactory: factory,
ReconcilePeriod: helmOperatorFlags.ReconcilePeriod,
WatchDependentResources: true,
Copy link
Member

Choose a reason for hiding this comment

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

Should watching dependent resources be configurable, or is this always being true fine for up local purposes?

Copy link
Member Author

Choose a reason for hiding this comment

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

It probably makes sense to make this configurable in both the up local and in-cluster scenarios.

Since this is also a feature of the ansible operator, how about we do a follow-up PR to add a flag for this to the pkg/internal/flags.WatchFlags struct?

@shawn-hurley, any input from the ansible operator perspective (or otherwise)?

Copy link
Contributor

@hasbro17 hasbro17 left a comment

Choose a reason for hiding this comment

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

LGTM

We can try to make the option configurable in a follow up.

@joelanford joelanford merged commit f4d5fe3 into operator-framework:master Jan 12, 2019
@joelanford joelanford deleted the helm-dependent-watches branch January 12, 2019 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants