Skip to content

Commit

Permalink
Add the CA-bundle injection configmap to the NooBaa package
Browse files Browse the repository at this point in the history
Signed-off-by: Ben <[email protected]>
  • Loading branch information
Neon-White committed Mar 27, 2024
1 parent 4ee28d6 commit 105d84b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ spec:
items:
- key: ca-bundle.crt
path: tls-ca-bundle.pem
optional: true
containers:
- name: noobaa-operator
image: NOOBAA_OPERATOR_IMAGE
Expand Down
4 changes: 4 additions & 0 deletions pkg/olm/olm.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ func RunCatalog(cmd *cobra.Command, args []string) {
util.Panic(os.WriteFile(dir+"noobaa-operator.package.yaml", pkgBytes, 0644))
}
util.Panic(util.WriteYamlFile(csvFileName, GenerateCSV(opConf, csvParams)))
// The CA configmap is needed prior to the operator startup to prevent a certificate injection race condition
util.Panic(util.WriteYamlFile(
versionDir+"noobaa-operator.ca-bundle-configmap.yaml",
util.KubeObject(bundle.File_deploy_internal_configmap_ca_inject_yaml)))
crd.ForEachCRD(func(c *crd.CRD) {
if c.Spec.Group == nbv1.SchemeGroupVersion.Group || (csvParams.OBCMode == OBCOwned && c.Spec.Group == obAPI.Domain) {
util.Panic(util.WriteYamlFile(versionDir+c.Name+".crd.yaml", c))
Expand Down

0 comments on commit 105d84b

Please sign in to comment.