Skip to content

Commit

Permalink
Adding namespace scope to webhook config (open-telemetry#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
b3ndill authored and 12ushan committed Jul 22, 2024
1 parent 337463e commit f279070
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 19 deletions.
2 changes: 1 addition & 1 deletion charts/opentelemetry-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-operator
version: 0.42.1
version: 0.42.2
description: OpenTelemetry Operator Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
annotations:
cert-manager.io/inject-ca-from: default/example-opentelemetry-operator-serving-cert
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -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 All @@ -85,7 +88,7 @@ metadata:
annotations:
cert-manager.io/inject-ca-from: default/example-opentelemetry-operator-serving-cert
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -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 @@ -4,7 +4,7 @@ apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -29,7 +29,7 @@ apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -253,7 +253,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -271,7 +271,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -25,7 +25,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -31,7 +31,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: opentelemetry-operator
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: "example-opentelemetry-operator-cert-manager"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: "example-opentelemetry-operator-metrics"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -43,7 +43,7 @@ metadata:
name: "example-opentelemetry-operator-webhook"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.42.1
helm.sh/chart: opentelemetry-operator-0.42.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.88.0"
app.kubernetes.io/managed-by: Helm
Expand Down
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 f279070

Please sign in to comment.