From 7fc5b91c55e880409f7bf96c07ef301f6846e23f Mon Sep 17 00:00:00 2001 From: Tyler Gu Date: Fri, 27 Oct 2023 04:51:23 -0500 Subject: [PATCH] Fix anvil zk port Signed-off-by: Tyler Gu --- data/anvil-zookeeper-operator/cr.yaml | 5 +++-- .../anvil-zookeeper-operator/operator-crash.yaml | 16 +++++++++++++--- data/anvil-zookeeper-operator/operator.yaml | 16 +++++++++++++--- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/data/anvil-zookeeper-operator/cr.yaml b/data/anvil-zookeeper-operator/cr.yaml index 6cdcdd1059..7f176957e0 100644 --- a/data/anvil-zookeeper-operator/cr.yaml +++ b/data/anvil-zookeeper-operator/cr.yaml @@ -1,7 +1,7 @@ apiVersion: anvil.dev/v1 kind: ZookeeperCluster metadata: - name: test-cluster + name: zookeeper spec: replicas: 3 image: pravega/zookeeper:0.2.14 @@ -29,4 +29,5 @@ spec: quorumListenOnAllIps: false persistence: enabled: true - storageSize: 20Gi \ No newline at end of file + storageSize: 20Gi + storageClassName: standard \ No newline at end of file diff --git a/data/anvil-zookeeper-operator/operator-crash.yaml b/data/anvil-zookeeper-operator/operator-crash.yaml index adbdcc3932..61bb96bd7d 100644 --- a/data/anvil-zookeeper-operator/operator-crash.yaml +++ b/data/anvil-zookeeper-operator/operator-crash.yaml @@ -558,7 +558,7 @@ spec: type: string default: {} type: object - node_selector: + nodeSelector: additionalProperties: type: string default: {} @@ -571,7 +571,6 @@ spec: - rule: "self == oldSelf" message: changing persistence.enabled is not supported storageClassName: - nullable: true type: string x-kubernetes-validations: - rule: "self == oldSelf" @@ -584,6 +583,7 @@ spec: message: changing persistence.storageSize is not supported required: - enabled + - storageClassName - storageSize type: object ports: @@ -678,13 +678,23 @@ spec: - ports - replicas type: object + status: + nullable: true + properties: + ready_replicas: + format: int32 + type: integer + required: + - ready_replicas + type: object required: - spec title: ZookeeperCluster type: object served: true storage: true - subresources: {} + subresources: + status: {} --- apiVersion: v1 kind: Namespace diff --git a/data/anvil-zookeeper-operator/operator.yaml b/data/anvil-zookeeper-operator/operator.yaml index 2e20ca65e7..0b4733651e 100644 --- a/data/anvil-zookeeper-operator/operator.yaml +++ b/data/anvil-zookeeper-operator/operator.yaml @@ -558,7 +558,7 @@ spec: type: string default: {} type: object - node_selector: + nodeSelector: additionalProperties: type: string default: {} @@ -571,7 +571,6 @@ spec: - rule: "self == oldSelf" message: changing persistence.enabled is not supported storageClassName: - nullable: true type: string x-kubernetes-validations: - rule: "self == oldSelf" @@ -584,6 +583,7 @@ spec: message: changing persistence.storageSize is not supported required: - enabled + - storageClassName - storageSize type: object ports: @@ -678,13 +678,23 @@ spec: - ports - replicas type: object + status: + nullable: true + properties: + ready_replicas: + format: int32 + type: integer + required: + - ready_replicas + type: object required: - spec title: ZookeeperCluster type: object served: true storage: true - subresources: {} + subresources: + status: {} --- apiVersion: v1 kind: Namespace