Skip to content

Commit 808ed31

Browse files
authored
[opentelemetry-collector] Add ability to template initcontainers. (open-telemetry#570)
* Add ability to template initcontainers * rebase, version bump, and generate examples * merge examples and ignore intellj config
1 parent 6383cfb commit 808ed31

37 files changed

+48
-46
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vscode
2+
.idea
23

34
### Helm ###
45
**/charts/*.tgz

charts/opentelemetry-collector/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: opentelemetry-collector
3-
version: 0.44.0
3+
version: 0.44.1
44
description: OpenTelemetry Collector Helm chart for Kubernetes
55
type: application
66
home: https://opentelemetry.io/

charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/configmap-agent.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ConfigMap
55
metadata:
66
name: example-opentelemetry-collector-agent
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/configmap.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ConfigMap
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/daemonset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: DaemonSet
55
metadata:
66
name: example-opentelemetry-collector-agent
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"
@@ -21,7 +21,7 @@ spec:
2121
template:
2222
metadata:
2323
annotations:
24-
checksum/config: 7ec304ee5c3323375e34868c78507805dc53e77b265206b95362b08c72573c3c
24+
checksum/config: 9e91e3f7fdb0725f32aee49b8a26115539607cda2803f93f4b4e52ce6af2fad0
2525

2626
labels:
2727
app.kubernetes.io/name: opentelemetry-collector

charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: Deployment
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"
@@ -22,7 +22,7 @@ spec:
2222
template:
2323
metadata:
2424
annotations:
25-
checksum/config: 6c4e0beb9282b7a365f4522512fd1191c832249b48d9b95d12a8a87cd60836a5
25+
checksum/config: 98704225eecaee8f40ba5dfe54819b3ad13bd8574b73908a9657fb62f35159b6
2626

2727
labels:
2828
app.kubernetes.io/name: opentelemetry-collector

charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: Service
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered/serviceaccount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ServiceAccount
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-collector-logs/rendered/configmap-agent.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ConfigMap
55
metadata:
66
name: example-opentelemetry-collector-agent
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-collector-logs/rendered/daemonset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: DaemonSet
55
metadata:
66
name: example-opentelemetry-collector-agent
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"
@@ -21,7 +21,7 @@ spec:
2121
template:
2222
metadata:
2323
annotations:
24-
checksum/config: f37897b9acb26bea05f87533ce5d835e6d3a0df2eaa6d143db1b2ee921bffc72
24+
checksum/config: 75ccd4bafa338b15086319defc4eab5335678a5068ddb1c002298527ff9e065e
2525

2626
labels:
2727
app.kubernetes.io/name: opentelemetry-collector

charts/opentelemetry-collector/examples/daemonset-collector-logs/rendered/serviceaccount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ServiceAccount
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/configmap-agent.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ConfigMap
55
metadata:
66
name: example-opentelemetry-collector-agent
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/daemonset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: DaemonSet
55
metadata:
66
name: example-opentelemetry-collector-agent
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"
@@ -21,7 +21,7 @@ spec:
2121
template:
2222
metadata:
2323
annotations:
24-
checksum/config: a0c90252559889dac2e851a4669ccce3c167a237f372608cbe8dd3c2e60544dc
24+
checksum/config: e0dff937505be2b716c289e33fcf4d60c59bc017f96aa7939b5547353ce66b29
2525

2626
labels:
2727
app.kubernetes.io/name: opentelemetry-collector

charts/opentelemetry-collector/examples/daemonset-hostmetrics/rendered/serviceaccount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ServiceAccount
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/configmap-agent.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ConfigMap
55
metadata:
66
name: example-opentelemetry-collector-agent
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/daemonset.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: DaemonSet
55
metadata:
66
name: example-opentelemetry-collector-agent
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"
@@ -21,7 +21,7 @@ spec:
2121
template:
2222
metadata:
2323
annotations:
24-
checksum/config: 537f0efe723bf41c29c6fa350e147cd87e17a4a83db7ca58f241ba350a57b6a8
24+
checksum/config: f0e46e25fa7647e10eeb9b596616ebb279f4f1e70d1f9f4be3577e006d60932b
2525

2626
labels:
2727
app.kubernetes.io/name: opentelemetry-collector
@@ -102,7 +102,7 @@ spec:
102102
- /test/sleep
103103
command:
104104
- cp
105-
image: busybox:latest
105+
image: 'busybox:latest'
106106
name: test
107107
volumeMounts:
108108
- mountPath: /test

charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/rendered/serviceaccount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ServiceAccount
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-lifecycle-hooks/values.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
mode: daemonset
2-
2+
global:
3+
image: busybox:latest
34
initContainers:
45
- name: test
56
command:
67
- cp
78
args:
89
- /bin/sleep
910
- /test/sleep
10-
image: busybox:latest
11+
image: "{{ .Values.global.image }}"
1112
volumeMounts:
1213
- name: test
1314
mountPath: /test

charts/opentelemetry-collector/examples/daemonset-only/rendered/configmap-agent.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ConfigMap
55
metadata:
66
name: example-opentelemetry-collector-agent
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/daemonset-only/rendered/daemonset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: DaemonSet
55
metadata:
66
name: example-opentelemetry-collector-agent
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"
@@ -21,7 +21,7 @@ spec:
2121
template:
2222
metadata:
2323
annotations:
24-
checksum/config: 537f0efe723bf41c29c6fa350e147cd87e17a4a83db7ca58f241ba350a57b6a8
24+
checksum/config: f0e46e25fa7647e10eeb9b596616ebb279f4f1e70d1f9f4be3577e006d60932b
2525

2626
labels:
2727
app.kubernetes.io/name: opentelemetry-collector

charts/opentelemetry-collector/examples/daemonset-only/rendered/serviceaccount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ServiceAccount
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/deployment-only/rendered/configmap.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ConfigMap
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/deployment-only/rendered/deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: Deployment
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"
@@ -22,7 +22,7 @@ spec:
2222
template:
2323
metadata:
2424
annotations:
25-
checksum/config: 6c4e0beb9282b7a365f4522512fd1191c832249b48d9b95d12a8a87cd60836a5
25+
checksum/config: 98704225eecaee8f40ba5dfe54819b3ad13bd8574b73908a9657fb62f35159b6
2626

2727
labels:
2828
app.kubernetes.io/name: opentelemetry-collector

charts/opentelemetry-collector/examples/deployment-only/rendered/service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: Service
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/deployment-only/rendered/serviceaccount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ServiceAccount
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/configmap.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ConfigMap
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: Deployment
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"
@@ -22,7 +22,7 @@ spec:
2222
template:
2323
metadata:
2424
annotations:
25-
checksum/config: 84a38fbed4992ce330e8f2219e88712839fe69cd7138a6224b4aa2004c369550
25+
checksum/config: 7208ee3f7e1dae49148f87fa4f1aa86b15fd07112b726da8521c317a0c59eb7c
2626

2727
labels:
2828
app.kubernetes.io/name: opentelemetry-collector

charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: Service
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/deployment-otlp-traces/rendered/serviceaccount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ServiceAccount
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: Deployment
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: Service
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/deployment-use-existing-configMap/rendered/serviceaccount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ServiceAccount
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/statefulset-only/rendered/configmap-statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ConfigMap
55
metadata:
66
name: example-opentelemetry-collector-statefulset
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/statefulset-only/rendered/service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: Service
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

charts/opentelemetry-collector/examples/statefulset-only/rendered/serviceaccount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: ServiceAccount
55
metadata:
66
name: example-opentelemetry-collector
77
labels:
8-
helm.sh/chart: opentelemetry-collector-0.44.0
8+
helm.sh/chart: opentelemetry-collector-0.44.1
99
app.kubernetes.io/name: opentelemetry-collector
1010
app.kubernetes.io/instance: example
1111
app.kubernetes.io/version: "0.69.0"

0 commit comments

Comments
 (0)