Skip to content

Commit

Permalink
Fix bootstrap manifest generation
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Mazzotti <[email protected]>
  • Loading branch information
anmazzotti committed Jan 10, 2024
1 parent 34581db commit de3f396
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
18 changes: 0 additions & 18 deletions bootstrap/config/crd/patches/webhook_in_kthreesconfigs.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
# The following patch enables conversion webhook for CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: kthreesconfigs.bootstrap.cluster.x-k8s.io
spec:
conversion:
strategy: Webhook
webhookClientConfig:
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
caBundle: Cg==
service:
namespace: system
name: webhook-service
path: /convert

# The following patch enables a conversion webhook for the CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down
4 changes: 4 additions & 0 deletions bootstrap/config/default/kustomizeconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This configuration is for teaching kustomize how to update name ref and var substitution
varReference:
- kind: Deployment
path: spec/template/spec/volumes/secret/secretName

0 comments on commit de3f396

Please sign in to comment.