diff --git a/charts/opentelemetry-operator/Chart.yaml b/charts/opentelemetry-operator/Chart.yaml index e6be1f9cd..ac1569b11 100644 --- a/charts/opentelemetry-operator/Chart.yaml +++ b/charts/opentelemetry-operator/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: opentelemetry-operator -version: 0.52.4 +version: 0.53.0 description: OpenTelemetry Operator Helm chart for Kubernetes type: application home: https://opentelemetry.io/ 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 799ee8171..1b79c72e9 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 @@ -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.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm @@ -91,7 +91,7 @@ metadata: annotations: cert-manager.io/inject-ca-from: default/example-opentelemetry-operator-serving-cert labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/certmanager.yaml b/charts/opentelemetry-operator/examples/default/rendered/certmanager.yaml index fe699ef73..7899ac1db 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/certmanager.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/certmanager.yaml @@ -4,7 +4,7 @@ apiVersion: cert-manager.io/v1 kind: Certificate metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm @@ -30,7 +30,7 @@ apiVersion: cert-manager.io/v1 kind: Issuer metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/clusterrole.yaml b/charts/opentelemetry-operator/examples/default/rendered/clusterrole.yaml index 45209e79e..242ccbd2f 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/clusterrole.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/clusterrole.yaml @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm @@ -214,7 +214,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm @@ -233,7 +233,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/clusterrolebinding.yaml b/charts/opentelemetry-operator/examples/default/rendered/clusterrolebinding.yaml index 77c9a8bc4..f69834674 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/clusterrolebinding.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/clusterrolebinding.yaml @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm @@ -26,7 +26,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/deployment.yaml b/charts/opentelemetry-operator/examples/default/rendered/deployment.yaml index 8e7581e24..3f8b03b0f 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/deployment.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/deployment.yaml @@ -4,7 +4,7 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/role.yaml b/charts/opentelemetry-operator/examples/default/rendered/role.yaml index d788c752c..d36be6cd4 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/role.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/role.yaml @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/rolebinding.yaml b/charts/opentelemetry-operator/examples/default/rendered/rolebinding.yaml index 5d3bfb45a..84ccc1dfd 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/rolebinding.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/rolebinding.yaml @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/service.yaml b/charts/opentelemetry-operator/examples/default/rendered/service.yaml index f90b68ac1..a1c3c3246 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/service.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/service.yaml @@ -4,7 +4,7 @@ apiVersion: v1 kind: Service metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm @@ -32,7 +32,7 @@ apiVersion: v1 kind: Service metadata: labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/serviceaccount.yaml b/charts/opentelemetry-operator/examples/default/rendered/serviceaccount.yaml index f16386169..fcb719a01 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/serviceaccount.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/serviceaccount.yaml @@ -6,7 +6,7 @@ metadata: name: opentelemetry-operator namespace: default labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/tests/test-certmanager-connection.yaml b/charts/opentelemetry-operator/examples/default/rendered/tests/test-certmanager-connection.yaml index a151fc247..832c81022 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/tests/test-certmanager-connection.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/tests/test-certmanager-connection.yaml @@ -6,7 +6,7 @@ metadata: name: "example-opentelemetry-operator-cert-manager" namespace: default labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/examples/default/rendered/tests/test-service-connection.yaml b/charts/opentelemetry-operator/examples/default/rendered/tests/test-service-connection.yaml index 34e6fb583..a7e8858fa 100644 --- a/charts/opentelemetry-operator/examples/default/rendered/tests/test-service-connection.yaml +++ b/charts/opentelemetry-operator/examples/default/rendered/tests/test-service-connection.yaml @@ -6,7 +6,7 @@ metadata: name: "example-opentelemetry-operator-metrics" namespace: default labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm @@ -44,7 +44,7 @@ metadata: name: "example-opentelemetry-operator-webhook" namespace: default labels: - helm.sh/chart: opentelemetry-operator-0.52.4 + helm.sh/chart: opentelemetry-operator-0.53.0 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.96.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/templates/clusterrole.yaml b/charts/opentelemetry-operator/templates/clusterrole.yaml index 2f89e601b..77fc2dfb5 100644 --- a/charts/opentelemetry-operator/templates/clusterrole.yaml +++ b/charts/opentelemetry-operator/templates/clusterrole.yaml @@ -72,6 +72,21 @@ rules: - patch - update - watch + {{- if .Values.manager.createRbacPermissions }} + - apiGroups: + - rbac.authorization.k8s.io + resources: + - clusterroles + - clusterrolebindings + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + {{- end }} - apiGroups: - config.openshift.io resources: diff --git a/charts/opentelemetry-operator/templates/deployment.yaml b/charts/opentelemetry-operator/templates/deployment.yaml index 393593b0d..28263498a 100644 --- a/charts/opentelemetry-operator/templates/deployment.yaml +++ b/charts/opentelemetry-operator/templates/deployment.yaml @@ -74,6 +74,9 @@ spec: {{- if .Values.manager.featureGates }} - --feature-gates={{ .Values.manager.featureGates }} {{- end }} + {{- if .Values.manager.createRbacPermissions }} + - --create-rbac-permissions + {{- end }} {{- if .Values.manager.extraArgs }} {{- .Values.manager.extraArgs | toYaml | nindent 12 }} {{- end }} diff --git a/charts/opentelemetry-operator/values.schema.json b/charts/opentelemetry-operator/values.schema.json index 1e9a2fdeb..5f086b6ed 100644 --- a/charts/opentelemetry-operator/values.schema.json +++ b/charts/opentelemetry-operator/values.schema.json @@ -837,6 +837,14 @@ "annotations": {} }] }, + "createRbacPermissions": { + "type": "boolean", + "default": false, + "title": "Whether the operator should create RBAC permissions for collector deployments", + "examples": [ + false + ] + }, "extraArgs": { "type": "array", "default": [], diff --git a/charts/opentelemetry-operator/values.yaml b/charts/opentelemetry-operator/values.yaml index 00689c487..a97986cab 100644 --- a/charts/opentelemetry-operator/values.yaml +++ b/charts/opentelemetry-operator/values.yaml @@ -123,7 +123,8 @@ manager: # add annotations on the PrometheusRule annotations: {} - + # Whether the operator should create RBAC permissions for collectors + createRbacPermissions: false ## List of additional cli arguments to configure the manager ## for example: --labels, etc. extraArgs: []