Skip to content

Commit

Permalink
Merge pull request #277 from schemahero/cassandra
Browse files Browse the repository at this point in the history
Initial support for Cassandra
  • Loading branch information
marccampbell committed Sep 21, 2020
2 parents 4ec5129 + b99e920 commit c8fb299
Show file tree
Hide file tree
Showing 81 changed files with 3,470 additions and 1,311 deletions.
271 changes: 271 additions & 0 deletions config/crds/v1/databases.schemahero.io_databases.yaml
Expand Up @@ -39,6 +39,277 @@ spec:
description: DatabaseConnection defines connection parameters for
the database driver
properties:
cassandra:
properties:
hosts:
items:
type: string
type: array
keyspace:
properties:
value:
type: string
valueFrom:
properties:
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
- name
type: object
ssm:
properties:
accessKeyId:
properties:
value:
type: string
valueFrom:
properties:
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
- name
type: object
type: object
required:
- value
type: object
name:
type: string
region:
type: string
secretAccessKey:
properties:
value:
type: string
valueFrom:
properties:
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
- name
type: object
type: object
required:
- value
type: object
withDecryption:
type: boolean
required:
- name
type: object
vault:
properties:
agentInject:
type: boolean
endpoint:
type: string
role:
type: string
secret:
type: string
serviceAccount:
type: string
serviceAccountNamespace:
type: string
required:
- role
- secret
type: object
type: object
type: object
password:
properties:
value:
type: string
valueFrom:
properties:
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
- name
type: object
ssm:
properties:
accessKeyId:
properties:
value:
type: string
valueFrom:
properties:
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
- name
type: object
type: object
required:
- value
type: object
name:
type: string
region:
type: string
secretAccessKey:
properties:
value:
type: string
valueFrom:
properties:
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
- name
type: object
type: object
required:
- value
type: object
withDecryption:
type: boolean
required:
- name
type: object
vault:
properties:
agentInject:
type: boolean
endpoint:
type: string
role:
type: string
secret:
type: string
serviceAccount:
type: string
serviceAccountNamespace:
type: string
required:
- role
- secret
type: object
type: object
type: object
username:
properties:
value:
type: string
valueFrom:
properties:
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
- name
type: object
ssm:
properties:
accessKeyId:
properties:
value:
type: string
valueFrom:
properties:
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
- name
type: object
type: object
required:
- value
type: object
name:
type: string
region:
type: string
secretAccessKey:
properties:
value:
type: string
valueFrom:
properties:
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
- name
type: object
type: object
required:
- value
type: object
withDecryption:
type: boolean
required:
- name
type: object
vault:
properties:
agentInject:
type: boolean
endpoint:
type: string
role:
type: string
secret:
type: string
serviceAccount:
type: string
serviceAccountNamespace:
type: string
required:
- role
- secret
type: object
type: object
type: object
required:
- hosts
- keyspace
type: object
cockroachdb:
properties:
dbname:
Expand Down
78 changes: 78 additions & 0 deletions config/crds/v1/schemas.schemahero.io_datatypes.yaml
@@ -0,0 +1,78 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.8
creationTimestamp: null
name: datatypes.schemas.schemahero.io
spec:
group: schemas.schemahero.io
names:
kind: DataType
listKind: DataTypeList
plural: datatypes
singular: datatype
scope: Namespaced
versions:
- name: v1alpha4
schema:
openAPIV3Schema:
description: DataType is the Schema for the datatypes 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: DataTypeSpec defines the desired state of Type
properties:
database:
type: string
name:
type: string
schema:
properties:
cassandra:
properties:
fields:
items:
properties:
name:
type: string
type:
type: string
required:
- name
- type
type: object
type: array
isDeleted:
type: boolean
type: object
type: object
required:
- database
- name
type: object
status:
description: DataTypeStatus defines the observed state of Type
type: object
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

0 comments on commit c8fb299

Please sign in to comment.