2023-05-11 00:11:30 +00:00
|
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
|
|
kind: Kustomization
|
|
|
|
namespace: kube-system
|
2023-05-13 05:31:07 +00:00
|
|
|
resources:
|
2023-05-11 00:11:30 +00:00
|
|
|
- cloud-controller-manager
|
|
|
|
- csi-driver
|
2023-05-16 07:44:24 +00:00
|
|
|
- csi-driver/webhook
|
2023-05-11 00:11:30 +00:00
|
|
|
generators:
|
|
|
|
- secret-generator.yaml
|
2023-05-16 07:44:24 +00:00
|
|
|
replacements:
|
|
|
|
- source:
|
|
|
|
kind: Certificate
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
targets:
|
|
|
|
- select:
|
|
|
|
kind: ValidatingWebhookConfiguration
|
|
|
|
fieldPaths:
|
|
|
|
- metadata.annotations.[cert-manager.io/inject-ca-from]
|
|
|
|
options:
|
|
|
|
delimiter: /
|
|
|
|
- source:
|
|
|
|
kind: Service
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
name: snapshot-validation-service
|
|
|
|
targets:
|
|
|
|
- select:
|
|
|
|
kind: Certificate
|
|
|
|
name: snapshot-validation
|
|
|
|
fieldPaths:
|
|
|
|
- spec.dnsNames.1
|
|
|
|
options:
|
|
|
|
delimiter: .
|
|
|
|
index: 1
|