Skip to content

Commit

Permalink
Merge pull request #900 from pburgisser/make_enableservicelinks_optional
Browse files Browse the repository at this point in the history
[grafana] Allowing older version of Kubernetes (<1.13) to use the latest versio…
  • Loading branch information
zanhsieh committed Dec 16, 2021
2 parents ecb8e80 + 63e80bd commit 3840758
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/grafana/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: grafana
version: 6.19.4
version: 6.20.0
appVersion: 8.3.3
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
Expand Down
2 changes: 2 additions & 0 deletions charts/grafana/templates/_pod.tpl
Expand Up @@ -125,7 +125,9 @@ imagePullSecrets:
- name: {{ . }}
{{- end}}
{{- end }}
{{- if not .Values.enableKubeBackwardCompatibility }}
enableServiceLinks: {{ .Values.enableServiceLinks }}
{{- end }}
containers:
{{- if .Values.sidecar.dashboards.enabled }}
- name: {{ template "grafana.name" . }}-sc-dashboard
Expand Down
3 changes: 3 additions & 0 deletions charts/grafana/values.yaml
Expand Up @@ -788,3 +788,6 @@ networkPolicy:
## - {key: role, operator: In, values: [frontend]}
##
explicitNamespacesSelector: {}

# Enable backward compatibility of kubernetes where version below 1.13 doesn't have the enableServiceLinks option
enableKubeBackwardCompatibility: false

0 comments on commit 3840758

Please sign in to comment.