diff --git a/kustomizations/cert-manager/kustomization.yaml b/kustomizations/cert-manager/kustomization.yaml new file mode 100644 index 0000000..22266cf --- /dev/null +++ b/kustomizations/cert-manager/kustomization.yaml @@ -0,0 +1,25 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: cert-manager +bases: +- https://github.com/james-callahan/cert-manager-kustomize?ref=b9560b4603bffac901c99d7d9d16e5e2a07e44d8 +resources: +- namespace.yaml +replacements: + - source: + kind: Deployment + name: cert-manager-webhook + fieldPath: metadata.namespace + targets: + - select: + kind: MutatingWebhookConfiguration + fieldPaths: + - metadata.annotations.[cert-manager.io/inject-ca-from-secret] + options: + delimiter: / + - select: + kind: ValidatingWebhookConfiguration + fieldPaths: + - metadata.annotations.[cert-manager.io/inject-ca-from-secret] + options: + delimiter: / diff --git a/kustomizations/cert-manager/namespace.yaml b/kustomizations/cert-manager/namespace.yaml new file mode 100644 index 0000000..c90416f --- /dev/null +++ b/kustomizations/cert-manager/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: cert-manager