diff --git a/README.md b/README.md index d609f3a..ba1d3c1 100644 --- a/README.md +++ b/README.md @@ -36,15 +36,6 @@ make clean * located in `config/samples` -# Updating Helm Charts - -* Update Helmchart and increase version in `Chart.yaml` and `values.yaml` as required -* run `helm package charts/dbaas-operator -d charts/` -* run `helm package charts/mariadbprovider -d charts/` -* run `helm package charts/postgresqlprovider -d charts/` -* run `helm package charts/mongodbprovider -d charts/` -* run `helm repo index charts` - # Developing ## Install Kubebuilder ``` @@ -59,12 +50,3 @@ curl -L https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.2.0/ sudo mv /tmp/kubebuilder_2.2.0_${os}_${arch} /usr/local/kubebuilder export PATH=$PATH:/usr/local/kubebuilder/bin ``` - -# Other -## Dashboard -``` -kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta6/aio/deploy/recommended.yaml -kubectl apply -f test-resources/dashboard-rbac.yaml -kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | grep admin-user | awk '{print $1}') -kubectl proxy -``` \ No newline at end of file diff --git a/charts/dbaas-operator-0.1.0.tgz b/charts/dbaas-operator-0.1.0.tgz deleted file mode 100644 index 64b4a98..0000000 Binary files a/charts/dbaas-operator-0.1.0.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.1.1.tgz b/charts/dbaas-operator-0.1.1.tgz deleted file mode 100644 index 6baf38c..0000000 Binary files a/charts/dbaas-operator-0.1.1.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.1.10.tgz b/charts/dbaas-operator-0.1.10.tgz deleted file mode 100644 index 72e863d..0000000 Binary files a/charts/dbaas-operator-0.1.10.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.1.2.tgz b/charts/dbaas-operator-0.1.2.tgz deleted file mode 100644 index d1b5682..0000000 Binary files a/charts/dbaas-operator-0.1.2.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.1.3.tgz b/charts/dbaas-operator-0.1.3.tgz deleted file mode 100644 index 08eaaa2..0000000 Binary files a/charts/dbaas-operator-0.1.3.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.1.4.tgz b/charts/dbaas-operator-0.1.4.tgz deleted file mode 100644 index d5829c7..0000000 Binary files a/charts/dbaas-operator-0.1.4.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.1.5.tgz b/charts/dbaas-operator-0.1.5.tgz deleted file mode 100644 index 59f8da8..0000000 Binary files a/charts/dbaas-operator-0.1.5.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.1.6.tgz b/charts/dbaas-operator-0.1.6.tgz deleted file mode 100644 index 882d95d..0000000 Binary files a/charts/dbaas-operator-0.1.6.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.1.8.tgz b/charts/dbaas-operator-0.1.8.tgz deleted file mode 100644 index bdb9d31..0000000 Binary files a/charts/dbaas-operator-0.1.8.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.1.9.tgz b/charts/dbaas-operator-0.1.9.tgz deleted file mode 100644 index 46fde48..0000000 Binary files a/charts/dbaas-operator-0.1.9.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.2.1.tgz b/charts/dbaas-operator-0.2.1.tgz deleted file mode 100644 index 5322c17..0000000 Binary files a/charts/dbaas-operator-0.2.1.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.2.2.tgz b/charts/dbaas-operator-0.2.2.tgz deleted file mode 100644 index c1b510b..0000000 Binary files a/charts/dbaas-operator-0.2.2.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.3.0.tgz b/charts/dbaas-operator-0.3.0.tgz deleted file mode 100644 index 686546a..0000000 Binary files a/charts/dbaas-operator-0.3.0.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.3.1.tgz b/charts/dbaas-operator-0.3.1.tgz deleted file mode 100644 index 3d301fa..0000000 Binary files a/charts/dbaas-operator-0.3.1.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.3.2.tgz b/charts/dbaas-operator-0.3.2.tgz deleted file mode 100644 index 96a5845..0000000 Binary files a/charts/dbaas-operator-0.3.2.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.3.3.tgz b/charts/dbaas-operator-0.3.3.tgz deleted file mode 100644 index a363cb8..0000000 Binary files a/charts/dbaas-operator-0.3.3.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.3.4.tgz b/charts/dbaas-operator-0.3.4.tgz deleted file mode 100644 index 3d4688c..0000000 Binary files a/charts/dbaas-operator-0.3.4.tgz and /dev/null differ diff --git a/charts/dbaas-operator-0.4.0.tgz b/charts/dbaas-operator-0.4.0.tgz deleted file mode 100644 index 05ed6cd..0000000 Binary files a/charts/dbaas-operator-0.4.0.tgz and /dev/null differ diff --git a/charts/dbaas-operator/.helmignore b/charts/dbaas-operator/.helmignore deleted file mode 100644 index 50af031..0000000 --- a/charts/dbaas-operator/.helmignore +++ /dev/null @@ -1,22 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/dbaas-operator/Chart.yaml b/charts/dbaas-operator/Chart.yaml deleted file mode 100644 index 04370c5..0000000 --- a/charts/dbaas-operator/Chart.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: v2 -name: dbaas-operator -description: A Helm chart for dbaas-operator -kubeVersion: ">= 1.19.0-0" - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -version: 0.4.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. -appVersion: v0.4.0 - -annotations: - artifacthub.io/changes: | - - kind: changed - description: update dbaas-operator to v0.4.0 diff --git a/charts/dbaas-operator/templates/_helpers.tpl b/charts/dbaas-operator/templates/_helpers.tpl deleted file mode 100644 index 8b9cc50..0000000 --- a/charts/dbaas-operator/templates/_helpers.tpl +++ /dev/null @@ -1,59 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "dbaas-operator.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "dbaas-operator.fullname" -}} -{{- if .Values.fullnameOverride -}} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- if contains $name .Release.Name -}} -{{- .Release.Name | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} -{{- end -}} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "dbaas-operator.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Common labels -*/}} -{{- define "dbaas-operator.labels" -}} -helm.sh/chart: {{ include "dbaas-operator.chart" . }} -{{ include "dbaas-operator.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end -}} - -{{/* -Selector labels -*/}} -{{- define "dbaas-operator.selectorLabels" -}} -app.kubernetes.io/name: {{ include "dbaas-operator.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end -}} - -{{/* -Create the name of the service account to use -*/}} -{{- define "dbaas-operator.serviceAccountName" -}} -{{ default "dbaas-operator" .Values.serviceAccount.nameOverride }} -{{- end -}} diff --git a/charts/dbaas-operator/templates/clusterrole.yaml b/charts/dbaas-operator/templates/clusterrole.yaml deleted file mode 100644 index 2feac9e..0000000 --- a/charts/dbaas-operator/templates/clusterrole.yaml +++ /dev/null @@ -1,239 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: {{ include "dbaas-operator.fullname" . }}-manager -rules: -- apiGroups: - - "" - resources: - - services - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - mariadb.amazee.io - resources: - - mariadbconsumers - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - mariadb.amazee.io - resources: - - mariadbconsumers/status - verbs: - - get - - patch - - update -- apiGroups: - - mariadb.amazee.io - resources: - - mariadbproviders - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - mariadb.amazee.io - resources: - - mariadbproviders/status - verbs: - - get - - patch - - update -- apiGroups: - - postgres.amazee.io - resources: - - postgresqlconsumers - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - postgres.amazee.io - resources: - - postgresqlconsumers/status - verbs: - - get - - patch - - update -- apiGroups: - - postgres.amazee.io - resources: - - postgresqlproviders - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - postgres.amazee.io - resources: - - postgresqlproviders/status - verbs: - - get - - patch - - update -- apiGroups: - - mongodb.amazee.io - resources: - - mongodbconsumers - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - mongodb.amazee.io - resources: - - mongodbconsumers/status - verbs: - - get - - patch - - update -- apiGroups: - - mongodb.amazee.io - resources: - - mongodbproviders - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - mongodb.amazee.io - resources: - - mongodbproviders/status - verbs: - - get - - patch - - update ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: {{ include "dbaas-operator.fullname" . }}-proxy -rules: -- apiGroups: - - authentication.k8s.io - resources: - - tokenreviews - verbs: - - create -- apiGroups: - - authorization.k8s.io - resources: - - subjectaccessreviews - verbs: - - create -{{if .Values.enableMariaDBProviders}} ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: {{ include "dbaas-operator.fullname" . }}-mariadbconsumer-role - labels: - # Add these permissions to the "admin" and "edit" default roles. - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" -rules: -- apiGroups: ["mariadb.amazee.io"] - resources: ["mariadbconsumers"] - verbs: ["*"] ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: {{ include "dbaas-operator.fullname" . }}-mariadbprovider-role - labels: - # Add these permissions to the "admin" and "edit" default roles. - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" -rules: -- apiGroups: ["mariadb.amazee.io"] - resources: ["mariadbproviders"] - verbs: ["*"] -{{- end }} -{{if .Values.enablePostreSQLProviders}} ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: {{ include "dbaas-operator.fullname" . }}-postgresqlconsumer-role - labels: - # Add these permissions to the "admin" and "edit" default roles. - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" -rules: -- apiGroups: ["postgres.amazee.io"] - resources: ["postgresqlconsumers"] - verbs: ["*"] ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: {{ include "dbaas-operator.fullname" . }}-postgresqlprovider-role - labels: - # Add these permissions to the "admin" and "edit" default roles. - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" -rules: -- apiGroups: ["postgres.amazee.io"] - resources: ["postgresqlproviders"] - verbs: ["*"] -{{- end }} -{{if .Values.enableMongoDBProviders}} ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: {{ include "dbaas-operator.fullname" . }}-mongodbconsumer-role - labels: - # Add these permissions to the "admin" and "edit" default roles. - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" -rules: -- apiGroups: ["mongodb.amazee.io"] - resources: ["mongodbconsumers"] - verbs: ["*"] ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: {{ include "dbaas-operator.fullname" . }}-mongodbprovider-role - labels: - # Add these permissions to the "admin" and "edit" default roles. - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" -rules: -- apiGroups: ["mongodb.amazee.io"] - resources: ["mongodbproviders"] - verbs: ["*"] -{{- end }} diff --git a/charts/dbaas-operator/templates/clusterrolebinding.yaml b/charts/dbaas-operator/templates/clusterrolebinding.yaml deleted file mode 100644 index 4da3c47..0000000 --- a/charts/dbaas-operator/templates/clusterrolebinding.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: {{ include "dbaas-operator.fullname" . }}-manager -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: {{ include "dbaas-operator.fullname" . }}-manager -subjects: -- kind: ServiceAccount - name: {{ include "dbaas-operator.serviceAccountName" . }} - namespace: {{ .Release.Namespace | quote }} ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: {{ include "dbaas-operator.fullname" . }}-proxy -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: {{ include "dbaas-operator.fullname" . }}-proxy -subjects: -- kind: ServiceAccount - name: {{ include "dbaas-operator.serviceAccountName" . }} - namespace: {{ .Release.Namespace | quote }} \ No newline at end of file diff --git a/charts/dbaas-operator/templates/deployment.yaml b/charts/dbaas-operator/templates/deployment.yaml deleted file mode 100644 index 07d8870..0000000 --- a/charts/dbaas-operator/templates/deployment.yaml +++ /dev/null @@ -1,67 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "dbaas-operator.fullname" . }} - labels: - {{- include "dbaas-operator.labels" . | nindent 4 }} -spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "dbaas-operator.selectorLabels" . | nindent 6 }} - template: - metadata: - labels: - {{- include "dbaas-operator.selectorLabels" . | nindent 8 }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "dbaas-operator.serviceAccountName" . }} - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - containers: - - args: - - --secure-listen-address=0.0.0.0:8443 - - --upstream=http://127.0.0.1:8080/ - - --logtostderr=true - - --v=10 - image: "{{ .Values.kubeRbacProxy.image.repository }}:{{ .Values.kubeRbacProxy.image.tag }}" - name: kube-rbac-proxy - ports: - - containerPort: 8443 - name: https - - args: - - --metrics-addr=127.0.0.1:8080 - - --enable-leader-election - {{- if .Values.enableMariaDBProviders }} - - --enable-mariadb-providers - {{- end }} - {{- if .Values.enableMongoDBProviders }} - - --enable-mongodb-providers - {{- end }} - {{- if .Values.enablePostreSQLProviders }} - - --enable-postgresql-providers - {{- end }} - command: - - /manager - image: "{{ .Values.image.repository }}:{{ coalesce .Values.image.tag .Chart.AppVersion }}" - name: manager - ports: - - containerPort: 5000 - name: backend - resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/charts/dbaas-operator/templates/mariadb-crd.yaml b/charts/dbaas-operator/templates/mariadb-crd.yaml deleted file mode 100644 index 917bb7f..0000000 --- a/charts/dbaas-operator/templates/mariadb-crd.yaml +++ /dev/null @@ -1,157 +0,0 @@ -{{if .Values.enableMariaDBProviders}} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - helm.sh/resource-policy: keep - controller-gen.kubebuilder.io/version: v0.6.2 - creationTimestamp: null - name: mariadbproviders.mariadb.amazee.io -spec: - group: mariadb.amazee.io - names: - kind: MariaDBProvider - listKind: MariaDBProviderList - plural: mariadbproviders - singular: mariadbprovider - scope: Namespaced - versions: - - name: v1 - schema: - openAPIV3Schema: - description: MariaDBProvider is the Schema for the mariadbproviders 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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: MariaDBProviderSpec defines the desired state of MariaDBProvider - properties: - environment: - description: These are the spec options for providers - type: string - hostname: - type: string - name: - type: string - namespace: - type: string - password: - type: string - port: - type: string - readReplicaHostnames: - items: - type: string - type: array - type: - type: string - user: - type: string - type: object - status: - description: MariaDBProviderStatus defines the observed state of MariaDBProvider - type: object - type: object - served: true - storage: true ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - helm.sh/resource-policy: keep - controller-gen.kubebuilder.io/version: v0.6.2 - creationTimestamp: null - name: mariadbconsumers.mariadb.amazee.io -spec: - group: mariadb.amazee.io - names: - kind: MariaDBConsumer - listKind: MariaDBConsumerList - plural: mariadbconsumers - singular: mariadbconsumer - scope: Namespaced - versions: - - name: v1 - schema: - openAPIV3Schema: - description: MariaDBConsumer is the Schema for the mariadbconsumers 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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: MariaDBConsumerSpec defines the desired state of MariaDBConsumer - properties: - consumer: - description: MariaDBConsumerData defines the provider link for this - consumer - properties: - database: - type: string - password: - type: string - services: - description: MariaDBConsumerServices defines the provider link - for this consumer - properties: - primary: - type: string - replicas: - items: - type: string - type: array - type: object - username: - type: string - type: object - environment: - description: These are the spec options for consumers - type: string - provider: - description: MariaDBConsumerProvider defines the provider link for - this consumer - properties: - hostname: - type: string - name: - type: string - namespace: - type: string - port: - type: string - readReplicas: - items: - type: string - type: array - type: - type: string - type: object - type: object - status: - description: MariaDBConsumerStatus defines the observed state of MariaDBConsumer - type: object - type: object - served: true - storage: true -{{- end }} \ No newline at end of file diff --git a/charts/dbaas-operator/templates/mongodb-crd.yaml b/charts/dbaas-operator/templates/mongodb-crd.yaml deleted file mode 100644 index 640e89f..0000000 --- a/charts/dbaas-operator/templates/mongodb-crd.yaml +++ /dev/null @@ -1,178 +0,0 @@ -{{if .Values.enableMongoDBProviders}} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - helm.sh/resource-policy: keep - controller-gen.kubebuilder.io/version: v0.6.2 - creationTimestamp: null - name: mongodbconsumers.mongodb.amazee.io -spec: - group: mongodb.amazee.io - names: - kind: MongoDBConsumer - listKind: MongoDBConsumerList - plural: mongodbconsumers - singular: mongodbconsumer - scope: Namespaced - versions: - - name: v1 - schema: - openAPIV3Schema: - description: MongoDBConsumer is the Schema for the mongodbconsumers 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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: MongoDBConsumerSpec defines the desired state of MongoDBConsumer - properties: - consumer: - description: MongoDBConsumerData defines the provider link for this - consumer - properties: - auth: - description: MongoDBAuth defines the authorisation mechanisms - that mongo can use - properties: - mechanism: - type: string - source: - type: string - tls: - type: boolean - required: - - tls - type: object - database: - type: string - password: - type: string - services: - description: MongoDBConsumerServices defines the provider link - for this consumer - properties: - primary: - type: string - type: object - username: - type: string - type: object - environment: - description: These are the spec options for consumers - type: string - provider: - description: MongoDBConsumerProvider defines the provider link for - this consumer - properties: - auth: - description: MongoDBAuth defines the authorisation mechanisms - that mongo can use - properties: - mechanism: - type: string - source: - type: string - tls: - type: boolean - required: - - tls - type: object - hostname: - type: string - name: - type: string - namespace: - type: string - port: - type: string - type: object - type: object - status: - description: MongoDBConsumerStatus defines the observed state of MongoDBConsumer - type: object - type: object - served: true - storage: true ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - helm.sh/resource-policy: keep - controller-gen.kubebuilder.io/version: v0.6.2 - creationTimestamp: null - name: mongodbproviders.mongodb.amazee.io -spec: - group: mongodb.amazee.io - names: - kind: MongoDBProvider - listKind: MongoDBProviderList - plural: mongodbproviders - singular: mongodbprovider - scope: Namespaced - versions: - - name: v1 - schema: - openAPIV3Schema: - description: MongoDBProvider is the Schema for the mongodbproviders 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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: MongoDBProviderSpec defines the desired state of MongoDBProvider - properties: - auth: - description: MongoDBAuth defines the authorisation mechanisms that - mongo can use - properties: - mechanism: - type: string - source: - type: string - tls: - type: boolean - required: - - tls - type: object - environment: - description: These are the spec options for providers - type: string - hostname: - type: string - password: - type: string - port: - type: string - type: - type: string - user: - type: string - type: object - status: - description: MongoDBProviderStatus defines the observed state of MongoDBProvider - type: object - type: object - served: true - storage: true -{{- end }} \ No newline at end of file diff --git a/charts/dbaas-operator/templates/postgres-crd.yaml b/charts/dbaas-operator/templates/postgres-crd.yaml deleted file mode 100644 index d7637d9..0000000 --- a/charts/dbaas-operator/templates/postgres-crd.yaml +++ /dev/null @@ -1,147 +0,0 @@ -{{if .Values.enablePostreSQLProviders}} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - helm.sh/resource-policy: keep - controller-gen.kubebuilder.io/version: v0.6.2 - creationTimestamp: null - name: postgresqlconsumers.postgres.amazee.io -spec: - group: postgres.amazee.io - names: - kind: PostgreSQLConsumer - listKind: PostgreSQLConsumerList - plural: postgresqlconsumers - singular: postgresqlconsumer - scope: Namespaced - versions: - - name: v1 - schema: - openAPIV3Schema: - description: PostgreSQLConsumer is the Schema for the postgresqlconsumers - 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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: PostgreSQLConsumerSpec defines the desired state of PostgreSQLConsumer - properties: - consumer: - description: PostgreSQLConsumerData defines the provider link for - this consumer - properties: - database: - type: string - password: - type: string - services: - description: PostgreSQLConsumerServices defines the provider link - for this consumer - properties: - primary: - type: string - type: object - username: - type: string - type: object - environment: - description: These are the spec options for consumers - type: string - provider: - description: PostgreSQLConsumerProvider defines the provider link - for this consumer - properties: - hostname: - type: string - name: - type: string - namespace: - type: string - port: - type: string - type: - type: string - type: object - type: object - status: - description: PostgreSQLConsumerStatus defines the observed state of PostgreSQLConsumer - type: object - type: object - served: true - storage: true ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - helm.sh/resource-policy: keep - controller-gen.kubebuilder.io/version: v0.6.2 - creationTimestamp: null - name: postgresqlproviders.postgres.amazee.io -spec: - group: postgres.amazee.io - names: - kind: PostgreSQLProvider - listKind: PostgreSQLProviderList - plural: postgresqlproviders - singular: postgresqlprovider - scope: Namespaced - versions: - - name: v1 - schema: - openAPIV3Schema: - description: PostgreSQLProvider is the Schema for the postgresqlproviders - 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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: PostgreSQLProviderSpec defines the desired state of PostgreSQLProvider - properties: - environment: - description: These are the spec options for providers - type: string - hostname: - type: string - name: - type: string - namespace: - type: string - password: - type: string - port: - type: string - type: - type: string - user: - type: string - type: object - status: - description: PostgreSQLProviderStatus defines the observed state of PostgreSQLProvider - type: object - type: object - served: true - storage: true -{{- end }} \ No newline at end of file diff --git a/charts/dbaas-operator/templates/role.yaml b/charts/dbaas-operator/templates/role.yaml deleted file mode 100644 index 5b4bd9a..0000000 --- a/charts/dbaas-operator/templates/role.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: {{ include "dbaas-operator.fullname" . }}-leader-election -rules: -- apiGroups: - - "" - - coordination.k8s.io - resources: - - configmaps - - leases - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - "" - resources: - - configmaps/status - verbs: - - get - - update - - patch -- apiGroups: - - "" - resources: - - events - verbs: - - create \ No newline at end of file diff --git a/charts/dbaas-operator/templates/rolebinding.yaml b/charts/dbaas-operator/templates/rolebinding.yaml deleted file mode 100644 index fa98103..0000000 --- a/charts/dbaas-operator/templates/rolebinding.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: {{ include "dbaas-operator.fullname" . }}-leader-election - namespace: {{ .Release.Namespace | quote }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: {{ include "dbaas-operator.fullname" . }}-leader-election -subjects: -- kind: ServiceAccount - name: {{ include "dbaas-operator.serviceAccountName" . }} - namespace: {{ .Release.Namespace | quote }} \ No newline at end of file diff --git a/charts/dbaas-operator/templates/service.yaml b/charts/dbaas-operator/templates/service.yaml deleted file mode 100644 index f301767..0000000 --- a/charts/dbaas-operator/templates/service.yaml +++ /dev/null @@ -1,30 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: {{ include "dbaas-operator.fullname" . }} - labels: - {{- include "dbaas-operator.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: https - protocol: TCP - name: https - selector: - {{- include "dbaas-operator.selectorLabels" . | nindent 4 }} ---- -apiVersion: v1 -kind: Service -metadata: - name: {{ include "dbaas-operator.fullname" . }}-http - labels: - {{- include "dbaas-operator.labels" . | nindent 4 }} -spec: - ports: - - name: backend - port: 5000 - targetPort: backend - selector: - {{- include "dbaas-operator.selectorLabels" . | nindent 4 }} diff --git a/charts/dbaas-operator/templates/serviceaccount.yaml b/charts/dbaas-operator/templates/serviceaccount.yaml deleted file mode 100644 index 353eb32..0000000 --- a/charts/dbaas-operator/templates/serviceaccount.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "dbaas-operator.serviceAccountName" . }} - labels: -{{ include "dbaas-operator.labels" . | nindent 4 }} - diff --git a/charts/dbaas-operator/values.yaml b/charts/dbaas-operator/values.yaml deleted file mode 100644 index c0e08ab..0000000 --- a/charts/dbaas-operator/values.yaml +++ /dev/null @@ -1,70 +0,0 @@ -# Default values for dbaas-operator. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -replicaCount: 1 - -image: - repository: amazeeio/dbaas-operator - pullPolicy: IfNotPresent - tag: "" - -kubeRbacProxy: - image: - repository: quay.io/brancz/kube-rbac-proxy - pullPolicy: IfNotPresent - tag: v0.18.2 - -imagePullSecrets: [] -nameOverride: "" -fullnameOverride: "" - -# enable the providers -# by default mariadb is enabled and the others are disabled -enableMariaDBProviders: true -enableMongoDBProviders: false -enablePostreSQLProviders: false - -serviceAccount: - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - nameOverride: - -podSecurityContext: {} - # fsGroup: 2000 - -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 8443 - -resources: - limits: - cpu: 500m - memory: 128Mi - requests: - cpu: 100m - memory: 64Mi - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi - -nodeSelector: {} - -tolerations: [] - -affinity: {} diff --git a/charts/index.yaml b/charts/index.yaml deleted file mode 100644 index 43893ab..0000000 --- a/charts/index.yaml +++ /dev/null @@ -1,277 +0,0 @@ -apiVersion: v1 -entries: - dbaas-operator: - - annotations: - artifacthub.io/changes: | - - kind: changed - description: update dbaas-operator to v0.4.0 - apiVersion: v2 - appVersion: v0.4.0 - created: "2025-11-26T08:15:12.397016164+11:00" - description: A Helm chart for dbaas-operator - digest: a1c5fef0a64dfdfe3f8cd4d1fff9d7fbda9bb1ba45ac397a9cc294da45a94b3c - kubeVersion: '>= 1.19.0-0' - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.4.0.tgz - version: 0.4.0 - - apiVersion: v2 - appVersion: v0.3.1 - created: "2025-11-26T08:15:12.396749802+11:00" - description: A Helm chart for dbaas-operator - digest: a55ae0fb61d0bfa1dd20dea19f6592799108a2c034a21bb630d649d286f28f77 - kubeVersion: '>= 1.19.0-0' - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.3.4.tgz - version: 0.3.4 - - apiVersion: v2 - appVersion: v0.3.1 - created: "2025-11-26T08:15:12.396510244+11:00" - description: A Helm chart for dbaas-operator - digest: 19a38dd33792886ae40a655d092ad77ef75d1a513546e8e4c7f71d8933f080e5 - kubeVersion: '>= 1.19.0-0' - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.3.3.tgz - version: 0.3.3 - - apiVersion: v2 - appVersion: v0.3.0 - created: "2025-11-26T08:15:12.396271259+11:00" - description: A Helm chart for dbaas-operator - digest: 1a00343547c5308044a8b47d72f019c02217d3468e11ff64bd75933efb980ba3 - kubeVersion: '>= 1.19.0-0' - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.3.2.tgz - version: 0.3.2 - - apiVersion: v2 - appVersion: v0.3.0 - created: "2025-11-26T08:15:12.396036986+11:00" - description: A Helm chart for dbaas-operator - digest: d4528ea328d76d93f9a1d2d610e6a370ec98f235745ba4a4c8d24ea2c9b99ae1 - kubeVersion: '>= 1.19.0-0' - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.3.1.tgz - version: 0.3.1 - - apiVersion: v2 - appVersion: v0.3.0 - created: "2025-11-26T08:15:12.395804132+11:00" - description: A Helm chart for dbaas-operator - digest: cc0522c57358a26efb03b6ad3da4bfe51b94c87c8cb89f998e120032139fe7fb - kubeVersion: '>= 1.19.0-0' - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.3.0.tgz - version: 0.3.0 - - apiVersion: v2 - appVersion: v0.2.2 - created: "2025-11-26T08:15:12.39557004+11:00" - description: A Helm chart for dbaas-operator - digest: a02889fc2fc60574ebe2994af8b664dd4805b67ad240315fcaebff2688a55f60 - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.2.2.tgz - version: 0.2.2 - - apiVersion: v2 - appVersion: v0.2.1 - created: "2025-11-26T08:15:12.395340706+11:00" - description: A Helm chart for dbaas-operator - digest: 45e600f560d6200b4ac5e594b776d620f2285c3e611db8661f981e42755cd736 - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.2.1.tgz - version: 0.2.1 - - apiVersion: v2 - appVersion: 0.1.6 - created: "2025-11-26T08:15:12.393658222+11:00" - description: A Helm chart for dbaas-operator - digest: f492d4b57e93bc669d23a5fe1f463db509d190abf3c54b856b53bfa89dc7f102 - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.1.10.tgz - version: 0.1.10 - - apiVersion: v2 - appVersion: 0.1.6 - created: "2025-11-26T08:15:12.395105861+11:00" - description: A Helm chart for dbaas-operator - digest: adcdb786874274e0754330587b11bae63216656259fb0569188a553002c1c3e3 - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.1.9.tgz - version: 0.1.9 - - apiVersion: v2 - appVersion: 0.1.5rc3 - created: "2025-11-26T08:15:12.394886337+11:00" - description: A Helm chart for dbaas-operator - digest: c9a5323d4923bb3b9f2188773cbb7ce0badc0de0166da73487064b35154ea72c - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.1.8.tgz - version: 0.1.8 - - apiVersion: v2 - appVersion: 0.1.3 - created: "2025-11-26T08:15:12.394647034+11:00" - description: A Helm chart for dbaas-operator - digest: a3e809db9edeef3d3b5708cb45a58b8318c2864d5ffab684a4e239ed5e8dd118 - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.1.6.tgz - version: 0.1.6 - - apiVersion: v2 - appVersion: 0.1.2 - created: "2025-11-26T08:15:12.394419513+11:00" - description: A Helm chart for dbaas-operator - digest: da29683319a4964eccf17ef2aa45caeffda9100acdf22f76869185c7174be65c - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.1.5.tgz - version: 0.1.5 - - apiVersion: v2 - appVersion: 0.1.1 - created: "2025-11-26T08:15:12.394238124+11:00" - description: A Helm chart for dbaas-operator - digest: c3f995573c09f887b0fd4370fb07b4148eb1d61f5f5ce3baddf01dd953c724cf - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.1.4.tgz - version: 0.1.4 - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.394064101+11:00" - description: A Helm chart for dbaas-operator - digest: 67712098bd65fce262f59cfcb5566bcd9dee5c0f75afbeccb78bf4776a0b657d - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.1.3.tgz - version: 0.1.3 - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.393864034+11:00" - description: A Helm chart for dbaas-operator - digest: 16294c3b156e3d6192f9205358bce552952c75b8d28b06d37fbc4804e960cd8d - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.1.2.tgz - version: 0.1.2 - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.393399573+11:00" - description: A Helm chart for dbaas-operator - digest: f0f32afe174f62ea1ba792d6a564223cd0ed6ac821bdf7a09cf5c254f02f2fac - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.1.1.tgz - version: 0.1.1 - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.393214576+11:00" - description: A Helm chart for dbaas-operator - digest: 49e3bac9fd6a6eea448accd9483d9fbacd3a3b0b3e2e146c7304b558438c0df2 - name: dbaas-operator - type: application - urls: - - dbaas-operator-0.1.0.tgz - version: 0.1.0 - mariadbprovider: - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.397290244+11:00" - description: A Helm chart for MariaDBProvider used by dbaas-operator - digest: b555d1e80be0d034091740cecf41f99bf5ff297ba4f21772b1160be83afb5751 - name: mariadbprovider - type: application - urls: - - mariadbprovider-0.1.3.tgz - version: 0.1.3 - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.397196652+11:00" - description: A Helm chart for MariaDBProvider used by dbaas-operator - digest: a59bd057c64ca68b2f52a8b1a6dece0746ebc0ee0f1a6a17c807c8df5d6a0c3e - name: mariadbprovider - type: application - urls: - - mariadbprovider-0.1.2.tgz - version: 0.1.2 - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.397105649+11:00" - description: A Helm chart for MariaDBProvider used by dbaas-operator - digest: bc03d2aa3c0d0aba80063294dbf467cb79b32a408cb34dec1841b531ebd2094c - name: mariadbprovider - type: application - urls: - - mariadbprovider-0.1.1.tgz - version: 0.1.1 - mongodbprovider: - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.397976523+11:00" - description: A Helm chart for MongoDBProvider used by dbaas-operator - digest: b95f3991e86f665f5a4b7a1a61c67eeecb34258b2a28b35298010b7ec22d84b2 - name: mongodbprovider - type: application - urls: - - mongodbprovider-0.1.2.tgz - version: 0.1.2 - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.397642904+11:00" - description: A Helm chart for MongoDBProvider used by dbaas-operator - digest: 0cd16ed15beda252eeea69a6c2254f926bb200648321c7d7bd514f2b4f7655ef - name: mongodbprovider - type: application - urls: - - mongodbprovider-0.1.1.tgz - version: 0.1.1 - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.397383242+11:00" - description: A Helm chart for MongoDBProvider used by dbaas-operator - digest: fda5cbc7411eeeb58af9e730aad5bca83a3a22ebc2100a4d71ca5165eef3d6fb - name: mongodbprovider - type: application - urls: - - mongodbprovider-0.1.0.tgz - version: 0.1.0 - postgresqlprovider: - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.398264272+11:00" - description: A Helm chart for PostgreSQLProvider used by dbaas-operator - digest: d7fc208bfad22900ddeee2fc9a92292361ae6ac5a52da7b2822762243a658e60 - name: postgresqlprovider - type: application - urls: - - postgresqlprovider-0.1.1.tgz - version: 0.1.1 - - apiVersion: v2 - appVersion: 0.1.0 - created: "2025-11-26T08:15:12.398144106+11:00" - description: A Helm chart for PostgreSQLProvider used by dbaas-operator - digest: 27b6b05d4dfa94020fe122afa69cfe2c4bba351b8b069a660a0403de262ba567 - name: postgresqlprovider - type: application - urls: - - postgresqlprovider-0.1.0.tgz - version: 0.1.0 -generated: "2025-11-26T08:15:12.39293134+11:00" diff --git a/charts/mariadbprovider-0.1.1.tgz b/charts/mariadbprovider-0.1.1.tgz deleted file mode 100644 index c702fb6..0000000 Binary files a/charts/mariadbprovider-0.1.1.tgz and /dev/null differ diff --git a/charts/mariadbprovider-0.1.2.tgz b/charts/mariadbprovider-0.1.2.tgz deleted file mode 100644 index 02e8575..0000000 Binary files a/charts/mariadbprovider-0.1.2.tgz and /dev/null differ diff --git a/charts/mariadbprovider-0.1.3.tgz b/charts/mariadbprovider-0.1.3.tgz deleted file mode 100644 index 3d78ec6..0000000 Binary files a/charts/mariadbprovider-0.1.3.tgz and /dev/null differ diff --git a/charts/mariadbprovider/.helmignore b/charts/mariadbprovider/.helmignore deleted file mode 100644 index 50af031..0000000 --- a/charts/mariadbprovider/.helmignore +++ /dev/null @@ -1,22 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/mariadbprovider/Chart.yaml b/charts/mariadbprovider/Chart.yaml deleted file mode 100644 index 9e38749..0000000 --- a/charts/mariadbprovider/Chart.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: v2 -name: mariadbprovider -description: A Helm chart for MariaDBProvider used by dbaas-operator -kubeVersion: ">= 1.19.0-0" - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -version: 0.1.3 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. -appVersion: 0.1.0 diff --git a/charts/mariadbprovider/templates/mariadbprovider.yaml b/charts/mariadbprovider/templates/mariadbprovider.yaml deleted file mode 100644 index 5d018ee..0000000 --- a/charts/mariadbprovider/templates/mariadbprovider.yaml +++ /dev/null @@ -1,16 +0,0 @@ -{{- range $providerName, $providerConfig := .Values.providers }} ---- -apiVersion: mariadb.amazee.io/v1 -kind: MariaDBProvider -metadata: - name: {{ $providerName }} -spec: - environment: {{ $providerConfig.environment | quote }} - hostname: {{ $providerConfig.hostname | quote }} - readReplicaHostnames: - {{- toYaml $providerConfig.readReplicaHostnames | nindent 4 }} - password: {{ $providerConfig.password | quote }} - port: {{ $providerConfig.port | quote }} - user: {{ $providerConfig.user | quote }} - type: {{ $providerConfig.type | quote | default "generic" }} -{{- end }} \ No newline at end of file diff --git a/charts/mariadbprovider/values.yaml b/charts/mariadbprovider/values.yaml deleted file mode 100644 index d407eed..0000000 --- a/charts/mariadbprovider/values.yaml +++ /dev/null @@ -1,29 +0,0 @@ -providers: - - # production: - # environment: production - # hostname: 172.17.0.1.nip.io - # readReplicaHostnames: - # - 172.17.0.1.nip.io - # password: password - # port: '3306' - # user: root - - # development: - # environment: development - # hostname: 172.17.0.1.nip.io - # readReplicaHostnames: - # - 172.17.0.1.nip.io - # password: password - # port: '3306' - # user: root - - # development-azure: - # environment: development - # hostname: azure-hostname.172.17.0.1.nip.io - # readReplicaHostnames: - # - azure-hostname.172.17.0.1.nip.io - # password: password - # port: '3306' - # user: root@azure-hostname - # type: azure \ No newline at end of file diff --git a/charts/mongodbprovider-0.1.0.tgz b/charts/mongodbprovider-0.1.0.tgz deleted file mode 100644 index 75bd794..0000000 Binary files a/charts/mongodbprovider-0.1.0.tgz and /dev/null differ diff --git a/charts/mongodbprovider-0.1.1.tgz b/charts/mongodbprovider-0.1.1.tgz deleted file mode 100644 index 5148e2e..0000000 Binary files a/charts/mongodbprovider-0.1.1.tgz and /dev/null differ diff --git a/charts/mongodbprovider-0.1.2.tgz b/charts/mongodbprovider-0.1.2.tgz deleted file mode 100644 index e737200..0000000 Binary files a/charts/mongodbprovider-0.1.2.tgz and /dev/null differ diff --git a/charts/mongodbprovider/.helmignore b/charts/mongodbprovider/.helmignore deleted file mode 100644 index 50af031..0000000 --- a/charts/mongodbprovider/.helmignore +++ /dev/null @@ -1,22 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/mongodbprovider/Chart.yaml b/charts/mongodbprovider/Chart.yaml deleted file mode 100644 index 9e0dd75..0000000 --- a/charts/mongodbprovider/Chart.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: v2 -name: mongodbprovider -description: A Helm chart for MongoDBProvider used by dbaas-operator -kubeVersion: ">= 1.19.0-0" - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -version: 0.1.2 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. -appVersion: 0.1.0 diff --git a/charts/mongodbprovider/templates/mongodbprovider.yaml b/charts/mongodbprovider/templates/mongodbprovider.yaml deleted file mode 100644 index db58a73..0000000 --- a/charts/mongodbprovider/templates/mongodbprovider.yaml +++ /dev/null @@ -1,18 +0,0 @@ -{{- range $providerName, $providerConfig := .Values.providers }} ---- -apiVersion: mongodb.amazee.io/v1 -kind: MongoDBProvider -metadata: - name: {{ $providerName }} -spec: - environment: {{ $providerConfig.environment | quote }} - hostname: {{ $providerConfig.hostname | quote }} - password: {{ $providerConfig.password | quote }} - port: {{ $providerConfig.port | quote }} - user: {{ $providerConfig.user | quote }} - type: {{ $providerConfig.type | quote | default "generic" }} - auth: - mechanism: {{ $providerConfig.auth.mechanism | quote }} - source: {{ $providerConfig.auth.source | quote }} - tls: {{ $providerConfig.auth.tls | default false }} -{{- end }} \ No newline at end of file diff --git a/charts/mongodbprovider/values.yaml b/charts/mongodbprovider/values.yaml deleted file mode 100644 index 867894b..0000000 --- a/charts/mongodbprovider/values.yaml +++ /dev/null @@ -1,23 +0,0 @@ -providers: - - # production: - # environment: production - # hostname: 172.17.0.1.nip.io - # password: password - # port: '3306' - # user: root - # auth: - # mechanism: SCRAM-SHA-1 - # source: admin - # tls: false - - # development: - # environment: development - # hostname: 172.17.0.1.nip.io - # password: password - # port: '3306' - # user: root - # auth: - # mechanism: SCRAM-SHA-1 - # source: admin - # tls: false diff --git a/charts/postgresqlprovider-0.1.0.tgz b/charts/postgresqlprovider-0.1.0.tgz deleted file mode 100644 index 9b2098d..0000000 Binary files a/charts/postgresqlprovider-0.1.0.tgz and /dev/null differ diff --git a/charts/postgresqlprovider-0.1.1.tgz b/charts/postgresqlprovider-0.1.1.tgz deleted file mode 100644 index 9562fc4..0000000 Binary files a/charts/postgresqlprovider-0.1.1.tgz and /dev/null differ diff --git a/charts/postgresqlprovider/.helmignore b/charts/postgresqlprovider/.helmignore deleted file mode 100644 index 50af031..0000000 --- a/charts/postgresqlprovider/.helmignore +++ /dev/null @@ -1,22 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/postgresqlprovider/Chart.yaml b/charts/postgresqlprovider/Chart.yaml deleted file mode 100644 index de94892..0000000 --- a/charts/postgresqlprovider/Chart.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: v2 -name: postgresqlprovider -description: A Helm chart for PostgreSQLProvider used by dbaas-operator -kubeVersion: ">= 1.19.0-0" - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -version: 0.1.1 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. -appVersion: 0.1.0 diff --git a/charts/postgresqlprovider/templates/postgresqlprovider.yaml b/charts/postgresqlprovider/templates/postgresqlprovider.yaml deleted file mode 100644 index aa24d43..0000000 --- a/charts/postgresqlprovider/templates/postgresqlprovider.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{{- range $providerName, $providerConfig := .Values.providers }} ---- -apiVersion: postgres.amazee.io/v1 -kind: PostgreSQLProvider -metadata: - name: {{ $providerName }} -spec: - environment: {{ $providerConfig.environment | quote }} - hostname: {{ $providerConfig.hostname | quote }} - password: {{ $providerConfig.password | quote }} - port: {{ $providerConfig.port | quote }} - user: {{ $providerConfig.user | quote }} - type: {{ $providerConfig.type | quote | default "generic" }} -{{- end }} \ No newline at end of file diff --git a/charts/postgresqlprovider/values.yaml b/charts/postgresqlprovider/values.yaml deleted file mode 100644 index 4528b02..0000000 --- a/charts/postgresqlprovider/values.yaml +++ /dev/null @@ -1,15 +0,0 @@ -providers: - - # production: - # environment: production - # hostname: 172.17.0.1.nip.io - # password: password - # port: '3306' - # user: root - - # development: - # environment: development - # hostname: 172.17.0.1.nip.io - # password: password - # port: '3306' - # user: root \ No newline at end of file diff --git a/helm-update.sh b/helm-update.sh deleted file mode 100755 index e1db989..0000000 --- a/helm-update.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/bash - -# ./helm-update.sh index -# create new index for the chart - -# ./helm-update.sh template -# process the chart to a template - -# ./helm-update.sh delete -# delete the chart from kubernetes - -# ./helm-update.sh install -# install the chart into kubernetes - -# ./helm-update.sh install-tgz -# install the chart from one of the tgz files present locally into kubernetes - -case $1 in - index) - pushd charts - helm package dbaas-operator - helm repo index . - popd - ;; - index-psql) - pushd charts - helm package postgresqlprovider - helm repo index . - popd - ;; - index-msql) - pushd charts - helm package mariadbprovider - helm repo index . - popd - ;; - index-mongo) - pushd charts - helm package mongodbprovider - helm repo index . - popd - ;; - template) - helm template charts/dbaas-operator -f charts/dbaas-operator/values.yaml - ;; - delete) - helm delete -n dbaas-operator dbaas-operator - ;; - install) - helm repo add dbaas-operator https://raw.githubusercontent.com/amazeeio/dbaas-operator/master/charts - helm upgrade --install -n dbaas-operator dbaas-operator dbaas-operator/dbaas-operator - ;; - install-tgz) - options=($(ls charts | grep tgz)) - if [ ${#options[@]} -ne 0 ]; then - select chart in "${options[@]}"; - do - case $chart in - "$QUIT") - echo "Unknown option, exiting." - break - ;; - *) - break - ;; - esac - done - if [ "$chart" != "" ]; then - helm upgrade --install -n dbaas-operator dbaas-operator charts/$chart - fi - else - echo "No chart files, exiting." - fi - ;; - *) - echo "nothing" - ;; -esac