Skip to content

Commit

Permalink
add compat code for using datasouces
Browse files Browse the repository at this point in the history
to break a ci depenency we need to carfully sequence our usage
of dataSources.

pr openstack-k8s-operators#846 broke the ablity for
openstack-k8s-operators/dataplane-operator#920
to merge in the dataplane operator by hardcoding a replacement of the
datasource in the nova dataplane service with only the custom config.

as a result when we move the requried configmaps to the dataSources
it overriedes them and resulting in ipam configution failing because
the ssh key is not present.

this change adapts install yamls to fully transfrom the dataplane service
into the new form that will be intoduced in pr#920

then we can remove this temporay mesure once that is merged vai
pr openstack-k8s-operators#845

Related: OSPRH-6407
  • Loading branch information
SeanMooney committed Jun 11, 2024
1 parent 3200fb9 commit 330e554
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/gen-nova-custom-dataplane-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ cat <<EOF >>kustomization.yaml
- op: replace
path: /metadata/name
value: nova-custom
- op: remove
path: /spec/secrets
- op: add
path: /spec/dataSources
value:
- secretRef:
name: nova-cell1-compute-config
- secretRef:
name: nova-migration-ssh-key
- configMapRef:
name: nova-extra-config
EOF
Expand Down

0 comments on commit 330e554

Please sign in to comment.