-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(ansible): Configure verbosity via annotation #2102
feat(ansible): Configure verbosity via annotation #2102
Conversation
/retest |
1 similar comment
/retest |
This makes it possible to create a CR with an annotation, specifically `"ansible.operator-sdk/verbosity"`, to override the verbosity of `ansible-runner` commands for a given CR. - Store the verbosity on `runner` - Update `cmdFuncType` to take verbosity and `*exec.Cmd` to convert integer value of verbosity to string - In `Run()` get verbosity annotation from CR (if it exists) and use that value when executing the `cmdFunc`
01fc01f
to
048a53d
Compare
/retest |
@djzager: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
This makes it possible to create a CR with an annotation, specifically
"ansible.operator-sdk/verbosity"
, to override the verbosity ofansible-runner
commands for a given CR.runner
cmdFuncType
to take verbosity and*exec.Cmd
to convertinteger value of verbosity to string
Run()
get verbosity annotation from CR (if it exists) and usethat value when executing the
cmdFunc
Closes #2091
Checklist:
advanced_options.md
documentation for Ansible Operators