Skip to content

Commit

Permalink
fix: EBPF_NET_CRASH_METRIC_PORT container env in EBPF chart not being…
Browse files Browse the repository at this point in the history
… quoted issue. (#1347)

* test: Add CI scenarios for eBPF Chart. #964

Signed-off-by: Yang, Robin <[email protected]>

* test: Add CI scenarios for eBPF Chart. [issue-964]

Signed-off-by: Yang, Robin <[email protected]>

* test: Add CI scenarios for eBPF Chart. [issue-964]

Signed-off-by: Yang, Robin <[email protected]>

* test: Add CI scenarios for eBPF Chart. [issue-964]

Signed-off-by: Yang, Robin <[email protected]>

* test: Add CI scenarios for eBPF Chart. [issue-964]

Signed-off-by: Yang, Robin <[email protected]>

* test: Add CI scenarios for eBPF Chart. [issue-964]

Signed-off-by: Yang, Robin <[email protected]>

* fix: EBPF_NET_CRASH_METRIC_PORT env in ebpf chart not being quoted issue.

Signed-off-by: Yang, Robin <[email protected]>

* fix: EBPF_NET_CRASH_METRIC_PORT env in ebpf chart not being quoted issue.

Signed-off-by: Yang, Robin <[email protected]>

---------

Signed-off-by: Yang, Robin <[email protected]>
  • Loading branch information
hyfj44255 authored Sep 25, 2024
1 parent 772048b commit 623c987
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 21 deletions.
2 changes: 1 addition & 1 deletion charts/opentelemetry-ebpf/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-ebpf
version: 0.1.2
version: 0.1.3
description: OpenTelemetry eBPF Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
2 changes: 0 additions & 2 deletions charts/opentelemetry-ebpf/ci/enabled-log-debug-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ log:

debug:
enabled: true
storeMinidump: true
sendUnplannedExitMetric: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# OTLP gRPC endpoint to send the collected metrics
endpoint:
address: "example-opentelemetry-collector.default"

debug:
enabled: true
storeMinidump: true
# This will send a metric when the collector exits unexpectedly, useful to detect crashes and restarts
# The metric will be sent to the address and port defined in the endpoint section
# The port is defined as integer, but it should be quoted since it will be put to containers' env
sendUnplannedExitMetric: true
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Deployment
metadata:
name: example-opentelemetry-ebpf-cloud-collector
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ServiceAccount
metadata:
name: example-opentelemetry-ebpf-cloud-collector
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ConfigMap
metadata:
name: example-opentelemetry-ebpf-config
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ClusterRole
metadata:
name: example-opentelemetry-ebpf-k8s-collector
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ClusterRoleBinding
metadata:
name: example-opentelemetry-ebpf-k8s-collector
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ kind: Deployment
metadata:
name: example-opentelemetry-ebpf-k8s-collector
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand All @@ -30,7 +30,7 @@ spec:
annotations:
# This is here to allow us to do "zero-downtime" updates without an image change.
rollingUpdateVersion: "1"
charts.flowmill.com/version: 0.1.2
charts.flowmill.com/version: 0.1.3
labels:
app.kubernetes.io/name: example-opentelemetry-ebpf-k8s-collector
app.kubernetes.io/instance: example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ServiceAccount
metadata:
name: example-opentelemetry-ebpf-k8s-collector
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ClusterRole
metadata:
name: example-opentelemetry-ebpf-kernel-collector
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ClusterRoleBinding
metadata:
name: example-opentelemetry-ebpf-kernel-collector
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ kind: DaemonSet
metadata:
name: example-opentelemetry-ebpf-kernel-collector
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand All @@ -22,7 +22,7 @@ spec:
template:
metadata:
annotations:
charts.flowmill.com/version: 0.1.2
charts.flowmill.com/version: 0.1.3
labels:
app.kubernetes.io/name: example-opentelemetry-ebpf-kernel-collector
app.kubernetes.io/instance: example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ServiceAccount
metadata:
name: example-opentelemetry-ebpf-kernel-collector
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Deployment
metadata:
name: example-opentelemetry-ebpf-reducer
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Service
metadata:
name: example-opentelemetry-ebpf-reducer
labels:
helm.sh/chart: opentelemetry-ebpf-0.1.2
helm.sh/chart: opentelemetry-ebpf-0.1.3
app.kubernetes.io/name: opentelemetry-ebpf
app.kubernetes.io/instance: example
app.kubernetes.io/version: "v0.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ spec:
- name: "EBPF_NET_CRASH_METRIC_HOST"
value: {{ .Values.endpoint.address }}
- name: "EBPF_NET_CRASH_METRIC_PORT"
value: {{ .Values.endpoint.port }}
value: {{ .Values.endpoint.port | quote }}
{{- end }}
{{- if .Values.k8sCollector.relay.env }}
{{ toYaml .Values.k8sCollector.relay.env | indent 10 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ spec:
- name: "EBPF_NET_CRASH_METRIC_HOST"
value: {{ .Values.endpoint.address }}
- name: "EBPF_NET_CRASH_METRIC_PORT"
value: {{ .Values.endpoint.port }}
value: {{ .Values.endpoint.port | quote }}
{{- end }}
{{- if .Values.kernelCollector.env }}
{{ toYaml .Values.kernelCollector.env | indent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
- name: "EBPF_NET_CRASH_METRIC_HOST"
value: {{ .Values.endpoint.address }}
- name: "EBPF_NET_CRASH_METRIC_PORT"
value: {{ .Values.endpoint.port }}
value: {{ .Values.endpoint.port | quote }}
{{- end }}
{{- end }}
ports:
Expand Down

0 comments on commit 623c987

Please sign in to comment.