diff --git a/repository/zookeeper/README.md b/repository/zookeeper/README.md index f698c7c..57098f6 100644 --- a/repository/zookeeper/README.md +++ b/repository/zookeeper/README.md @@ -4,14 +4,21 @@ The KUDO Zookeeper operator creates, configures and manages [Apache Zookeeper](h ## Getting started -The latest stable version of Zookeeper operator is `0.3.3` +The latest stable version of Zookeeper operator is `0.3.4` ## Version Chart | KUDO Zookeeper Version | Apache Zookeeper Version | | ---------------------- | ------------------------ | +| 0.3.4 | 3.6.2 | | 0.3.3 | 3.6.2 | | 0.3.2 | 3.4.14 | | 0.3.1 | 3.4.14 | | 0.3.0 | 3.4.14 | | latest | 3.6.2 | + +## Custom Zookeeper Versions + +The operator contains a parameter `IMAGE_VERSION` with a default that is the current zookeeper version, normally something like `zookeeper:3.6.2`. You can change this parameter to a different image, but the operator may not run correctly, as there may be missing configuration or other changes to the default version. + +Additionally, if you specify the `IMAGE_VERSION` manually, you will not get an updated zookeeper version if you update the operator - in this case you will need to update the `IMAGE_VERSION` yourself on an operator update. \ No newline at end of file diff --git a/repository/zookeeper/operator/params.yaml b/repository/zookeeper/operator/params.yaml index 1cf8c90..b1083e5 100644 --- a/repository/zookeeper/operator/params.yaml +++ b/repository/zookeeper/operator/params.yaml @@ -37,6 +37,9 @@ parameters: description: | The port on which the Zookeeper process will perform leader election. The default is 3888. default: "3888" + - name: IMAGE_VERSION + description: "Zookeeper container image" + default: "zookeeper:3.6.2" - name: IMAGE_PULL_POLICY description: "Zookeeper container image pull policy" default: "Always" diff --git a/repository/zookeeper/operator/templates/statefulset.yaml b/repository/zookeeper/operator/templates/statefulset.yaml index 6b371e7..68c6854 100644 --- a/repository/zookeeper/operator/templates/statefulset.yaml +++ b/repository/zookeeper/operator/templates/statefulset.yaml @@ -30,7 +30,7 @@ spec: containers: - name: kubernetes-zookeeper imagePullPolicy: {{ .Params.IMAGE_PULL_POLICY }} - image: "zookeeper:3.6.2" + image: "{{ .Params.IMAGE_VERSION }}" resources: requests: memory: {{ .Params.MEMORY }} diff --git a/repository/zookeeper/operator/templates/validation.yaml b/repository/zookeeper/operator/templates/validation.yaml index 6c31238..6a7205d 100644 --- a/repository/zookeeper/operator/templates/validation.yaml +++ b/repository/zookeeper/operator/templates/validation.yaml @@ -11,7 +11,7 @@ spec: containers: - name: kubernetes-zookeeper imagePullPolicy: {{ .Params.IMAGE_PULL_POLICY }} - image: "zookeeper:3.6.2" + image: "{{ .Params.IMAGE_VERSION }}" env: - name: CONN value: {{ if gt (int .Params.NODE_COUNT) 0 }} {{ .Name }}-zookeeper-0.{{ .Name }}-hs:{{ .Params.CLIENT_PORT }}{{- $root := . -}}{{ range $i, $v := untilStep 1 (int .Params.NODE_COUNT) 1 }},{{ $root.Name }}-zookeeper-{{ $v }}.{{ $root.Name }}-hs:{{ $root.Params.CLIENT_PORT }}{{ end }}{{ end }}