Skip to content

Commit

Permalink
Merge pull request #3 from amazeeio/dbaas-operator
Browse files Browse the repository at this point in the history
Add dbaas-operator chart
  • Loading branch information
smlx authored Jan 6, 2021
2 parents 0e8a84b + 21b2ba9 commit 56f45b5
Show file tree
Hide file tree
Showing 20 changed files with 1,187 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/dbaas-operator/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
20 changes: 20 additions & 0 deletions charts/dbaas-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v2
name: dbaas-operator
description:
A Helm chart for Kubernetes which installs the DBaaS Operator
(https://github.com/amazeeio/dbaas-operator).
home: https://github.com/amazeeio/charts
icon: https://raw.githubusercontent.com/amazeeio/charts/main/icon.png
maintainers:
- name: shreddedbacon
email: [email protected]
url: https://amazee.io
- name: smlx
email: [email protected]
url: https://amazee.io

type: application

version: 0.2.0

appVersion: v0.1.6
3 changes: 3 additions & 0 deletions charts/dbaas-operator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# DBaaS Operator Helm Chart

This chart installs the [DBaaS Operator](https://github.com/amazeeio/dbaas-operator).
29 changes: 29 additions & 0 deletions charts/dbaas-operator/ci/linter-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
mariadbProviders:
development:
environment: development
hostname: 172.17.0.1.nip.io
readReplicaHostnames:
- 172.17.0.1.nip.io
password: password
port: '3306'
user: root

postgresqlProviders:
development:
environment: development
hostname: 172.17.0.1.nip.io
user: root
password: password
port: '3306'

mongodbProviders:
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
155 changes: 155 additions & 0 deletions charts/dbaas-operator/crds/mariadb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.4
creationTimestamp: null
name: mariadbproviders.mariadb.amazee.io
spec:
group: mariadb.amazee.io
names:
kind: MariaDBProvider
listKind: MariaDBProviderList
plural: mariadbproviders
singular: mariadbprovider
scope: Namespaced
validation:
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
version: v1
versions:
- name: v1
served: true
storage: true
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.4
creationTimestamp: null
name: mariadbconsumers.mariadb.amazee.io
spec:
group: mariadb.amazee.io
names:
kind: MariaDBConsumer
listKind: MariaDBConsumerList
plural: mariadbconsumers
singular: mariadbconsumer
scope: Namespaced
validation:
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
version: v1
versions:
- name: v1
served: true
storage: true
Loading

0 comments on commit 56f45b5

Please sign in to comment.