diff --git a/charts/opentelemetry-operator/examples/default/rendered/admission-webhooks/operator-webhook-with-cert-manager.yaml b/charts/opentelemetry-operator/examples/default/rendered/admission-webhooks/operator-webhook-with-cert-manager.yaml index 41831e267..fb99c8053 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/admission-webhooks/operator-webhook-with-cert-manager.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/admission-webhooks/operator-webhook-with-cert-manager.yaml @@ -33,6 +33,7 @@ webhooks: - UPDATE resources: - instrumentations + scope: Namespaced sideEffects: None timeoutSeconds: 10 - admissionReviewVersions: @@ -54,6 +55,7 @@ webhooks: - UPDATE resources: - opentelemetrycollectors + scope: Namespaced sideEffects: None timeoutSeconds: 10 - admissionReviewVersions: @@ -75,6 +77,7 @@ webhooks: - UPDATE resources: - pods + scope: Namespaced sideEffects: None timeoutSeconds: 10 --- @@ -112,6 +115,7 @@ webhooks: - UPDATE resources: - instrumentations + scope: Namespaced sideEffects: None timeoutSeconds: 10 - admissionReviewVersions: @@ -132,6 +136,7 @@ webhooks: - DELETE resources: - instrumentations + scope: Namespaced sideEffects: None timeoutSeconds: 10 - admissionReviewVersions: @@ -153,6 +158,7 @@ webhooks: - UPDATE resources: - opentelemetrycollectors + scope: Namespaced sideEffects: None timeoutSeconds: 10 - admissionReviewVersions: @@ -173,5 +179,6 @@ webhooks: - DELETE resources: - opentelemetrycollectors + scope: Namespaced sideEffects: None timeoutSeconds: 10 diff --git a/charts/opentelemetry-operator/templates/admission-webhooks/operator-webhook-with-cert-manager.yaml b/charts/opentelemetry-operator/templates/admission-webhooks/operator-webhook-with-cert-manager.yaml index e733d752e..11b27ebb2 100644 --- a/charts/opentelemetry-operator/templates/admission-webhooks/operator-webhook-with-cert-manager.yaml +++ b/charts/opentelemetry-operator/templates/admission-webhooks/operator-webhook-with-cert-manager.yaml @@ -36,6 +36,7 @@ webhooks: - UPDATE resources: - instrumentations + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} - admissionReviewVersions: @@ -65,6 +66,7 @@ webhooks: - UPDATE resources: - opentelemetrycollectors + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} - admissionReviewVersions: @@ -94,6 +96,7 @@ webhooks: - UPDATE resources: - pods + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} --- @@ -134,6 +137,7 @@ webhooks: - UPDATE resources: - instrumentations + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} - admissionReviewVersions: @@ -162,6 +166,7 @@ webhooks: - DELETE resources: - instrumentations + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} - admissionReviewVersions: @@ -191,6 +196,7 @@ webhooks: - UPDATE resources: - opentelemetrycollectors + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} - admissionReviewVersions: @@ -219,6 +225,7 @@ webhooks: - DELETE resources: - opentelemetrycollectors + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} {{- end }} diff --git a/charts/opentelemetry-operator/templates/admission-webhooks/operator-webhook.yaml b/charts/opentelemetry-operator/templates/admission-webhooks/operator-webhook.yaml index 76a055cf8..1be926142 100644 --- a/charts/opentelemetry-operator/templates/admission-webhooks/operator-webhook.yaml +++ b/charts/opentelemetry-operator/templates/admission-webhooks/operator-webhook.yaml @@ -69,6 +69,7 @@ webhooks: - UPDATE resources: - instrumentations + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} - admissionReviewVersions: @@ -103,6 +104,7 @@ webhooks: - UPDATE resources: - opentelemetrycollectors + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} - admissionReviewVersions: @@ -137,6 +139,7 @@ webhooks: - UPDATE resources: - pods + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} --- @@ -182,6 +185,7 @@ webhooks: - UPDATE resources: - instrumentations + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} - admissionReviewVersions: @@ -215,6 +219,7 @@ webhooks: - DELETE resources: - instrumentations + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} - admissionReviewVersions: @@ -249,6 +254,7 @@ webhooks: - UPDATE resources: - opentelemetrycollectors + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} - admissionReviewVersions: @@ -282,6 +288,7 @@ webhooks: - DELETE resources: - opentelemetrycollectors + scope: Namespaced sideEffects: None timeoutSeconds: {{ .Values.admissionWebhooks.timeoutSeconds }} {{- end }}