Skip to content

Commit

Permalink
Add Singlestore (#782)
Browse files Browse the repository at this point in the history
Signed-off-by: ashraful <[email protected]>
  • Loading branch information
AshrafulHaqueToni authored Jan 19, 2024
1 parent eec84b6 commit 9074c79
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 14 deletions.
3 changes: 3 additions & 0 deletions catalog/kubedb/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
"5.0.14",
"4.0.11"
],
"Singlestore": [
"8.1.32"
],
"ZooKeeper": [
"3.9.1",
"3.8.3",
Expand Down
17 changes: 17 additions & 0 deletions catalog/kubedb/raw/singlestore/singlestore-8.1.32.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions charts/kubedb-catalog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The following table lists the configurable parameters of the `kubedb-catalog` ch
| featureGates.ProxySQL | | <code>true</code> |
| featureGates.Rabbitmq | | <code>true</code> |
| featureGates.Redis | | <code>true</code> |
| featureGates.SingleStore | | <code>false</code> |
| featureGates.Singlestore | | <code>true</code> |
| featureGates.Solr | | <code>false</code> |
| featureGates.ZooKeeper | | <code>true</code> |
| psp.enabled | | <code>true</code> |
Expand All @@ -97,8 +97,6 @@ The following table lists the configurable parameters of the `kubedb-catalog` ch
| psp.redis.privileged | | <code>false</code> |
| psp.kafka.allowPrivilegeEscalation | | <code>false</code> |
| psp.kafka.privileged | | <code>false</code> |
| psp.rabbitmq.allowPrivilegeEscalation | | <code>false</code> |
| psp.rabbitmq.privileged | | <code>false</code> |
| skipDeprecated | Set true to avoid deploying deprecated versions | <code>true</code> |


Expand Down
Original file line number Diff line number Diff line change
@@ -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 }}
5 changes: 1 addition & 4 deletions charts/kubedb-catalog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ featureGates:
ProxySQL: true
Rabbitmq: true
Redis: true
SingleStore: false
Singlestore: true
Solr: false
ZooKeeper: true

Expand Down Expand Up @@ -78,9 +78,6 @@ psp:
kafka:
allowPrivilegeEscalation: false
privileged: false
rabbitmq:
allowPrivilegeEscalation: false
privileged: false

# Set true to avoid deploying deprecated versions
skipDeprecated: true
2 changes: 1 addition & 1 deletion charts/kubedb-provisioner/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rules:
- ""
resources:
- serviceaccounts
verbs: ["create", "delete", "list", "watch", "get", "patch", "deletecollection"]
verbs: ["create", "delete", "get", "watch", "list", "patch", "deletecollection"]
- apiGroups:
- apps
resources:
Expand Down
6 changes: 3 additions & 3 deletions charts/kubedb-webhook-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The following table lists the configurable parameters of the `kubedb-webhook-ser
| featureGates.FerretDB | | <code>false</code> |
| featureGates.Kafka | | <code>true</code> |
| featureGates.MariaDB | | <code>true</code> |
| featureGates.Memcached | | <code>true</code> |
| featureGates.Memcached | | <code>false</code> |
| featureGates.MicrosoftSQLServer | | <code>false</code> |
| featureGates.MongoDB | | <code>true</code> |
| featureGates.MySQL | | <code>true</code> |
Expand All @@ -75,11 +75,11 @@ The following table lists the configurable parameters of the `kubedb-webhook-ser
| featureGates.PgPool | | <code>false</code> |
| featureGates.Postgres | | <code>true</code> |
| featureGates.ProxySQL | | <code>true</code> |
| featureGates.RabbitMQ | | <code>true</code> |
| featureGates.RabbitMQ | | <code>false</code> |
| featureGates.Redis | | <code>true</code> |
| featureGates.Singlestore | | <code>false</code> |
| featureGates.Solr | | <code>false</code> |
| featureGates.ZooKeeper | | <code>true</code> |
| featureGates.ZooKeeper | | <code>false</code> |
| imagePullSecrets | Specify an array of imagePullSecrets. Secrets must be manually created in the namespace. <br> Example: <br> `helm template charts/kubedb-webhook-server \` <br> `--set imagePullSecrets[0].name=sec0 \` <br> `--set imagePullSecrets[1].name=sec1` | <code>[]</code> |
| imagePullPolicy | Container image pull policy | <code>IfNotPresent</code> |
| criticalAddon | If true, installs KubeDB webhook server as critical addon | <code>false</code> |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
6 changes: 3 additions & 3 deletions charts/kubedb-webhook-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ featureGates:
FerretDB: false
Kafka: true
MariaDB: true
Memcached: true
Memcached: false
MicrosoftSQLServer: false
MongoDB: true
MySQL: true
Expand All @@ -65,11 +65,11 @@ featureGates:
PgPool: false
Postgres: true
ProxySQL: true
RabbitMQ: true
RabbitMQ: false
Redis: true
Singlestore: false
Solr: false
ZooKeeper: true
ZooKeeper: false

# Specify an array of imagePullSecrets.
# Secrets must be manually created in the namespace.
Expand Down

0 comments on commit 9074c79

Please sign in to comment.