Skip to content

Commit

Permalink
[kube-prometheus-stack] Replacing hyperkube image with kubectl image …
Browse files Browse the repository at this point in the history
…from bitnami (prometheus-community#160)

* Replacing hyperkube image with kubectl image from bitnami

Signed-off-by: Bismarck Paliz <bismarck.paliz@jet.com>

* Bumping version

Signed-off-by: Bismarck Paliz <bismarck.paliz@jet.com>
  • Loading branch information
Bismarck Paliz authored Oct 5, 2020
1 parent c3a0c0d commit 89b1338
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 9.4.6
version: 9.4.7
appVersion: 0.38.1
tillerVersion: ">=2.12.0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ spec:
{{- end }}
containers:
- name: kubectl
{{- if .Values.prometheusOperator.hyperkubeImage.sha }}
image: {{ .Values.prometheusOperator.hyperkubeImage.repository }}:{{ .Values.prometheusOperator.hyperkubeImage.tag }}@sha256:{{ .Values.prometheusOperator.hyperkubeImage.sha }}
{{- if .Values.prometheusOperator.kubectlImage.sha }}
image: "{{ .Values.prometheusOperator.kubectlImage.repository }}:{{ .Values.prometheusOperator.kubectlImage.tag }}@sha256:{{ .Values.prometheusOperator.kubectlImage.sha }}"
{{- else }}
image: "{{ .Values.prometheusOperator.hyperkubeImage.repository }}:{{ .Values.prometheusOperator.hyperkubeImage.tag }}"
image: "{{ .Values.prometheusOperator.kubectlImage.repository }}:{{ .Values.prometheusOperator.kubectlImage.tag }}"
{{- end }}
imagePullPolicy: "{{ .Values.prometheusOperator.hyperkubeImage.pullPolicy }}"
imagePullPolicy: "{{ .Values.prometheusOperator.kubectlImage.pullPolicy }}"
command:
- /bin/sh
- -c
Expand Down
8 changes: 4 additions & 4 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1385,11 +1385,11 @@ prometheusOperator:
##
secretFieldSelector: ""

## Hyperkube image to use when cleaning up
## kubectl image to use when cleaning up
##
hyperkubeImage:
repository: k8s.gcr.io/hyperkube
tag: v1.16.12
kubectlImage:
repository: docker.io/bitnami/kubectl
tag: 1.16.15
sha: ""
pullPolicy: IfNotPresent

Expand Down

0 comments on commit 89b1338

Please sign in to comment.