diff --git a/charts/opentelemetry-operator/Chart.yaml b/charts/opentelemetry-operator/Chart.yaml index 4c3a6618c..c39265b90 100644 --- a/charts/opentelemetry-operator/Chart.yaml +++ b/charts/opentelemetry-operator/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: opentelemetry-operator -version: 0.60.0 +version: 0.60.1 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 3375d62b8..4099c0688 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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 09e354a37..a0f9bd7b8 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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 51b8239bb..105384719 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" app.kubernetes.io/managed-by: Helm @@ -223,7 +223,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - helm.sh/chart: opentelemetry-operator-0.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" app.kubernetes.io/managed-by: Helm @@ -242,7 +242,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - helm.sh/chart: opentelemetry-operator-0.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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 acb7368cb..98ece36ea 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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 d011796e3..e0aecda97 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" app.kubernetes.io/managed-by: Helm @@ -34,13 +34,13 @@ spec: - --enable-leader-election - --health-probe-addr=:8081 - --webhook-port=9443 - - --collector-image=otel/opentelemetry-collector-k8s:0.100.0 + - --collector-image=ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:"0.100.1" command: - /manager env: - name: ENABLE_WEBHOOKS value: "true" - image: "ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:0.100.1" + image: "ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:\"0.100.1\"" name: manager ports: - containerPort: 8080 diff --git a/charts/opentelemetry-operator/examples/default/rendered/role.yaml b/charts/opentelemetry-operator/examples/default/rendered/role.yaml index 91c1f1eb1..62a326e6b 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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 855c4f8cb..359a48ab8 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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 185c34e81..bd7a919bf 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" app.kubernetes.io/managed-by: Helm @@ -32,7 +32,7 @@ apiVersion: v1 kind: Service metadata: labels: - helm.sh/chart: opentelemetry-operator-0.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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 621a71576..850d0aed6 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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 29704d8d8..88a49e4d3 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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 15e71d7d9..e33900d37 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" 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.60.0 + helm.sh/chart: opentelemetry-operator-0.60.1 app.kubernetes.io/name: opentelemetry-operator app.kubernetes.io/version: "0.100.1" app.kubernetes.io/managed-by: Helm diff --git a/charts/opentelemetry-operator/templates/_helpers.tpl b/charts/opentelemetry-operator/templates/_helpers.tpl index 3cd697c9b..09b6670d5 100644 --- a/charts/opentelemetry-operator/templates/_helpers.tpl +++ b/charts/opentelemetry-operator/templates/_helpers.tpl @@ -30,15 +30,20 @@ Create chart name and version as used by the chart label. {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} {{- end }} +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "opentelemetry-operator.appVersion" -}} +{{ (default .Chart.AppVersion .Values.manager.image.tag) | quote }} +{{- end }} + {{/* Common labels */}} {{- define "opentelemetry-operator.labels" -}} helm.sh/chart: {{ include "opentelemetry-operator.chart" . }} {{ include "opentelemetry-operator.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} +app.kubernetes.io/version: {{ include "opentelemetry-operator.appVersion" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} {{ include "opentelemetry-operator.additionalLabels" . }} @@ -147,5 +152,5 @@ Return the name of the cert-manager.io/inject-ca-from annotation for webhooks an The image to use for opentelemetry-operator. */}} {{- define "opentelemetry-operator.image" -}} -{{- printf "%s:%s" .Values.manager.image.repository (default .Chart.AppVersion .Values.manager.image.tag) }} +{{- printf "%s:%s" .Values.manager.image.repository (include "opentelemetry-operator.appVersion" .) }} {{- end }} diff --git a/charts/opentelemetry-operator/templates/deployment.yaml b/charts/opentelemetry-operator/templates/deployment.yaml index 28a425137..01e677ce0 100644 --- a/charts/opentelemetry-operator/templates/deployment.yaml +++ b/charts/opentelemetry-operator/templates/deployment.yaml @@ -48,7 +48,7 @@ spec: - --webhook-port={{ .Values.manager.ports.webhookPort }} {{- end }} {{- if and .Values.manager.collectorImage.repository .Values.manager.collectorImage.tag }} - - --collector-image={{ .Values.manager.collectorImage.repository }}:{{ .Values.manager.collectorImage.tag }} + - --collector-image={{ include "opentelemetry-operator.image" . }} {{- end }} {{- if and .Values.manager.opampBridgeImage.repository .Values.manager.opampBridgeImage.tag }} - --operator-opamp-bridge-image={{ .Values.manager.opampBridgeImage.repository }}:{{ .Values.manager.opampBridgeImage.tag }} diff --git a/charts/opentelemetry-operator/values.yaml b/charts/opentelemetry-operator/values.yaml index 7de517ec6..ca421dc33 100644 --- a/charts/opentelemetry-operator/values.yaml +++ b/charts/opentelemetry-operator/values.yaml @@ -42,7 +42,7 @@ manager: tag: "" collectorImage: repository: "" - tag: 0.100.0 + tag: 0.100.1 opampBridgeImage: repository: "" tag: ""