Skip to content

Commit

Permalink
Issue 124: The additionalPrinterColumn of the Zookeeper Cluster "repl…
Browse files Browse the repository at this point in the history
…icas" prints incorrect value (#131)

* Issue 124: Modifying the Zookeeper Operator CRD

Signed-off-by: SrishT <[email protected]>

* Issue 124: Addressing review comments

Signed-off-by: SrishT <[email protected]>
  • Loading branch information
SrishT authored Feb 28, 2020
1 parent d84aefd commit 21e2d3b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/zookeeper-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: zookeeper-operator
version: 0.2.2
appVersion: 0.2.2
version: latest
appVersion: latest
description: zookeeper operator Helm chart for Kubernetes
keywords:
- zookeeper
Expand Down
16 changes: 16 additions & 0 deletions charts/zookeeper-operator/templates/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ spec:
shortNames:
- zk
additionalPrinterColumns:
- name: Replicas
type: integer
description: The number of ZooKeeper servers in the ensemble
JSONPath: .spec.replicas
- name: Ready Replicas
type: integer
description: The number of ZooKeeper servers in the ensemble that are in a Ready state
JSONPath: .status.readyReplicas
- name: Internal Endpoint
type: string
description: Client endpoint internal to cluster network
JSONPath: .status.internalClientEndpoint
- name: External Endpoint
type: string
description: Client endpoint external to cluster network via LoadBalancer
JSONPath: .status.externalClientEndpoint
- name: Age
type: date
JSONPath: .metadata.creationTimestamp
Expand Down
2 changes: 1 addition & 1 deletion charts/zookeeper-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

image:
repository: pravega/zookeeper-operator
tag: 0.2.2
tag: latest
pullPolicy: IfNotPresent

## Install RBAC roles and bindings
Expand Down
4 changes: 2 additions & 2 deletions charts/zookeeper/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: zookeeper
version: 0.2.2
appVersion: 0.2.2
version: latest
appVersion: latest
description: zookeeper Helm chart for Kubernetes
keywords:
- zookeeper
Expand Down
3 changes: 3 additions & 0 deletions charts/zookeeper/templates/zookeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ metadata:
name: {{ template "zookeeper.fullname" . }}
spec:
replicas: 3
image:
repository: {{ with .Values.image }}{{ .repository }}{{ end }}
tag: {{ with .Values.image }}{{ .tag }}{{ end }}
2 changes: 1 addition & 1 deletion charts/zookeeper/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image:
repository: pravega/zookeeper
tag: 0.2.2
tag: latest
pullPolicy: IfNotPresent
2 changes: 1 addition & 1 deletion deploy/crds/zookeeper_v1beta1_zookeepercluster_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
- name: Replicas
type: integer
description: The number of ZooKeeper servers in the ensemble
JSONPath: .status.replicas
JSONPath: .spec.replicas
- name: Ready Replicas
type: integer
description: The number of ZooKeeper servers in the ensemble that are in a Ready state
Expand Down

0 comments on commit 21e2d3b

Please sign in to comment.