Skip to content

Commit a2f682a

Browse files
committed
Upgrade to zookeeper 3.8.3
1 parent b114324 commit a2f682a

File tree

8 files changed

+57
-32
lines changed

8 files changed

+57
-32
lines changed

.github/workflows/build-push-docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Set up Go 1.17
12+
- name: Set up Go 1.21
1313
uses: actions/setup-go@v2
1414
with:
15-
go-version: 1.17
15+
go-version: 1.21
1616
id: go
1717
- name: Set up Go for root
1818
run: |
@@ -40,7 +40,7 @@ jobs:
4040
username: ${{ secrets.DOCKER_USERNAME }}
4141
password: ${{ secrets.DOCKER_PASSWORD }}
4242
repository: adobe/zookeeper
43-
tags: 3.7.1-apache-${{ steps.vars.outputs.tag }}
43+
tags: 3.8.3-apache-${{ steps.vars.outputs.tag }}
4444
add_git_labels: true
4545
always_pull: true
4646
push: ${{ startsWith(github.ref, 'refs/tags/zk') }}
@@ -52,7 +52,7 @@ jobs:
5252
username: ${{ secrets.DOCKER_USERNAME }}
5353
password: ${{ secrets.DOCKER_PASSWORD }}
5454
repository: adobe/zookeeper
55-
tags: 3.7.1-${{ steps.vars.outputs.tag }}
55+
tags: 3.8.3-${{ steps.vars.outputs.tag }}
5656
add_git_labels: true
5757
always_pull: true
5858
push: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }}

README.md

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,47 @@ The project is currently alpha. While no breaking API changes are currently plan
66

77
## Table of Contents
88

