-
Notifications
You must be signed in to change notification settings - Fork 112
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
[OSPCIX-638] Add call to 'make bindata' in operator-build for meta operator #2671
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
- name: "{{ operator.name }} - Call bindata" # noqa: name[template] | ||
when: | ||
- cifmw_operator_build_meta_build | ||
- operator.name == cifmw_operator_build_meta_name | ||
ci_script: | ||
dry_run: "{{ cifmw_operator_build_dryrun|bool }}" | ||
chdir: "{{ operator.src }}" | ||
output_dir: "{{ cifmw_operator_build_basedir }}/artifacts" | ||
script: make bindata | ||
|
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.
Since we use pin-bundle-images.sh
in make bindata. So in order to update the proper operator env variable, we need to pass other params, we pass in the make bundle.
We can modify this code like this:
- name: "{{ operator.name }} - Call bindata" # noqa: name[template] | |
when: | |
- cifmw_operator_build_meta_build | |
- operator.name == cifmw_operator_build_meta_name | |
ci_script: | |
dry_run: "{{ cifmw_operator_build_dryrun|bool }}" | |
chdir: "{{ operator.src }}" | |
output_dir: "{{ cifmw_operator_build_basedir }}/artifacts" | |
script: make bindata | |
- name: "{{ operator.name }} - Call bindata" # noqa: name[template] | |
when: | |
- cifmw_operator_build_meta_build | |
- operator.name == cifmw_operator_build_meta_name | |
ci_script: | |
dry_run: "{{ cifmw_operator_build_dryrun|bool }}" | |
chdir: "{{ operator.src }}" | |
output_dir: "{{ cifmw_operator_build_basedir }}/artifacts" | |
script: make bindata | |
extra_args: | |
IMG: "{{ operator_img }}" | |
IMAGENAMESPACE: "{{ cifmw_operator_build_push_org }}" | |
IMAGEREGISTRY: "{{ cifmw_operator_build_push_registry }}" | |
IMAGEBASE: "{{ operator.image_base | default('') }}" | |
LOCAL_REGISTRY: "{{ cifmw_operator_build_local_registry | default (0) }}" |
I have already tested the same code here: #2672 with depends on on this pr openstack-k8s-operators/ironic-operator#510 and results
Controlled By: ReplicaSet/ironic-operator-controller-manager-5c7847b8f4
Containers:
manager:
Container ID: cri-o://397e36d59c9d180cd92358d0574a4911ce33cdf514d841b80934fe44e501d2ba
Image: 38.102.83.177:5001/openstack-k8s-operators/ironic-operator:484955dc3ef2fdc2dcff640b3ff6182b38d8d772
Image ID: 38.102.83.177:5001/openstack-k8s-operators/ironic-operator@sha256:c1bad99902b624fb749b5fe91fec1d7734a7c364fc835e430cbf317cb57c1374
Port: <none>
No description provided.