Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make zookeeper version customizable #306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion repository/zookeeper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
3 changes: 3 additions & 0 deletions repository/zookeeper/operator/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion repository/zookeeper/operator/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion repository/zookeeper/operator/templates/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down