Skip to content

Commit

Permalink
Merge pull request #13 from plkokanov/add-object-selector
Browse files Browse the repository at this point in the history
Add objectSelector to validating webhook config for shoots
  • Loading branch information
plkokanov authored Sep 4, 2023
2 parents c23c9fe + 9c34fee commit 2b8a10b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ webhooks:
resources:
- shoots
failurePolicy: Fail
objectSelector: {}
objectSelector:
{{- if .Values.global.webhookConfig.useObjectSelector }}
matchLabels:
extensions.extensions.gardener.cloud/shoot-rsyslog-relp: "true"
{{- end }}
namespaceSelector: {}
sideEffects: None
admissionReviewVersions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ global:
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
# Please make sure you are running `[email protected]` or later before setting this to true.
useObjectSelector: true
# Kubeconfig to the target cluster. In-cluster configuration will be used if not specified.
kubeconfig:

# projectedKubeconfig:
# baseMountPath: /var/run/secrets/gardener.cloud
# genericKubeconfigSecretName: generic-token-kubeconfig
# tokenSecretName: access-shoot-rsyslog-relp-admission

# projectedKubeconfig:
# baseMountPath: /var/run/secrets/gardener.cloud
# genericKubeconfigSecretName: generic-token-kubeconfig
# tokenSecretName: access-shoot-rsyslog-relp-admission
serviceAccountTokenVolumeProjection:
enabled: false
expirationSeconds: 43200
Expand Down

0 comments on commit 2b8a10b

Please sign in to comment.