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
Get rid of envsubst for nameprefix #1126
Get rid of envsubst for nameprefix #1126
Conversation
Skipping CI for Draft Pull Request. |
/test-v1b1-ubuntu-integration |
556ec71
to
5a874b8
Compare
/test-v1b1-ubuntu-integration |
5a874b8
to
0e2c464
Compare
The Ironic kustomizations used envsubst to set the nameprefix, while BMO was using the built in feature in kustomize. To unify them and simplify the deploy script a bit, the Ironix kustomizations were changed to also use the kustomize feature. There is a slight change in the manifests since the namePrefix is applied also to secrets, configmaps and label selectors that didn't have the prefix set before. The namespace is now also created as part of the kustomizations for Ironic (same as for BMO).
0e2c464
to
c96d939
Compare
/test-v1b1-ubuntu-integration |
1 similar comment
/test-v1b1-ubuntu-integration |
/test-v1b1-centos-integration |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dtantsur The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
The Ironic kustomizations used envsubst to set the nameprefix, while BMO
was using the built in feature in kustomize. To unify them and simplify
the deploy script a bit, the Ironix kustomizations were changed to also
use the kustomize feature.
There is a slight change in the manifests since the namePrefix is
applied also to secrets, configmaps and label selectors that didn't have
the prefix set before.
The namespace is now also created as part of the kustomizations for
Ironic (same as for BMO).
Fixes #1072
Edit:
This breaks CAPM3 v1alpha4 (which is deprecated). The issue is that Ironic ends up in the wrong namespace. It is easily solve by copying the
ironic-cacert
secret to the namespace where BMO is running (capm3-system
) or making changes to the Ironic manifests. However, v1alpha4 is no longer supported so I'm a bit hesitant to add something specific to that version.In addition to this, v1alpha4 uses Kubernetes v1.21, which is EOL in just a few weeks. So it makes sense to not focus on this old version in my opinion. But of course, let me know if there are objections!