From dc9bb93316fdca8f5cbc5ee6e1fd79ee3cf8e020 Mon Sep 17 00:00:00 2001 From: Chen Chunhsien <109344717+chenchunhsien@users.noreply.github.com> Date: Thu, 29 Sep 2022 16:20:22 +0800 Subject: [PATCH 1/2] apiextensions.k8s.io/v1 The apiextensions.k8s.io/v1beta1 API version of CustomResourceDefinition is no longer served as of v1.22. --- ...un_distributedredisclusters_crd_V1.22.yaml | 79 +++++++++++++++++++ ...dis.kun_redisclusterbackups_crd_V1.22.yaml | 51 ++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 deploy/crds/redis.kun_distributedredisclusters_crd_V1.22.yaml create mode 100644 deploy/crds/redis.kun_redisclusterbackups_crd_V1.22.yaml diff --git a/deploy/crds/redis.kun_distributedredisclusters_crd_V1.22.yaml b/deploy/crds/redis.kun_distributedredisclusters_crd_V1.22.yaml new file mode 100644 index 000000000..787eba5ef --- /dev/null +++ b/deploy/crds/redis.kun_distributedredisclusters_crd_V1.22.yaml @@ -0,0 +1,79 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: distributedredisclusters.redis.kun +spec: + group: redis.kun + names: + kind: DistributedRedisCluster + listKind: DistributedRedisClusterList + plural: distributedredisclusters + singular: distributedrediscluster + shortNames: + - drc + scope: Namespaced + versions: + - name: v1alpha1 + served: true + storage: true + additionalPrinterColumns: + - jsonPath: .spec.masterSize + description: The number of redis master node in the ensemble + name: MasterSize + type: integer + - jsonPath: .status.status + description: The status of redis cluster + name: Status + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.numberOfMaster + priority: 1 + description: The current master number of redis cluster + name: CurrentMasters + type: integer + - jsonPath: .spec.image + priority: 1 + description: The image of redis cluster + name: Images + type: string + subresources: + status: {} + schema: + openAPIV3Schema: + description: DistributedRedisCluster is the Schema for the distributedredisclusters API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: DistributedRedisClusterSpec defines the desired state of DistributedRedisCluster + properties: + masterSize: + format: int32 + type: integer + minimum: 3 + maximum: 10 + clusterReplicas: + format: int32 + type: integer + minimum: 1 + maximum: 3 + serviceName: + type: string + pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*' + type: object + status: + description: DistributedRedisClusterStatus defines the observed state of DistributedRedisCluster + type: object + type: object \ No newline at end of file diff --git a/deploy/crds/redis.kun_redisclusterbackups_crd_V1.22.yaml b/deploy/crds/redis.kun_redisclusterbackups_crd_V1.22.yaml new file mode 100644 index 000000000..5bc0428ff --- /dev/null +++ b/deploy/crds/redis.kun_redisclusterbackups_crd_V1.22.yaml @@ -0,0 +1,51 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: redisclusterbackups.redis.kun +spec: + group: redis.kun + names: + kind: RedisClusterBackup + listKind: RedisClusterBackupList + plural: redisclusterbackups + singular: redisclusterbackup + shortNames: + - drcb + scope: Namespaced + versions: + - name: v1alpha1 + served: true + storage: true + additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.phase + description: The phase of redis cluster backup + name: Phase + type: string + subresources: + status: {} + schema: + openAPIV3Schema: + description: RedisClusterBackup is the Schema for the redisclusterbackups API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: RedisClusterBackupSpec defines the desired state of RedisClusterBackup + type: object + status: + description: RedisClusterBackupStatus defines the observed state of RedisClusterBackup + type: object + type: object \ No newline at end of file From 9f92871a41badcdde873165f796a1c3a4a07ed58 Mon Sep 17 00:00:00 2001 From: Chen Chunhsien <109344717+chenchunhsien@users.noreply.github.com> Date: Thu, 29 Sep 2022 18:53:49 +0800 Subject: [PATCH 2/2] Update redis.kun_distributedredisclusters_crd_V1.22.yaml --- deploy/crds/redis.kun_distributedredisclusters_crd_V1.22.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/crds/redis.kun_distributedredisclusters_crd_V1.22.yaml b/deploy/crds/redis.kun_distributedredisclusters_crd_V1.22.yaml index 787eba5ef..a3c60209c 100644 --- a/deploy/crds/redis.kun_distributedredisclusters_crd_V1.22.yaml +++ b/deploy/crds/redis.kun_distributedredisclusters_crd_V1.22.yaml @@ -72,8 +72,10 @@ spec: serviceName: type: string pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*' + image: + type: string type: object status: description: DistributedRedisClusterStatus defines the observed state of DistributedRedisCluster type: object - type: object \ No newline at end of file + type: object