forked from kubernetes-sigs/kubebuilder
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79a06e5
commit bf6a4a3
Showing
7 changed files
with
375 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
package utils | ||
|
||
//nolint:lll | ||
const CertManagerTarget = `#replacements: | ||
# - source: # Add cert-manager annotation to ValidatingWebhookConfiguration, MutatingWebhookConfiguration and CRDs | ||
# kind: Certificate | ||
# group: cert-manager.io | ||
# version: v1 | ||
# name: serving-cert # this name should match the one in certificate.yaml | ||
# fieldPath: .metadata.namespace # namespace of the certificate CR | ||
# targets: | ||
# - select: | ||
# kind: ValidatingWebhookConfiguration | ||
# fieldPaths: | ||
# - .metadata.annotations.[cert-manager.io/inject-ca-from] | ||
# options: | ||
# delimiter: '/' | ||
# index: 0 | ||
# create: true | ||
# - select: | ||
# kind: MutatingWebhookConfiguration | ||
# fieldPaths: | ||
# - .metadata.annotations.[cert-manager.io/inject-ca-from] | ||
# options: | ||
# delimiter: '/' | ||
# index: 0 | ||
# create: true | ||
# - select: | ||
# kind: CustomResourceDefinition | ||
# fieldPaths: | ||
# - .metadata.annotations.[cert-manager.io/inject-ca-from] | ||
# options: | ||
# delimiter: '/' | ||
# index: 0 | ||
# create: true | ||
# - source: | ||
# kind: Certificate | ||
# group: cert-manager.io | ||
# version: v1 | ||
# name: serving-cert # this name should match the one in certificate.yaml | ||
# fieldPath: .metadata.name | ||
# targets: | ||
# - select: | ||
# kind: ValidatingWebhookConfiguration | ||
# fieldPaths: | ||
# - .metadata.annotations.[cert-manager.io/inject-ca-from] | ||
# options: | ||
# delimiter: '/' | ||
# index: 1 | ||
# create: true | ||
# - select: | ||
# kind: MutatingWebhookConfiguration | ||
# fieldPaths: | ||
# - .metadata.annotations.[cert-manager.io/inject-ca-from] | ||
# options: | ||
# delimiter: '/' | ||
# index: 1 | ||
# create: true | ||
# - select: | ||
# kind: CustomResourceDefinition | ||
# fieldPaths: | ||
# - .metadata.annotations.[cert-manager.io/inject-ca-from] | ||
# options: | ||
# delimiter: '/' | ||
# index: 1 | ||
# create: true | ||
# - source: # Add cert-manager annotation to the webhook Service | ||
# kind: Service | ||
# version: v1 | ||
# name: webhook-service | ||
# fieldPath: .metadata.name # namespace of the service | ||
# targets: | ||
# - select: | ||
# kind: Certificate | ||
# group: cert-manager.io | ||
# version: v1 | ||
# fieldPaths: | ||
# - .spec.dnsNames.0 | ||
# - .spec.dnsNames.1 | ||
# options: | ||
# delimiter: '.' | ||
# index: 0 | ||
# create: true | ||
# - source: | ||
# kind: Service | ||
# version: v1 | ||
# name: webhook-service | ||
# fieldPath: .metadata.namespace # namespace of the service | ||
# targets: | ||
# - select: | ||
# kind: Certificate | ||
# group: cert-manager.io | ||
# version: v1 | ||
# fieldPaths: | ||
# - .spec.dnsNames.0 | ||
# - .spec.dnsNames.1 | ||
# options: | ||
# delimiter: '.' | ||
# index: 1 | ||
# create: true` |
Oops, something went wrong.