Skip to content
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

Avoid ansibleee-operator hardcoded version #451

Conversation

cescgina
Copy link
Contributor

@cescgina cescgina commented May 9, 2024

When preparing to test beta operator images, version is bumped to v1.0.0
instead of v0.0.1, so patching the ansibleee-operator csv fails, since
it looks for the v0.0.1 version. Instead we get the full name first and
then use it to patch the csv.

When preparing to test beta operator images, version is bumped to v1.0.0
instead of v0.0.1, so patching the ansibleee-operator csv fails, since
it looks for the v0.0.1 version. Instead we get the full name first and
then use it to patch the csv.
@cescgina cescgina marked this pull request as ready for review May 10, 2024 07:44
- name: use ansible-runner image built from source or latest if none is defined
no_log: "{{ use_no_log }}"
ansible.builtin.shell: |
{{ shell_header }}
{{ oc_header }}
{{ oc_login_command }}
# openstack-operator catalog pins the sha256, which might differ from latest with time
oc patch csv -n openstack-operators openstack-ansibleee-operator.v0.0.1 \
oc patch -n openstack-operators "{{ _ansibleee_csv_name.stdout }}" \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@jistr jistr merged commit 9850794 into openstack-k8s-operators:main May 10, 2024
2 checks passed
@cescgina cescgina deleted the avoid_ansibleee_csv_hardcoded_version branch May 10, 2024 10:24
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.

3 participants