Skip to content

Commit

Permalink
Adding namespace scope to webhook config
Browse files Browse the repository at this point in the history
  • Loading branch information
b3ndill committed Nov 13, 2023
1 parent 5e9d6b7 commit 289d720
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ webhooks:
- UPDATE
resources:
- instrumentations
scope: Namespaced
sideEffects: None
timeoutSeconds: 10
- admissionReviewVersions:
Expand All @@ -54,6 +55,7 @@ webhooks:
- UPDATE
resources:
- opentelemetrycollectors
scope: Namespaced
sideEffects: None
timeoutSeconds: 10
- admissionReviewVersions:
Expand All @@ -75,6 +77,7 @@ webhooks:
- UPDATE
resources:
- pods
scope: Namespaced
sideEffects: None
timeoutSeconds: 10
---
Expand Down Expand Up @@ -112,6 +115,7 @@ webhooks:
- UPDATE
resources:
- instrumentations
scope: Namespaced
sideEffects: None
timeoutSeconds: 10
- admissionReviewVersions:
Expand All @@ -132,6 +136,7 @@ webhooks:
- DELETE
resources:
- instrumentations
scope: Namespaced
sideEffects: None
timeoutSeconds: 10
- admissionReviewVersions:
Expand All @@ -153,6 +158,7 @@ webhooks:
- UPDATE
resources:
- opentelemetrycollectors
scope: Namespaced
sideEffects: None
timeoutSeconds: 10
- admissionReviewVersions:
Expand All @@ -173,5 +179,6 @@ webhooks:
- DELETE
resources:
- opentelemetrycollectors
scope: Namespaced
sideEffects: None
timeoutSeconds: 10
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ webhooks:
- UPDATE
resources:
- instrumentations
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
- admissionReviewVersions:
Expand Down Expand Up @@ -65,6 +66,7 @@ webhooks:
- UPDATE
resources:
- opentelemetrycollectors
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
- admissionReviewVersions:
Expand Down Expand Up @@ -94,6 +96,7 @@ webhooks:
- UPDATE
resources:
- pods
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
---
Expand Down Expand Up @@ -134,6 +137,7 @@ webhooks:
- UPDATE
resources:
- instrumentations
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
- admissionReviewVersions:
Expand Down Expand Up @@ -162,6 +166,7 @@ webhooks:
- DELETE
resources:
- instrumentations
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
- admissionReviewVersions:
Expand Down Expand Up @@ -191,6 +196,7 @@ webhooks:
- UPDATE
resources:
- opentelemetrycollectors
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
- admissionReviewVersions:
Expand Down Expand Up @@ -219,6 +225,7 @@ webhooks:
- DELETE
resources:
- opentelemetrycollectors
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ webhooks:
- UPDATE
resources:
- instrumentations
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
- admissionReviewVersions:
Expand Down Expand Up @@ -103,6 +104,7 @@ webhooks:
- UPDATE
resources:
- opentelemetrycollectors
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
- admissionReviewVersions:
Expand Down Expand Up @@ -137,6 +139,7 @@ webhooks:
- UPDATE
resources:
- pods
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
---
Expand Down Expand Up @@ -182,6 +185,7 @@ webhooks:
- UPDATE
resources:
- instrumentations
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
- admissionReviewVersions:
Expand Down Expand Up @@ -215,6 +219,7 @@ webhooks:
- DELETE
resources:
- instrumentations
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
- admissionReviewVersions:
Expand Down Expand Up @@ -249,6 +254,7 @@ webhooks:
- UPDATE
resources:
- opentelemetrycollectors
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
- admissionReviewVersions:
Expand Down Expand Up @@ -282,6 +288,7 @@ webhooks:
- DELETE
resources:
- opentelemetrycollectors
scope: Namespaced
sideEffects: None
timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }}
{{- end }}

0 comments on commit 289d720

Please sign in to comment.