-
Notifications
You must be signed in to change notification settings - Fork 638
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
Bind EE images version with DEFAULT_AWX_VERSION #1740
Conversation
@bartowl thanks for this PR! will pull down and test it out soon |
https://github.com/ansible/awx/blob/devel/.github/workflows/stage.yml#L109-L115 https://github.com/ansible/awx-operator/blob/devel/Dockerfile#L9C1-L12C41 https://github.com/ansible/awx-operator/blob/devel/roles/installer/defaults/main.yml#L256 and this PR takes that and uses it, that looks correct |
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.
https://github.com/ansible/awx-operator/blob/devel/roles/mesh_ingress/defaults/main.yml#L12
one missing place to fix
b2ca222
to
ef6c0a5
Compare
now that i committed to this PR i shouldn't be the approver anymore 🤣 @fosterseth double check my work plz |
test process
result
... and hit a bug that i created somewhere else...regret my decision to try to do something at 5PM...
|
and realize that i should probably do a upgrade test...
than deploy awx while waiting for my grill to come up to temp
verify that we don't create duplicate default ee in awx...(we probably shouldn't) |
@shanemcd what do you think about this behavioral change? |
8f2f5c8
to
d120055
Compare
this issue to the matrix for the community to vote on the behavior please thumbs up the suggested change for the desire behavior that you want |
e8c516b
to
f008210
Compare
SUMMARY
This PR fixes #1484 by binding following images to
DEFAULT_AWX_VERSION
instead of currentlatest
tag:ee_images
- default execution environment (will add new EE with each upgrade, leaving previous as-is)control_plane_ee_image
- will switch it to new version with each updateinit_container_image
- will be also switched to new version with each updateISSUE TYPE
ADDITIONAL INFORMATION
Currently those were linked with
latest
version of images which might resulted in unexpected effects for ee_image once thelatest
tag was updated.For
control_plane_ee_image
andinit_container_image
- they were not changed until container re-create, but should this happen they would also be updated (possibly unaware/unexpected)In order to prevent switching to updated image versions on upgrade it is possible to define
control_plane_ee_image
and (AFAIK undocumented)init_container_image
/init_container_image_version
in AWX resource spec.New EE image will always be added upon upgrade, but it will be clearly marked with AWX version.
Additionally it also makes small fix for 'or' in check of
init_container_image_version
presence which could leave to errors when init_container_image_version would not be specified andinit_container_image
be defined (separate commit)