[incubator/kafka] Fix initContainer failure which did not error (#4400)

* [incubator/kafka] Fix initContainer failure which did not error

* [incubator/kafka] Set initContainer to fail when vars are undefined
This commit is contained in:
Joshua Dotson
2018-03-22 05:43:04 -07:00
committed by k8s-ci-robot
parent d43d09ab91
commit f386fa96e6
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
description: Apache Kafka is publish-subscribe messaging rethought as a distributed
commit log.
name: kafka
version: 0.4.3
version: 0.4.4
keywords:
- kafka
- zookeeper
+4 -2
View File
@@ -28,8 +28,10 @@ spec:
- name: init-ext
image: "{{ .Values.external.init.image }}:{{ .Values.external.init.imageTag }}"
imagePullPolicy: "{{ .Values.external.init.imagePullPolicy }}"
args:
- -n ${POD_NAMESPACE} label pods ${POD_NAME} pod=${POD_NAME}
command:
- sh
- -euxc
- "kubectl label pods ${POD_NAME} --namespace ${POD_NAMESPACE} pod=${POD_NAME}"
env:
- name: POD_NAME
valueFrom:
+2 -2
View File
@@ -69,8 +69,8 @@ external:
firstListenerPort: 31090
domain: cluster.local
init:
image: "lachlanevenson/k8s-kubectl"
imageTag: "v1.9.3"
image: "lwolf/kubectl_deployer"
imageTag: "0.4"
imagePullPolicy: "IfNotPresent"
## Configuration Overrides. Specify any Kafka settings you would like set on the StatefulSet