[OSPCIX-638] Add call to 'make bindata' in operator-build for meta operator#2671
[OSPCIX-638] Add call to 'make bindata' in operator-build for meta operator#2671dprince wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
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. DetailsNeeds 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.
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>
|
Closing, issue was fixed in another PR: #2672 which has merged. |
No description provided.