Skip to content

Commit

Permalink
chore: update common chart
Browse files Browse the repository at this point in the history
  • Loading branch information
hiento09 committed Dec 26, 2024
1 parent 00d33f2 commit 01f88e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 37 deletions.
2 changes: 1 addition & 1 deletion charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.5
version: 0.1.6

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
19 changes: 1 addition & 18 deletions charts/common/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,4 @@ Create the name of the service account to use

{{/*
define inject annotation
*/}}
{{- define "common.injectAnnotation" -}}
{{- if eq $.Values.instrumentation.type "java" }}
instrumentation.opentelemetry.io/inject-java: "true"
{{- end }}
{{- if eq $.Values.instrumentation.type "dotnet" }}
instrumentation.opentelemetry.io/inject-dotnet: "true"
{{- end }}
{{- if eq $.Values.instrumentation.type "go" }}
instrumentation.opentelemetry.io/inject-go: "true"
{{- end }}
{{- if eq $.Values.instrumentation.type "nodejs" }}
instrumentation.opentelemetry.io/inject-nodejs: "true"
{{- end }}
{{- if eq $.Values.instrumentation.type "python" }}
instrumentation.opentelemetry.io/inject-python: "true"
{{- end }}
{{- end }}
*/}}
18 changes: 0 additions & 18 deletions charts/common/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{{- $labels := include "common.labels" . -}}
{{- $selectorLabels := include "common.selectorLabels" . -}}
{{- $serviceAccountName := include "common.serviceAccountName" . -}}
{{- $injectAnnotation := include "common.injectAnnotation" . -}}
{{- $imagePullSecrets := .Values.imagePullSecrets -}}
{{- $imageTag := .Values.imageTag -}}
{{- $chartName := .Chart.Name -}}
Expand Down Expand Up @@ -43,23 +42,6 @@ spec:
{{- with $value.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if $value.instrumentation.enabled }}
{{- if eq $value.instrumentation.type "java" }}
instrumentation.opentelemetry.io/inject-java: "true"
{{- end }}
{{- if eq $value.instrumentation.type "dotnet" }}
instrumentation.opentelemetry.io/inject-dotnet: "true"
{{- end }}
{{- if eq $value.instrumentation.type "go" }}
instrumentation.opentelemetry.io/inject-go: "true"
{{- end }}
{{- if eq $value.instrumentation.type "nodejs" }}
instrumentation.opentelemetry.io/inject-nodejs: "true"
{{- end }}
{{- if eq $value.instrumentation.type "python" }}
instrumentation.opentelemetry.io/inject-python: "true"
{{- end }}
{{- end }}
labels:
app.kubernetes.io/name: {{ $name }}-{{ $value.name }}
app.kubernetes.io/component: {{ $value.name }}
Expand Down

0 comments on commit 01f88e9

Please sign in to comment.