Skip to content

Commit

Permalink
Merge pull request #308 from alanjino/main
Browse files Browse the repository at this point in the history
helm chart changes with evn variables of OTEL
  • Loading branch information
jebinjeb authored Jan 19, 2024
2 parents b94c692 + 9581513 commit 3609c66
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/agent/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: 1.1.10
version: 1.1.11

# 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
18 changes: 18 additions & 0 deletions charts/agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ spec:
value: "{{ .Values.schedule.kubepreupgradeInterval }}"
- name: TRIVY_INTERVAL
value: "{{ .Values.schedule.trivyInterval }}"
- name: IS_OPTEL_ENABLED
value: "{{ .Values.opentelemetry.isEnabled }}"
- name : OPTEL_URL
value: {{ .Values.opentelemetry.url }}
- name : APPLICATION_NAME
value : {{ .Values.opentelemetry.appName }}
{{- if .Values.persistence.enabled }}
volumeMounts:
- name: data
Expand Down Expand Up @@ -115,6 +121,12 @@ spec:
{{- end }}
- name: NATS_ADDRESS
value: {{ .Values.nats.host }}
- name: IS_OPTEL_ENABLED
value: "{{ .Values.opentelemetry.isEnabled }}"
- name : OPTEL_URL
value: {{ .Values.opentelemetry.url }}
- name : APPLICATION_NAME
value : {{ .Values.opentelemetry.appName }}
{{- if .Values.git_bridge.persistence.enabled }}
volumeMounts:
- name: data
Expand Down Expand Up @@ -156,6 +168,12 @@ spec:
{{- end }}
- name: NATS_ADDRESS
value: {{ .Values.nats.host }}
- name: IS_OPTEL_ENABLED
value: "{{ .Values.opentelemetry.isEnabled }}"
- name : OPTEL_URL
value: {{ .Values.opentelemetry.url }}
- name : APPLICATION_NAME
value : {{ .Values.opentelemetry.appName }}
{{- if .Values.container_bridge.persistence.enabled }}
volumeMounts:
- name: data
Expand Down
9 changes: 9 additions & 0 deletions charts/agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ service:
type: ClusterIP
port: 80



git_bridge:
enabled: false
image:
Expand Down Expand Up @@ -87,6 +89,7 @@ git_bridge:




container_bridge:
enabled: false
image:
Expand Down Expand Up @@ -128,6 +131,7 @@ container_bridge:
# hosts:
# - chart-example.local


ingress:
enabled: false
annotations: {}
Expand Down Expand Up @@ -182,6 +186,11 @@ schedule:
kubepreupgradeInterval: "@every 22h"
trivyInterval: "@every 24h"

opentelemetry:
isEnabled: false
url: "otelcollector.local"
appName: "kubviz"

clusterName: "kubviz"
nats:
host: kubviz-client-nats
Expand Down
2 changes: 1 addition & 1 deletion charts/client/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: 1.1.15
version: 1.1.16

# 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
6 changes: 6 additions & 0 deletions charts/client/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ spec:
value: "{{ .Values.ttl.ttlInterval }}"
- name: TTL_UNIT
value: {{ .Values.ttl.ttlUnit }}
- name: IS_OPTEL_ENABLED
value: "{{ .Values.opentelemetry.isEnabled }}"
- name : OPTEL_URL
value: {{ .Values.opentelemetry.url }}
- name : APPLICATION_NAME
value : {{ .Values.opentelemetry.appName }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
6 changes: 6 additions & 0 deletions charts/client/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,9 @@ migration:
ttl:
ttlInterval: "1"
ttlUnit: MONTH

opentelemetry:
isEnabled: false
url: "otelcollector.local"
appName: "kubviz"

0 comments on commit 3609c66

Please sign in to comment.