From 46c2b8f2a49544e9a4bf678da0f1d326fbc3af59 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Wed, 12 Oct 2022 12:12:19 -0700 Subject: [PATCH] Add postgres crds to charts Signed-off-by: Tamal Saha --- .../crds/postgres.kubedb.com_publishers.yaml | 205 ++++++++++ .../crds/postgres.kubedb.com_subscribers.yaml | 170 ++++++++ crds/kubedb-crds.yaml | 379 ++++++++++++++++++ hack/scripts/import-crds.sh | 4 + 4 files changed, 758 insertions(+) create mode 100644 charts/kubedb-crds/crds/postgres.kubedb.com_publishers.yaml create mode 100644 charts/kubedb-crds/crds/postgres.kubedb.com_subscribers.yaml diff --git a/charts/kubedb-crds/crds/postgres.kubedb.com_publishers.yaml b/charts/kubedb-crds/crds/postgres.kubedb.com_publishers.yaml new file mode 100644 index 000000000..9f3a30c35 --- /dev/null +++ b/charts/kubedb-crds/crds/postgres.kubedb.com_publishers.yaml @@ -0,0 +1,205 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: publishers.postgres.kubedb.com +spec: + group: postgres.kubedb.com + names: + categories: + - datastore + - kubedb + - appscode + - all + kind: Publisher + listKind: PublisherList + plural: publishers + shortNames: + - pub + singular: publisher + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Status + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + allowedSubscribers: + default: + namespaces: + from: Same + properties: + namespaces: + default: + from: Same + properties: + from: + default: Same + enum: + - All + - Selector + - Same + type: string + selector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + type: object + selector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + type: object + databaseName: + type: string + deletionPolicy: + default: Delete + enum: + - Delete + - Retain + type: string + disable: + type: boolean + name: + type: string + parameters: + properties: + operations: + items: + enum: + - insert + - update + - delete + - truncate + type: string + type: array + publishViaPartitionRoot: + type: boolean + type: object + publishAllTables: + type: boolean + serverRef: + properties: + name: + type: string + type: object + x-kubernetes-map-type: atomic + tables: + items: + type: string + type: array + required: + - databaseName + - name + - serverRef + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + enum: + - Pending + - InProgress + - Current + - Failed + type: string + subscribers: + items: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + type: array + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/charts/kubedb-crds/crds/postgres.kubedb.com_subscribers.yaml b/charts/kubedb-crds/crds/postgres.kubedb.com_subscribers.yaml new file mode 100644 index 000000000..0cb4d0f45 --- /dev/null +++ b/charts/kubedb-crds/crds/postgres.kubedb.com_subscribers.yaml @@ -0,0 +1,170 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: subscribers.postgres.kubedb.com +spec: + group: postgres.kubedb.com + names: + categories: + - datastore + - kubedb + - appscode + - all + kind: Subscriber + listKind: SubscriberList + plural: subscribers + shortNames: + - sub + singular: subscriber + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Status + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + databaseName: + type: string + deletionPolicy: + default: Delete + enum: + - Delete + - Retain + type: string + disable: + type: boolean + name: + type: string + parameters: + properties: + binary: + type: boolean + connect: + type: boolean + copyData: + type: boolean + createSlot: + type: boolean + enabled: + type: boolean + slotName: + type: string + streaming: + type: boolean + synchronousCommit: + type: string + tableCreationPolicy: + type: string + type: object + publisher: + properties: + external: + properties: + databaseName: + type: string + publications: + items: + type: string + type: array + serverRef: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + required: + - databaseName + - publications + - serverRef + type: object + managed: + properties: + namespace: + type: string + refs: + items: + properties: + name: + type: string + type: object + x-kubernetes-map-type: atomic + type: array + required: + - refs + type: object + type: object + serverRef: + properties: + name: + type: string + type: object + x-kubernetes-map-type: atomic + required: + - databaseName + - name + - publisher + - serverRef + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + enum: + - Pending + - InProgress + - Current + - Failed + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/crds/kubedb-crds.yaml b/crds/kubedb-crds.yaml index 45d231cc8..4512be2bc 100644 --- a/crds/kubedb-crds.yaml +++ b/crds/kubedb-crds.yaml @@ -76424,6 +76424,385 @@ spec: subresources: status: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: publishers.postgres.kubedb.com +spec: + group: postgres.kubedb.com + names: + categories: + - datastore + - kubedb + - appscode + - all + kind: Publisher + listKind: PublisherList + plural: publishers + shortNames: + - pub + singular: publisher + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Status + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + allowedSubscribers: + default: + namespaces: + from: Same + properties: + namespaces: + default: + from: Same + properties: + from: + default: Same + enum: + - All + - Selector + - Same + type: string + selector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + type: object + selector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + type: object + databaseName: + type: string + deletionPolicy: + default: Delete + enum: + - Delete + - Retain + type: string + disable: + type: boolean + name: + type: string + parameters: + properties: + operations: + items: + enum: + - insert + - update + - delete + - truncate + type: string + type: array + publishViaPartitionRoot: + type: boolean + type: object + publishAllTables: + type: boolean + serverRef: + properties: + name: + type: string + type: object + x-kubernetes-map-type: atomic + tables: + items: + type: string + type: array + required: + - databaseName + - name + - serverRef + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + enum: + - Pending + - InProgress + - Current + - Failed + type: string + subscribers: + items: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + type: array + type: object + type: object + served: true + storage: true + subresources: + status: {} + +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: subscribers.postgres.kubedb.com +spec: + group: postgres.kubedb.com + names: + categories: + - datastore + - kubedb + - appscode + - all + kind: Subscriber + listKind: SubscriberList + plural: subscribers + shortNames: + - sub + singular: subscriber + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Status + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + databaseName: + type: string + deletionPolicy: + default: Delete + enum: + - Delete + - Retain + type: string + disable: + type: boolean + name: + type: string + parameters: + properties: + binary: + type: boolean + connect: + type: boolean + copyData: + type: boolean + createSlot: + type: boolean + enabled: + type: boolean + slotName: + type: string + streaming: + type: boolean + synchronousCommit: + type: string + tableCreationPolicy: + type: string + type: object + publisher: + properties: + external: + properties: + databaseName: + type: string + publications: + items: + type: string + type: array + serverRef: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + required: + - databaseName + - publications + - serverRef + type: object + managed: + properties: + namespace: + type: string + refs: + items: + properties: + name: + type: string + type: object + x-kubernetes-map-type: atomic + type: array + required: + - refs + type: object + type: object + serverRef: + properties: + name: + type: string + type: object + x-kubernetes-map-type: atomic + required: + - databaseName + - name + - publisher + - serverRef + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + enum: + - Pending + - InProgress + - Current + - Failed + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/hack/scripts/import-crds.sh b/hack/scripts/import-crds.sh index 6c864ed84..24fdaa5f9 100755 --- a/hack/scripts/import-crds.sh +++ b/hack/scripts/import-crds.sh @@ -54,6 +54,8 @@ crd-importer \ --group=ops.kubedb.com \ --group=autoscaling.kubedb.com \ --group=dashboard.kubedb.com \ + --group=postgres.kubedb.com \ + --group=archiver.kubedb.com \ --group=schema.kubedb.com crd-importer \ @@ -65,6 +67,8 @@ crd-importer \ --group=ops.kubedb.com \ --group=autoscaling.kubedb.com \ --group=dashboard.kubedb.com \ + --group=postgres.kubedb.com \ + --group=archiver.kubedb.com \ --group=schema.kubedb.com crd-importer \