-
Notifications
You must be signed in to change notification settings - Fork 23
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
Question: How to omit job events for Ansible operator? #19
Comments
Does any of the information in https://sdk.operatorframework.io/docs/building-operators/ansible/reference/advanced_options/#using-ansible-log-events help? If not, I think it seems reasonable that if the ansible-runner doesn't provide an environment variable for omitting the event data that we add a check for an env var that we would append the |
None of this influences the creation of job events. The only thing that helps is reducing the overall number of artifacts using maxRunnerArtifacts, but this would also affect the collection of other files like stdout, stderr, etc. Having default maxRunnerArtifacts of 20, the job events alone add up to > 1GB in the filesystem of our Ansible operator based pods, which consumes memory. It would be really helpful to be able to set the env var as you suggested. |
Adding the The feature to be added is the ability to specify that the I'm also going to unassign myself from this issue as I likely won't have the bandwidth to implement this myself. I'm happy to be a point of contact for these changes and review any PRs |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
@el-pako: The label(s) 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. |
Type of question
General operator-related help
Question
I am trying to find any way for Ansible operator to stop generating job events (*.json) in artifacts directory for each run, but keep writing stdout, stderr, etc.
Ansible runner executable provides flag --omit-event-data, but it seems Ansible operator code passes a fixed list of flags when calling the runner:
https://github.com/operator-framework/operator-sdk/blob/v1.28.x/internal/ansible/runner/runner.go#L98
The awx display plugin, reads environment variable RUNNER_OMIT_EVENTS, but setting this to true before calling ansible-operator did not have the desired effect.
Operator type:
/language ansible
Kubernetes cluster type:
Openshift
The text was updated successfully, but these errors were encountered: