-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: thisthat <[email protected]> Co-authored-by: Giovanni Liva <[email protected]>
- Loading branch information
1 parent
183ddf6
commit 30c01d2
Showing
7 changed files
with
53 additions
and
16 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
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
30 changes: 30 additions & 0 deletions
30
charts/keptn-lifecycle-toolkit/templates/metrics-validating-webhook-configuration.yaml
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,30 @@ | ||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: ValidatingWebhookConfiguration | ||
metadata: | ||
name: {{ include "chart.fullname" . }}-metrics-validating-webhook-configuration | ||
annotations: | ||
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "chart.fullname" . }}- | ||
labels: | ||
keptn.sh/inject-cert: "true" | ||
{{- include "chart.labels" . | nindent 4 }} | ||
webhooks: | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: '{{ include "chart.fullname" . }}-metrics-webhook-service' | ||
namespace: '{{ .Release.Namespace }}' | ||
path: /validate-metrics-keptn-sh-v1alpha3-keptnmetric | ||
failurePolicy: Fail | ||
name: vkeptnmetric.kb.io | ||
rules: | ||
- apiGroups: | ||
- metrics.keptn.sh | ||
apiVersions: | ||
- v1alpha3 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
resources: | ||
- keptnmetrics | ||
sideEffects: None |
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