9-
* [Overview](#overview)
10-
* [Requirements](#requirements)
11-
* [Usage](#usage)
12-
* [Installation of the Operator](#install-the-operator)
13-
* [Deploy a sample Zookeeper Cluster](#deploy-a-sample-zookeeper-cluster)
14-
* [Deploy a sample ZooKeeper Cluster with Ephemeral Storage](#Deploy-a-sample-zookeeper-cluster-with-ephemeral-storage)
15-
* [Deploy a sample Zookeeper Cluster to a cluster using Istio](#deploy-a-sample-zookeeper-cluster-with-istio)
16-
* [Upgrade a Zookeeper Cluster](#upgrade-a-zookeeper-cluster)
17-
* [Uninstall the Zookeeper Cluster](#uninstall-the-zookeeper-cluster)
18-
* [Upgrade the Zookeeper Operator](#upgrade-the-operator)
19-
* [Uninstall the Operator](#uninstall-the-operator)
20-
* [The AdminServer](#the-adminserver)
21-
* [Development](#development)
22-
* [Build the Operator Image](#build-the-operator-image)
23-
* [Direct Access to Cluster](#direct-access-to-the-cluster)
24-
* [Run the Operator Locally](#run-the-operator-locally)
25-
* [Installation on GKE](#installation-on-google-kubernetes-engine)
26-
* [Installation on Minikube](#installation-on-minikube)
9+
- [Zookeeper Operator](#zookeeper-operator)
10+
- [Project status: alpha](#project-status-alpha)
11+
- [Table of Contents](#table-of-contents)
12+
- [Overview](#overview)
13+
- [Requirements](#requirements)
14+
- [Usage](#usage)
15+
- [Install the operator](#install-the-operator)
16+
- [Install via helm](#install-via-helm)
17+
- [Manual deployment](#manual-deployment)
18+
- [Deploy a sample Zookeeper cluster](#deploy-a-sample-zookeeper-cluster)
19+
- [Install via helm](#install-via-helm-1)
20+
- [Manual deployment](#manual-deployment-1)
21+
- [Deploy a sample Zookeeper cluster with Ephemeral storage](#deploy-a-sample-zookeeper-cluster-with-ephemeral-storage)
22+
- [Deploy a sample Zookeeper cluster with Istio](#deploy-a-sample-zookeeper-cluster-with-istio)
23+
- [Upgrade a Zookeeper cluster](#upgrade-a-zookeeper-cluster)
24+
- [Trigger the upgrade via helm](#trigger-the-upgrade-via-helm)
25+
- [Trigger the upgrade manually](#trigger-the-upgrade-manually)
26+
- [Upgrade the Operator](#upgrade-the-operator)
27+
- [Uninstall the Zookeeper cluster](#uninstall-the-zookeeper-cluster)
28+
- [Uninstall via helm](#uninstall-via-helm)
29+
- [Manual uninstall](#manual-uninstall)
30+
- [Uninstall the operator](#uninstall-the-operator)
31+
- [Uninstall via helm](#uninstall-via-helm-1)
32+
- [Manual uninstall](#manual-uninstall-1)
33+
- [The AdminServer](#the-adminserver)
34+
- [Development](#development)
35+
- [Build the operator image](#build-the-operator-image)
36+
- [Direct access to the cluster](#direct-access-to-the-cluster)
37+
- [Run the operator locally](#run-the-operator-locally)
38+
- [Installation on Google Kubernetes Engine](#installation-on-google-kubernetes-engine)
39+
- [Installation on Minikube](#installation-on-minikube)
40+
- [Minikube Setup](#minikube-setup)
41+
- [Cluster Deployment](#cluster-deployment)
42+
- [Zookeeper YAML Exporter](#zookeeper-yaml--exporter)
43+
- [How to build Zookeeper Operator](#how-to-build-zookeeper-operator)
44+
- [How to use exporter](#how-to-use-exporter)
2745

2846

2947
### Overview
3048

31-
This operator runs a Zookeeper 3.7.1 cluster, and uses Zookeeper dynamic reconfiguration to handle node membership.
49+
This operator runs a Zookeeper 3.8.3 cluster, and uses Zookeeper dynamic reconfiguration to handle node membership.
3250

3351
The operator itself is built with the [Operator framework](https://github.com/operator-framework/operator-sdk).
3452

@@ -371,7 +389,7 @@ The list of available commands are
371389
### Build the operator image
372390

373391
Requirements:
374-
- Go 1.17+
392+
- Go 1.21+
375393

376394
Use the `make` command to build the Zookeeper operator image.
377395

charts/zookeeper/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ maxUnavailableReplicas:
33

44
image:
55
repository: adobe/zookeeper
6-
tag: 3.7.1-0.2.15-adobe-20230422
6+
tag: 3.8.3-0.2.15-adobe-20231117
77
pullPolicy: IfNotPresent
88

99
triggerRollingRestart: false

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ COPY zu /zu
1515
WORKDIR /zu
1616
RUN ./gradlew shadowJar
1717

18-
# use forked base zookeeper 3.7.1 docker image
19-
# that runs on openjdk-17
20-
FROM adobe/zookeeper:3.7.1-apache-zk-20220513
18+
# use forked base zookeeper 3.8.3 docker image
19+
# that runs on openjdk-21
20+
FROM adobe/zookeeper:3.8.3-apache-zk-20231117
2121
COPY bin /usr/local/bin
2222
RUN chmod +x /usr/local/bin/*
2323
COPY --from=0 /zu/build/libs/zu.jar /opt/libs/

docker/zookeeper-image/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ RUN set -eux; \
115115
# Verify that gosu binary works
116116
gosu nobody true
117117

118-
ARG SHORT_DISTRO_NAME=zookeeper-3.7.1
119-
ARG DISTRO_NAME=apache-zookeeper-3.7.1-bin
118+
ARG SHORT_DISTRO_NAME=zookeeper-3.8.3
119+
ARG DISTRO_NAME=apache-zookeeper-3.8.3-bin
120120

121121
# Download Apache Zookeeper, verify its PGP signature, untar and clean up
122122
RUN set -eux; \

docker/zu/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repositories {
1212

1313
dependencies {
1414
implementation(kotlin("stdlib"))
15-
implementation("org.apache.zookeeper:zookeeper:3.7.1")
15+
implementation("org.apache.zookeeper:zookeeper:3.8.3")
1616
}
1717

1818
tasks.withType<ShadowJar>() {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/pravega/zookeeper-operator
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/ghodss/yaml v1.0.0

go.sum

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/
5353
github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=
5454
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
5555
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI=
56+
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls=
5657
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
5758
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
5859
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
@@ -89,6 +90,7 @@ github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/
8990
github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
9091
github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
9192
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec=
93+
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
9294
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
9395
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
9496
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
@@ -107,6 +109,7 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN
107109
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
108110
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
109111
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
112+
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
110113
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
111114
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
112115
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
@@ -130,6 +133,7 @@ github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108
130133
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
131134
github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU=
132135
github.com/onsi/ginkgo/v2 v2.9.5 h1:+6Hr4uxzP4XIUyAkg61dWBw8lb/gc4/X5luuxN/EC+Q=
136+
github.com/onsi/ginkgo/v2 v2.9.5/go.mod h1:tvAoo1QUJwNEU2ITftXTpR7R1RbCzoZUOs3RonqW57k=
133137
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
134138
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
135139
github.com/onsi/gomega v1.27.7 h1:fVih9JD6ogIiHUN6ePK7HJidyEDpWGVB5mzM7cWNXoU=
@@ -152,6 +156,7 @@ github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJf
152156
github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY=
153157
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
154158
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
159+
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
155160
github.com/samuel/go-zookeeper v0.0.0-20201211165307-7117e9ea2414 h1:AJNDS0kP60X8wwWFvbLPwDuojxubj9pbfK7pjHw0vKg=
156161
github.com/samuel/go-zookeeper v0.0.0-20201211165307-7117e9ea2414/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
157162
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
@@ -182,6 +187,7 @@ go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE=
182187
go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
183188
go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
184189
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
190+
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
185191
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
186192
go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8=
187193
go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak=
@@ -267,6 +273,7 @@ golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4f
267273
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
268274
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
269275
golang.org/x/tools v0.9.1 h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo=
276+
golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc=
270277
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
271278
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
272279
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

0 commit comments

Comments
 (0)