Skip to content

Commit

Permalink
Merge branch 'main' into bump-collector
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredTan95 authored Apr 14, 2024
2 parents 69dc61e + 01182b7 commit 1158da3
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 36 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.53.2
version: 0.54.0
description: OpenTelemetry Operator Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
12 changes: 11 additions & 1 deletion charts/opentelemetry-operator/UPGRADING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Upgrade guidelines

## <0.54.0 to 0.54.0
[Changes to functionality, and variable names used for providing user-managed webhook certificates](https://github.com/open-telemetry/opentelemetry-helm-charts/pull/1121)

Below variables have been renamed to be consistent with the chart's naming format. v0.54.0 also has a bug fix which makes the chart now read the contents of the file paths provided by these variables, instead of just using the value of the variables.
```
admissionWebhooks.ca_file -> admissionWebhooks.caFile
admissionWebhooks.cert_file -> admissionWebhooks.certFile
admissionWebhooks.key_file -> admissionWebhooks.keyFile
```

## <0.50.0 to 0.50.0

Additional properties are not allowed anymore, so care must be taken that no old or misspelled ones are present anymore.
Expand All @@ -24,7 +34,7 @@ Some CI/CD tools might create duplicate resources when upgrading from an older v
`fullnameOverride` can be used to keep `deployment` resource consistent with the same name during an upgrade.

## 0.16.0 to 0.17.0

The v0.17.0 helm chart version changes OpenTelemetry Collector image to the contrib version. If you want to use the core version, set `manager.collectorImage.repository` to `otel/opentelemetry-collector`.

## 0.15.0 to 0.16.0
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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
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: cert-manager.io/v1
kind: Certificate
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
app.kubernetes.io/managed-by: Helm
Expand All @@ -30,7 +30,7 @@ apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -222,7 +222,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
app.kubernetes.io/managed-by: Helm
Expand All @@ -241,7 +241,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
app.kubernetes.io/managed-by: Helm
Expand All @@ -26,7 +26,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -32,7 +32,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
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.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -44,7 +44,7 @@ metadata:
name: "example-opentelemetry-operator-webhook"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.53.2
helm.sh/chart: opentelemetry-operator-0.54.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.97.1"
app.kubernetes.io/managed-by: Helm
Expand Down
6 changes: 3 additions & 3 deletions charts/opentelemetry-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ a cert is loaded from an existing secret or is provided via `.Values`
{{- $caCertEnc = b64enc $ca.Cert }}
{{- end }}
{{- else }}
{{- $certCrtEnc = b64enc .Values.admissionWebhooks.cert_file }}
{{- $certKeyEnc = b64enc .Values.admissionWebhooks.key_file }}
{{- $caCertEnc = b64enc .Values.admissionWebhooks.ca_file }}
{{- $certCrtEnc = .Files.Get .Values.admissionWebhooks.cert_file | b64enc }}
{{- $certKeyEnc = .Files.Get .Values.admissionWebhooks.key_file | b64enc }}
{{- $caCertEnc = .Files.Get .Values.admissionWebhooks.ca_file | b64enc }}
{{- end }}
{{- $result := dict "crt" $certCrtEnc "key" $certKeyEnc "ca" $caCertEnc }}
{{- $result | toYaml }}
Expand Down
18 changes: 9 additions & 9 deletions charts/opentelemetry-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1296,9 +1296,9 @@
"objectSelector",
"certManager",
"autoGenerateCert",
"cert_file",
"key_file",
"ca_file",
"certFile",
"keyFile",
"caFile",
"serviceAnnotations",
"secretAnnotations",
"secretLabels"
Expand Down Expand Up @@ -1475,26 +1475,26 @@
"recreate": true
}]
},
"cert_file": {
"certFile": {
"type": "string",
"default": "",
"title": "The cert_file Schema",
"title": "File path to self-managed TLS certificate.",
"examples": [
""
]
},
"key_file": {
"keyFile": {
"type": "string",
"default": "",
"title": "The key_file Schema",
"title": "File path to self-managed TLS key.",
"examples": [
""
]
},
"ca_file": {
"caFile": {
"type": "string",
"default": "",
"title": "The ca_file Schema",
"title": "File path to self-managed CA bundle.",
"examples": [
""
]
Expand Down
11 changes: 7 additions & 4 deletions charts/opentelemetry-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,16 @@ admissionWebhooks:
recreate: true

## TLS Certificate Option 3: Use your own self-signed certificate.
## certManager and autoGenerateCert must be disabled and cert_file, key_file, and ca_file must be set.
## certManager and autoGenerateCert must be disabled and certFile, keyFile, and caFile must be set.
## The chart reads the contents of the file paths with the helm .Files.Get function.
## Refer to this doc https://helm.sh/docs/chart_template_guide/accessing_files/ to understand
## limitations of file paths accessible to the chart.
## Path to your own PEM-encoded certificate.
cert_file: ""
certFile: ""
## Path to your own PEM-encoded private key.
key_file: ""
keyFile: ""
## Path to the CA cert.
ca_file: ""
caFile: ""

# Adds additional annotations to the admissionWebhook Service
serviceAnnotations: {}
Expand Down

0 comments on commit 1158da3

Please sign in to comment.