Skip to content

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

Merged
varshaprasad96 merged 1 commit intooperator-framework:masterfrom
varshaprasad96:ansible/mod-operator-flag
Jul 16, 2020
Merged

ansible: rename cmd line flag and add global variable#3435
varshaprasad96 merged 1 commit intooperator-framework:masterfrom
varshaprasad96:ansible/mod-operator-flag

Conversation

@varshaprasad96
Copy link
Copy Markdown
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:

Comment thread pkg/ansible/watches/watches.go Outdated
w.Vars = tmp.Vars
w.MaxRunnerArtifacts = tmp.MaxRunnerArtifacts
w.MaxWorkers = getMaxWorkers(gvk, maxWorkersDefault)
w.MaxWorkers = getMaxReconciles(gvk, maxReconcilesDefault)
Copy link
Copy Markdown
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
Comment thread pkg/ansible/flags/flag.go Outdated
Comment thread pkg/ansible/flags/flag.go Outdated
Comment thread pkg/ansible/flags/flag.go Outdated
Comment thread pkg/ansible/watches/watches.go Outdated
Comment thread pkg/ansible/watches/watches.go Outdated
Comment thread pkg/ansible/watches/watches.go Outdated
Comment thread pkg/ansible/watches/watches.go Outdated
Comment thread website/content/en/docs/ansible/reference/advanced_options.md Outdated
Comment thread pkg/ansible/watches/watches.go Outdated
@varshaprasad96 varshaprasad96 force-pushed the ansible/mod-operator-flag branch 2 times, most recently from f94a406 to 28e31e6 Compare July 16, 2020 00:20
Comment thread cmd/ansible-operator/main.go Outdated
Comment thread pkg/ansible/flags/flag.go Outdated
Comment thread pkg/ansible/watches/watches_test.go
Copy link
Copy Markdown
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.

Comment thread website/content/en/docs/ansible/reference/advanced_options.md Outdated
@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
Copy Markdown
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
Copy Markdown

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