diff --git a/manifests/v1beta1/components/webhook/kustomization.yaml b/manifests/v1beta1/components/webhook/kustomization.yaml index 09b4fd9f707..36d137d8db2 100644 --- a/manifests/v1beta1/components/webhook/kustomization.yaml +++ b/manifests/v1beta1/components/webhook/kustomization.yaml @@ -4,4 +4,3 @@ kind: Kustomization resources: - webhooks.yaml - - secret.yaml diff --git a/manifests/v1beta1/components/webhook/secret.yaml b/manifests/v1beta1/components/webhook/secret.yaml deleted file mode 100644 index eca7937a885..00000000000 --- a/manifests/v1beta1/components/webhook/secret.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -apiVersion: v1 -kind: Secret -metadata: - name: katib-webhook-cert diff --git a/manifests/v1beta1/installs/katib-external-db/kustomization.yaml b/manifests/v1beta1/installs/katib-external-db/kustomization.yaml index e346da9316b..aa053cd5dda 100644 --- a/manifests/v1beta1/installs/katib-external-db/kustomization.yaml +++ b/manifests/v1beta1/installs/katib-external-db/kustomization.yaml @@ -32,6 +32,10 @@ secretGenerator: - name: katib-mysql-secrets envs: - secrets.env + # Secret for webhooks certs. + - name: katib-webhook-cert + options: + disableNameSuffixHash: true configMapGenerator: - name: katib-config behavior: create diff --git a/manifests/v1beta1/installs/katib-standalone-postgres/kustomization.yaml b/manifests/v1beta1/installs/katib-standalone-postgres/kustomization.yaml index 5c2fef6e76c..b007b47a51e 100644 --- a/manifests/v1beta1/installs/katib-standalone-postgres/kustomization.yaml +++ b/manifests/v1beta1/installs/katib-standalone-postgres/kustomization.yaml @@ -41,3 +41,8 @@ configMapGenerator: - katib-config.yaml options: disableNameSuffixHash: true +# Secret for webhooks certs. +secretGenerator: + - name: katib-webhook-cert + options: + disableNameSuffixHash: true diff --git a/manifests/v1beta1/installs/katib-standalone/kustomization.yaml b/manifests/v1beta1/installs/katib-standalone/kustomization.yaml index 41fce6166f2..f1079a5239b 100644 --- a/manifests/v1beta1/installs/katib-standalone/kustomization.yaml +++ b/manifests/v1beta1/installs/katib-standalone/kustomization.yaml @@ -34,3 +34,8 @@ configMapGenerator: - katib-config.yaml options: disableNameSuffixHash: true +# Secret for webhooks certs. +secretGenerator: + - name: katib-webhook-cert + options: + disableNameSuffixHash: true