diff --git a/catalog/kubedb/active_versions.json b/catalog/kubedb/active_versions.json index 25f43bd5e..2cf001ea1 100644 --- a/catalog/kubedb/active_versions.json +++ b/catalog/kubedb/active_versions.json @@ -115,6 +115,9 @@ "5.0.14", "4.0.11" ], + "Singlestore": [ + "8.1.32" + ], "ZooKeeper": [ "3.9.1", "3.8.3", diff --git a/catalog/kubedb/raw/singlestore/singlestore-8.1.32.yaml b/catalog/kubedb/raw/singlestore/singlestore-8.1.32.yaml new file mode 100644 index 000000000..786cc4b7e --- /dev/null +++ b/catalog/kubedb/raw/singlestore/singlestore-8.1.32.yaml @@ -0,0 +1,17 @@ +apiVersion: catalog.kubedb.com/v1alpha1 +kind: SinglestoreVersion +metadata: + name: 8.1.32 +spec: + coordinator: + image: ghcr.io/kubedb/singlestore-coordinator:v0.0.1 + db: + image: singlestore/node:alma-8.1.32-e3d3cde6da + initContainer: + image: ghcr.io/kubedb/singlestore-init:8.1.32 + securityContext: + runAsGroup: 998 + runAsUser: 999 + standalone: + image: singlestore/cluster-in-a-box:alma-8.1.32-e3d3cde6da-4.0.16-1.17.6 + version: 8.1.32 diff --git a/charts/kubedb-catalog/README.md b/charts/kubedb-catalog/README.md index e821b9fa2..9d6d74560 100644 --- a/charts/kubedb-catalog/README.md +++ b/charts/kubedb-catalog/README.md @@ -73,7 +73,7 @@ The following table lists the configurable parameters of the `kubedb-catalog` ch | featureGates.ProxySQL | | true | | featureGates.RabbitMQ | | false | | featureGates.Redis | | true | -| featureGates.SingleStore | | false | +| featureGates.Singlestore | | true | | featureGates.Solr | | false | | featureGates.ZooKeeper | | true | | psp.enabled | | true | @@ -97,6 +97,8 @@ The following table lists the configurable parameters of the `kubedb-catalog` ch | psp.redis.privileged | | false | | psp.kafka.allowPrivilegeEscalation | | false | | psp.kafka.privileged | | false | +| psp.singlestore.allowPrivilegeEscalation | | false | +| psp.singlestore.privileged | | false | | skipDeprecated | Set true to avoid deploying deprecated versions | true | diff --git a/charts/kubedb-catalog/templates/singlestore/singlestore-8.1.32.yaml b/charts/kubedb-catalog/templates/singlestore/singlestore-8.1.32.yaml new file mode 100644 index 000000000..ec5feb724 --- /dev/null +++ b/charts/kubedb-catalog/templates/singlestore/singlestore-8.1.32.yaml @@ -0,0 +1,27 @@ +{{ $featureGates := .Values.featureGates }} +{{- if .Values.global }} + {{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} +{{- end }} + +{{ if $featureGates.Singlestore }} + +apiVersion: catalog.kubedb.com/v1alpha1 +kind: SinglestoreVersion +metadata: + name: '8.1.32' + labels: + {{- include "kubedb-catalog.labels" . | nindent 4 }} +spec: + coordinator: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/singlestore-coordinator") $) }}:v0.0.1' + db: + image: '{{ include "image.dockerHub" (merge (dict "_repo" "singlestore/node") $) }}:alma-8.1.32-e3d3cde6da' + initContainer: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/singlestore-init") $) }}:8.1.32' + securityContext: + runAsGroup: 998 + runAsUser: 999 + standalone: + image: '{{ include "image.dockerHub" (merge (dict "_repo" "singlestore/cluster-in-a-box") $) }}:alma-8.1.32-e3d3cde6da-4.0.16-1.17.6' + version: 8.1.32 +{{ end }} diff --git a/charts/kubedb-catalog/values.yaml b/charts/kubedb-catalog/values.yaml index d75c73fef..441561d6f 100644 --- a/charts/kubedb-catalog/values.yaml +++ b/charts/kubedb-catalog/values.yaml @@ -42,7 +42,7 @@ featureGates: ProxySQL: true RabbitMQ: false Redis: true - SingleStore: false + Singlestore: true Solr: false ZooKeeper: true @@ -78,6 +78,9 @@ psp: kafka: allowPrivilegeEscalation: false privileged: false + singlestore: + allowPrivilegeEscalation: false + privileged: false # Set true to avoid deploying deprecated versions skipDeprecated: true diff --git a/charts/kubedb-crd-manager/README.md b/charts/kubedb-crd-manager/README.md index 95aa79b3a..12cb6027b 100644 --- a/charts/kubedb-crd-manager/README.md +++ b/charts/kubedb-crd-manager/README.md @@ -52,7 +52,7 @@ The following table lists the configurable parameters of the `kubedb-crd-manager | image.repository | App container image | kubedb-crd-manager | | image.tag | Overrides the image tag whose default is the chart appVersion. | "" | | imagePullSecrets | Specify an array of imagePullSecrets. Secrets must be manually created in the namespace.
Example:
`helm template charts/kubedb-ops-manager \`
`--set imagePullSecrets[0].name=sec0 \`
`--set imagePullSecrets[1].name=sec1` | [] | -| imagePullPolicy | Container image pull policy | IfNotPresent | +| imagePullPolicy | Container image pull policy | Always | | nameOverride | | "" | | fullnameOverride | | "" | | podAnnotations | | {} | diff --git a/charts/kubedb-crd-manager/values.yaml b/charts/kubedb-crd-manager/values.yaml index 9dc7f9af8..ed534b3cd 100644 --- a/charts/kubedb-crd-manager/values.yaml +++ b/charts/kubedb-crd-manager/values.yaml @@ -20,7 +20,7 @@ image: # --set imagePullSecrets[1].name=sec1 imagePullSecrets: [] # Container image pull policy -imagePullPolicy: IfNotPresent +imagePullPolicy: Always nameOverride: "" fullnameOverride: "" diff --git a/charts/kubedb-crds/crds/kubedb.com_kafkas.yaml b/charts/kubedb-crds/crds/kubedb.com_kafkas.yaml index 949f57501..cb153c914 100644 --- a/charts/kubedb-crds/crds/kubedb.com_kafkas.yaml +++ b/charts/kubedb-crds/crds/kubedb.com_kafkas.yaml @@ -7310,11 +7310,6 @@ spec: properties: broker: properties: - nodeSelector: - additionalProperties: - type: string - type: object - x-kubernetes-map-type: atomic replicas: format: int32 type: integer @@ -7436,30 +7431,9 @@ spec: type: object suffix: type: string - tolerations: - items: - properties: - effect: - type: string - key: - type: string - operator: - type: string - tolerationSeconds: - format: int64 - type: integer - value: - type: string - type: object - type: array type: object controller: properties: - nodeSelector: - additionalProperties: - type: string - type: object - x-kubernetes-map-type: atomic replicas: format: int32 type: integer @@ -7581,22 +7555,6 @@ spec: type: object suffix: type: string - tolerations: - items: - properties: - effect: - type: string - key: - type: string - operator: - type: string - tolerationSeconds: - format: int64 - type: integer - value: - type: string - type: object - type: array type: object type: object version: diff --git a/charts/kubedb-crds/crds/kubedb.com_singlestores.yaml b/charts/kubedb-crds/crds/kubedb.com_singlestores.yaml index 50e170e0a..5e3b7d981 100644 --- a/charts/kubedb-crds/crds/kubedb.com_singlestores.yaml +++ b/charts/kubedb-crds/crds/kubedb.com_singlestores.yaml @@ -11568,6 +11568,25 @@ spec: type: object suffix: type: string +<<<<<<< HEAD +======= + tolerations: + items: + properties: + effect: + type: string + key: + type: string + operator: + type: string + tolerationSeconds: + format: int64 + type: integer + value: + type: string + type: object + type: array +>>>>>>> 31bf4b9c (Add Singlestore) type: object type: object version: diff --git a/charts/kubedb-provisioner/templates/cluster-role.yaml b/charts/kubedb-provisioner/templates/cluster-role.yaml index 5fc41f211..4c6f0b632 100644 --- a/charts/kubedb-provisioner/templates/cluster-role.yaml +++ b/charts/kubedb-provisioner/templates/cluster-role.yaml @@ -31,7 +31,7 @@ rules: - "" resources: - serviceaccounts - verbs: ["create", "delete", "list", "watch", "get", "patch", "deletecollection"] + verbs: ["create", "delete", "get", "patch", "deletecollection"] - apiGroups: - apps resources: diff --git a/charts/kubedb-ui-server/crds/kubedb.com_kafkas.yaml b/charts/kubedb-ui-server/crds/kubedb.com_kafkas.yaml index 949f57501..cb153c914 100644 --- a/charts/kubedb-ui-server/crds/kubedb.com_kafkas.yaml +++ b/charts/kubedb-ui-server/crds/kubedb.com_kafkas.yaml @@ -7310,11 +7310,6 @@ spec: properties: broker: properties: - nodeSelector: - additionalProperties: - type: string - type: object - x-kubernetes-map-type: atomic replicas: format: int32 type: integer @@ -7436,30 +7431,9 @@ spec: type: object suffix: type: string - tolerations: - items: - properties: - effect: - type: string - key: - type: string - operator: - type: string - tolerationSeconds: - format: int64 - type: integer - value: - type: string - type: object - type: array type: object controller: properties: - nodeSelector: - additionalProperties: - type: string - type: object - x-kubernetes-map-type: atomic replicas: format: int32 type: integer @@ -7581,22 +7555,6 @@ spec: type: object suffix: type: string - tolerations: - items: - properties: - effect: - type: string - key: - type: string - operator: - type: string - tolerationSeconds: - format: int64 - type: integer - value: - type: string - type: object - type: array type: object type: object version: diff --git a/charts/kubedb-ui-server/crds/kubedb.com_singlestores.yaml b/charts/kubedb-ui-server/crds/kubedb.com_singlestores.yaml index 50e170e0a..ba311a331 100644 --- a/charts/kubedb-ui-server/crds/kubedb.com_singlestores.yaml +++ b/charts/kubedb-ui-server/crds/kubedb.com_singlestores.yaml @@ -4679,6 +4679,14 @@ spec: properties: aggregator: properties: +<<<<<<< HEAD +======= + nodeSelector: + additionalProperties: + type: string + type: object + x-kubernetes-map-type: atomic +>>>>>>> 31bf4b9c (Add Singlestore) podTemplate: properties: controller: @@ -8122,9 +8130,36 @@ spec: type: object suffix: type: string +<<<<<<< HEAD type: object leaf: properties: +======= + tolerations: + items: + properties: + effect: + type: string + key: + type: string + operator: + type: string + tolerationSeconds: + format: int64 + type: integer + value: + type: string + type: object + type: array + type: object + leaf: + properties: + nodeSelector: + additionalProperties: + type: string + type: object + x-kubernetes-map-type: atomic +>>>>>>> 31bf4b9c (Add Singlestore) podTemplate: properties: controller: @@ -11568,6 +11603,25 @@ spec: type: object suffix: type: string +<<<<<<< HEAD +======= + tolerations: + items: + properties: + effect: + type: string + key: + type: string + operator: + type: string + tolerationSeconds: + format: int64 + type: integer + value: + type: string + type: object + type: array +>>>>>>> 31bf4b9c (Add Singlestore) type: object type: object version: diff --git a/charts/kubedb-webhook-server/README.md b/charts/kubedb-webhook-server/README.md index e17c370da..3ccb636dd 100644 --- a/charts/kubedb-webhook-server/README.md +++ b/charts/kubedb-webhook-server/README.md @@ -77,7 +77,7 @@ The following table lists the configurable parameters of the `kubedb-webhook-ser | featureGates.ProxySQL | | true | | featureGates.RabbitMQ | | false | | featureGates.Redis | | true | -| featureGates.SingleStore | | false | +| featureGates.Singlestore | | true | | featureGates.Solr | | false | | featureGates.ZooKeeper | | true | | imagePullSecrets | Specify an array of imagePullSecrets. Secrets must be manually created in the namespace.
Example:
`helm template charts/kubedb-webhook-server \`
`--set imagePullSecrets[0].name=sec0 \`
`--set imagePullSecrets[1].name=sec1` | [] | diff --git a/charts/kubedb-webhook-server/templates/provisioner/mutating-webhook.yaml b/charts/kubedb-webhook-server/templates/provisioner/mutating-webhook.yaml index 9893665a3..e5c6731ab 100644 --- a/charts/kubedb-webhook-server/templates/provisioner/mutating-webhook.yaml +++ b/charts/kubedb-webhook-server/templates/provisioner/mutating-webhook.yaml @@ -267,5 +267,22 @@ webhooks: failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }} sideEffects: None {{- end }} +{{- if $featureGates.Singlestore }} +- name: singlestorewebhook.mutators.kubedb.com + clientConfig: + service: + namespace: default + name: kubernetes + path: /apis/mutators.kubedb.com/v1alpha1/singlestorewebhooks + caBundle: {{ $caCrt }} + rules: + - apiGroups: [ "kubedb.com" ] + apiVersions: [ "*" ] + resources: [ "singlestores" ] + operations: [ "CREATE", "UPDATE" ] + admissionReviewVersions: [ "v1beta1" ] + failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }} + sideEffects: None +{{- end }} {{- end }} {{- end }} diff --git a/charts/kubedb-webhook-server/templates/provisioner/validating-webhook.yaml b/charts/kubedb-webhook-server/templates/provisioner/validating-webhook.yaml index 1b8c7c10d..19711c6ca 100644 --- a/charts/kubedb-webhook-server/templates/provisioner/validating-webhook.yaml +++ b/charts/kubedb-webhook-server/templates/provisioner/validating-webhook.yaml @@ -282,5 +282,22 @@ webhooks: failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }} sideEffects: None {{- end }} +{{- if $featureGates.Singlestore }} +- name: singlestorewebhook.validators.kubedb.com + clientConfig: + service: + namespace: default + name: kubernetes + path: /apis/validators.kubedb.com/v1alpha1/singlestorewebhooks + caBundle: {{ $caCrt }} + rules: + - apiGroups: ["kubedb.com"] + apiVersions: ["*"] + resources: ["singlestores"] + operations: ["CREATE", "UPDATE", "DELETE"] + admissionReviewVersions: ["v1beta1"] + failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }} + sideEffects: None +{{- end }} {{- end }} {{- end }} diff --git a/charts/kubedb-webhook-server/values.yaml b/charts/kubedb-webhook-server/values.yaml index a5f9877b5..e702ba701 100644 --- a/charts/kubedb-webhook-server/values.yaml +++ b/charts/kubedb-webhook-server/values.yaml @@ -67,7 +67,7 @@ featureGates: ProxySQL: true RabbitMQ: false Redis: true - SingleStore: false + Singlestore: true Solr: false ZooKeeper: true