Skip to content

Commit

Permalink
fix: Update zookeeper-operator defaults for zookeeper image. (#8)
Browse files Browse the repository at this point in the history
* fix: Update zookeeper-operator defaults for zookeeper image.

* fix: Update patched image and fix typo.
  • Loading branch information
kaiwalyajoshi authored Jan 10, 2024
1 parent 6d3546e commit 45dffc2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ crds: ## Generate CRDs

# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
deploy: manifests kustomize
cd config/manager && $(KUSTOMIZE) edit set image pravega/zookeeper-operator=$(TEST_IMAGE)
cd config/manager && $(KUSTOMIZE) edit set image ghcr.io/mesosphere/zookeeper-operator=$(TEST_IMAGE)
$(KUSTOMIZE) build config/default | kubectl apply -f -

# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
Expand Down
4 changes: 2 additions & 2 deletions api/v1beta1/zookeepercluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
const (
// DefaultZkContainerRepository is the default docker repo for the zookeeper
// container
DefaultZkContainerRepository = "pravega/zookeeper"
DefaultZkContainerRepository = "ghcr.io/mesosphere/zookeeper"

// DefaultZkContainerVersion is the default tag used for for the zookeeper
// container
DefaultZkContainerVersion = "0.2.15"
DefaultZkContainerVersion = "0.2.15-d2iq"

// DefaultZkContainerPolicy is the default container pull policy used
DefaultZkContainerPolicy = "Always"
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/zookeepercluster_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var _ = Describe("ZookeeperCluster Types", func() {
})

It("Checking tostring() function", func() {
Ω(z.Spec.Image.ToString()).To(Equal("pravega/zookeeper:0.2.15"))
Ω(z.Spec.Image.ToString()).To(Equal("ghcr.io/mesosphere/zookeeper:0.2.15-d2iq"))
})

})
Expand Down
4 changes: 2 additions & 2 deletions charts/zookeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ replicas: 3
maxUnavailableReplicas:

image:
repository: pravega/zookeeper
tag: 0.2.15
repository: ghcr.io/mesosphere/zookeeper
tag: 0.2.15-d2iq
pullPolicy: IfNotPresent

triggerRollingRestart: false
Expand Down
2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
containers:
- name: zookeeper-operator
# Replace this with the built image name
image: pravega/zookeeper-operator:0.2.15
image: ghcr.io/mesosphere/zookeeper-operator:0.2.15-d2iq
ports:
- containerPort: 60000
name: metrics
Expand Down
4 changes: 2 additions & 2 deletions config/samples/ECS/zookeeper_v1beta1_zookeepercluster_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
spec:
replicas: 3
image:
repository: pravega/zookeeper
tag: 0.2.15
repository: ghcr.io/mesosphere/zookeeper
tag: 0.2.15-d2iq
storageType: persistence
persistence:
reclaimPolicy: Retain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
spec:
replicas: 3
image:
repository: pravega/zookeeper
tag: 0.2.15
repository: ghcr.io/mesosphere/zookeeper
tag: 0.2.15-d2iq
storageType: persistence
persistence:
reclaimPolicy: Delete
Expand Down

0 comments on commit 45dffc2

Please sign in to comment.