From e2df171519b250649ff2bb120bc596f4d449f574 Mon Sep 17 00:00:00 2001 From: Arnob kumar saha Date: Tue, 9 Jun 2026 16:42:11 +0600 Subject: [PATCH] Fix documentdb & import kubedb crds Signed-off-by: Arnob kumar saha --- .../v1alpha1/memcachedautoscalers.yaml | 39 ----------- .../v1alpha1/milvusautoscalers.yaml | 4 ++ .../v1alpha1/weaviateautoscalers.yaml | 4 ++ .../v1alpha1/zookeeperautoscalers.yaml | 39 ----------- .../v1alpha1/elasticsearchopsrequests.yaml | 9 +++ .../v1alpha1/weaviateopsrequests.yaml | 1 + .../kubedb.com/v1alpha2/documentdbs.yaml | 2 +- .../kubedb/documentdbopsrequests.yaml | 64 +++++++++++++++++++ 8 files changed, 83 insertions(+), 79 deletions(-) create mode 100644 hub/resourcetabledefinitions/ops.kubedb.com/v1alpha1/kubedb/documentdbopsrequests.yaml diff --git a/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/memcachedautoscalers.yaml b/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/memcachedautoscalers.yaml index 0ad0a9215..0c2dd258a 100644 --- a/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/memcachedautoscalers.yaml +++ b/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/memcachedautoscalers.yaml @@ -140,45 +140,6 @@ spec: timeout: type: string type: object - storage: - properties: - memcached: - properties: - expansionMode: - enum: - - Offline - - Online - type: string - scalingRules: - items: - properties: - appliesUpto: - type: string - threshold: - type: string - required: - - appliesUpto - - threshold - type: object - type: array - scalingThreshold: - format: int32 - type: integer - trigger: - type: string - upperBound: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - usageThreshold: - format: int32 - type: integer - required: - - expansionMode - type: object - type: object required: - databaseRef type: object diff --git a/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/milvusautoscalers.yaml b/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/milvusautoscalers.yaml index 8ca5431e4..8ea26c0ec 100644 --- a/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/milvusautoscalers.yaml +++ b/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/milvusautoscalers.yaml @@ -351,6 +351,10 @@ spec: - IfReady - Always type: string + maxRetries: + default: 1 + format: int32 + type: integer timeout: type: string type: object diff --git a/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/weaviateautoscalers.yaml b/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/weaviateautoscalers.yaml index 3871d36a1..fcae0eb80 100644 --- a/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/weaviateautoscalers.yaml +++ b/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/weaviateautoscalers.yaml @@ -131,6 +131,10 @@ spec: - IfReady - Always type: string + maxRetries: + default: 1 + format: int32 + type: integer timeout: type: string type: object diff --git a/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/zookeeperautoscalers.yaml b/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/zookeeperautoscalers.yaml index 271a5ce2d..2b3281c6a 100644 --- a/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/zookeeperautoscalers.yaml +++ b/hub/resourcedescriptors/autoscaling.kubedb.com/v1alpha1/zookeeperautoscalers.yaml @@ -138,45 +138,6 @@ spec: timeout: type: string type: object - storage: - properties: - zookeeper: - properties: - expansionMode: - enum: - - Offline - - Online - type: string - scalingRules: - items: - properties: - appliesUpto: - type: string - threshold: - type: string - required: - - appliesUpto - - threshold - type: object - type: array - scalingThreshold: - format: int32 - type: integer - trigger: - type: string - upperBound: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - usageThreshold: - format: int32 - type: integer - required: - - expansionMode - type: object - type: object required: - databaseRef type: object diff --git a/hub/resourcedescriptors/ops.kubedb.com/v1alpha1/elasticsearchopsrequests.yaml b/hub/resourcedescriptors/ops.kubedb.com/v1alpha1/elasticsearchopsrequests.yaml index 98f6ee42a..4e3138115 100644 --- a/hub/resourcedescriptors/ops.kubedb.com/v1alpha1/elasticsearchopsrequests.yaml +++ b/hub/resourcedescriptors/ops.kubedb.com/v1alpha1/elasticsearchopsrequests.yaml @@ -176,6 +176,15 @@ spec: type: integer migration: properties: + coordinating: + properties: + oldPVReclaimPolicy: + type: string + storageClassName: + type: string + required: + - storageClassName + type: object data: properties: oldPVReclaimPolicy: diff --git a/hub/resourcedescriptors/ops.kubedb.com/v1alpha1/weaviateopsrequests.yaml b/hub/resourcedescriptors/ops.kubedb.com/v1alpha1/weaviateopsrequests.yaml index 3bc2cc36d..299260613 100644 --- a/hub/resourcedescriptors/ops.kubedb.com/v1alpha1/weaviateopsrequests.yaml +++ b/hub/resourcedescriptors/ops.kubedb.com/v1alpha1/weaviateopsrequests.yaml @@ -149,6 +149,7 @@ spec: - Restart - Reconfigure - RotateAuth + - StorageMigration type: string verticalScaling: properties: diff --git a/hub/resourceeditors/kubedb.com/v1alpha2/documentdbs.yaml b/hub/resourceeditors/kubedb.com/v1alpha2/documentdbs.yaml index 0cd645d4b..4e44ab973 100644 --- a/hub/resourceeditors/kubedb.com/v1alpha2/documentdbs.yaml +++ b/hub/resourceeditors/kubedb.com/v1alpha2/documentdbs.yaml @@ -200,7 +200,7 @@ spec: version: v0.34.0 enforceQuota: true options: - name: kubedbcom-db2-editor-options + name: kubedbcom-documentdb-editor-options sourceRef: apiGroup: source.toolkit.fluxcd.io kind: HelmRepository diff --git a/hub/resourcetabledefinitions/ops.kubedb.com/v1alpha1/kubedb/documentdbopsrequests.yaml b/hub/resourcetabledefinitions/ops.kubedb.com/v1alpha1/kubedb/documentdbopsrequests.yaml new file mode 100644 index 000000000..8bb1ae9ae --- /dev/null +++ b/hub/resourcetabledefinitions/ops.kubedb.com/v1alpha1/kubedb/documentdbopsrequests.yaml @@ -0,0 +1,64 @@ +apiVersion: meta.k8s.appscode.com/v1alpha1 +kind: ResourceTableDefinition +metadata: + labels: + k8s.io/group: ops.kubedb.com + k8s.io/kind: DocumentDBOpsRequest + k8s.io/resource: documentdbopsrequests + k8s.io/version: v1alpha1 + name: ops.kubedb.com-v1alpha1-documentdbopsrequests-kubedb +spec: + columns: + - name: Name + pathTemplate: '{{ .metadata.name }}' + priority: 3 + type: string + - name: Namespace + pathTemplate: '{{ .metadata.namespace }}' + priority: 3 + type: string + - name: Type + pathTemplate: '{{ .spec.type }}' + priority: 3 + type: string + - color: + template: | + {{ $status := .status.phase }} + {{ $color := "gray" }} + {{ if list "Pending" | has $status }} + {{ $color = "gray" }} + {{ else if list "Progressing" | has $status }} + {{ $color = "info" }} + {{ else if list "Successful" | has $status }} + {{ $color = "success" }} + {{ else if list "WaitingForApproval" | has $status }} + {{ $color = "warning" }} + {{ else if list "Failed"| has $status }} + {{ $color = "danger" }} + {{ else if list "Approved" | has $status }} + {{ $color = "link" }} + {{ else if list "Denied"| has $status }} + {{ $color = "dark" }} + {{ end }} + {{- printf "%s" $color -}} + name: Status + pathTemplate: '{{ .status.phase }}' + priority: 3 + type: string + - name: Age + pathTemplate: '{{ .metadata.creationTimestamp }}' + priority: 3 + sort: + enable: true + template: '{{ .metadata.creationTimestamp | toDate "2006-01-02T15:04:05Z07:00" | unixEpoch }}' + type: integer + tooltip: + template: '{{ .metadata.creationTimestamp }}' + type: date + defaultView: false + resource: + group: ops.kubedb.com + kind: DocumentDBOpsRequest + name: documentdbopsrequests + scope: Namespaced + version: v1alpha1