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

ansible: rename cmd line flag and add global variable #3435

Conversation

varshaprasad96
Copy link
Member

@varshaprasad96 varshaprasad96 commented Jul 15, 2020

Description of the change:
This PR:

  • Deprecates --max-workers flag
  • Adds --max-concurrent-reconciles flag
  • Adds MAX_CONCURRENT_RECONCILES__ global variable
  • Update relevant documentation

Motivation for the change:
Effort to change ansible operator flags to match controller-runtime constructs.

Checklist

If the pull request includes user-facing changes, extra documentation is required:

@@ -171,7 +172,7 @@ func (w *Watch) setValuesFromAlias(tmp alias) error {
w.Role = tmp.Role
w.Vars = tmp.Vars
w.MaxRunnerArtifacts = tmp.MaxRunnerArtifacts
w.MaxWorkers = getMaxWorkers(gvk, maxWorkersDefault)
w.MaxWorkers = getMaxReconciles(gvk, maxReconcilesDefault)
Copy link
Member Author

Choose a reason for hiding this comment

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

Will modify the variable naming for watches in a follow up PR along with helm modifications.

@varshaprasad96 varshaprasad96 requested a review from fabianvf July 15, 2020 19:02
pkg/ansible/flags/flag.go Outdated Show resolved Hide resolved
pkg/ansible/flags/flag.go Outdated Show resolved Hide resolved
pkg/ansible/flags/flag.go Outdated Show resolved Hide resolved
pkg/ansible/watches/watches.go Outdated Show resolved Hide resolved
pkg/ansible/watches/watches.go Outdated Show resolved Hide resolved
pkg/ansible/watches/watches.go Outdated Show resolved Hide resolved
pkg/ansible/watches/watches.go Outdated Show resolved Hide resolved
pkg/ansible/watches/watches.go Outdated Show resolved Hide resolved
@varshaprasad96 varshaprasad96 force-pushed the ansible/mod-operator-flag branch 2 times, most recently from f94a406 to 28e31e6 Compare July 16, 2020 00:20
Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

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

LGTM after one minor fix and passing CI.

@varshaprasad96 varshaprasad96 force-pushed the ansible/mod-operator-flag branch 2 times, most recently from 4017fe3 to 91badcc Compare July 16, 2020 17:13
Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/lgtm
great work 🥇

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 16, 2020
This commit:
* Deprecates --max-workers flag
* Adds --max-concurrent-reconciles flag
* Adds MAX_CONCURRENT_RECONCILES_<group>_<kind> global variable
* Update relevant documentation
@varshaprasad96 varshaprasad96 force-pushed the ansible/mod-operator-flag branch from 91badcc to 60dea10 Compare July 16, 2020 22:59
@openshift-ci-robot
Copy link

New changes are detected. LGTM label has been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants