-
Notifications
You must be signed in to change notification settings - Fork 640
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
Is there a way to protect an AWX instance from automatically upgrading when the operator gets upgraded? #936
Comments
Hi, Just a question here since AFAIK the operator is namespace scoped: could you just upgrade one operator and not the other? I would expect that only one AWX instance would get upgraded, not the other (but I might be wrong here, I have only one instance in my cluster). |
Hi, i also got such thing in mind but we may could run into problems when there is a CRD update with the new operator version, as the CRDs are not namespace bound AFAIK. So i am not sure if this could lead to side effects. BR |
if you look at the operator logs, what are the results for the
does it say changed? |
Hi, i could not really get it from the logs. I found some tasks which were changed with this
The task you mention had the following output:
The stats of the playbook run:
The test config for our AWX:
It would be really good if we had some attribute on the AWX object which could stop the operator from automatically rebuild all instances at once. BR |
What i had in mind was something like "auto_upgrade: true|false" flag which could be evaluated in the operator code. |
ISSUE TYPE
SUMMARY
Is there a way to protect an AWX instance from automatically upgrading when the operator gets upgraded?
ADDITIONAL INFORMATION
We currently have two AWX instances in our K8S cluster installed with the AWX operator.
After the operator upgrade all instances all existing AWX instances PODs get restartet even when we specify all images versions inside the AWX object.
This means we have a short but unwanted downtime for all AWX instances.
We would like to have the possibility to upgrade those instances step by step and not all at once.
Is there some kind of tag we can set at the pod or deployment object of the existing instance to "protect" it from automatically updates?
As i could see it in the code the deployment template will be applied in any case.
Maybe a conditional check on this task could solve our problem here.
ENVIRONMENT
The text was updated successfully, but these errors were encountered: