Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/opentelemetry-collector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-collector
version: 0.149.0
version: 0.150.0
description: OpenTelemetry Collector Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
2 changes: 1 addition & 1 deletion charts/opentelemetry-collector/templates/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if eq .Values.mode "daemonset" -}}
apiVersion: apps/v1
apiVersion: {{ .Values.apiVersion }}
kind: DaemonSet
metadata:
name: {{ include "opentelemetry-collector.fullname" . }}-agent
Expand Down
2 changes: 1 addition & 1 deletion charts/opentelemetry-collector/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if eq .Values.mode "deployment" -}}
apiVersion: apps/v1
apiVersion: {{ .Values.apiVersion }}
kind: Deployment
metadata:
name: {{ include "opentelemetry-collector.fullname" . }}
Expand Down
8 changes: 7 additions & 1 deletion charts/opentelemetry-collector/templates/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if eq .Values.mode "statefulset" -}}
apiVersion: apps/v1
apiVersion: {{ .Values.apiVersion }}
kind: StatefulSet
metadata:
name: {{ include "opentelemetry-collector.fullname" . }}
Expand Down Expand Up @@ -29,6 +29,12 @@ spec:
{{- include "opentelemetry-collector.selectorLabels" . | nindent 6 }}
{{- include "opentelemetry-collector.component" . | nindent 6 }}
updateStrategy:
{{- if eq .Values.rollout.strategy "RollingUpdate" }}
{{- with .Values.rollout.rollingUpdate }}
rollingUpdate:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- end }}
type: {{ .Values.rollout.strategy }}
template:
metadata:
Expand Down
5 changes: 5 additions & 0 deletions charts/opentelemetry-collector/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
""
]
},
"apiVersion": {
Comment thread
medzin marked this conversation as resolved.
"type": "string",
"description": "Override the default apiVersion for custom controllers or testing new API versions. Applies to daemonset, deployment, and statefulset modes."
},
"namespaceOverride": {
"type": "string",
"description": "Name of the namespace to deploy the resources into."
Expand Down Expand Up @@ -1283,6 +1287,7 @@
}
},
"required": [
"apiVersion",
"mode"
]
}
3 changes: 3 additions & 0 deletions charts/opentelemetry-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ fullnameOverride: ""
# Valid values are "daemonset", "deployment", and "statefulset".
mode: ""

# Override the default apiVersion for custom controllers or for testing new API versions.
apiVersion: "apps/v1"

# Specify which namespace should be used to deploy the resources into
namespaceOverride: ""

Expand Down
Loading