Skip to content

Commit

Permalink
Generate both v1beta1 and v1 CRD YAML (#523)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed May 25, 2020
1 parent 5a0f0a9 commit 2776354
Show file tree
Hide file tree
Showing 116 changed files with 110,844 additions and 221 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ REPO := $(notdir $(shell pwd))
BIN := apimachinery

# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false,crdVersions={v1beta1,v1}"
# https://github.com/appscodelabs/gengo-builder
CODE_GENERATOR_IMAGE ?= appscode/gengo:release-1.18
API_GROUPS ?= kubedb:v1alpha1 catalog:v1alpha1 config:v1alpha1 ops:v1alpha1
Expand Down
881 changes: 797 additions & 84 deletions api/crds/bindata.go

Large diffs are not rendered by default.

127 changes: 127 additions & 0 deletions api/crds/catalog.kubedb.com_elasticsearchversions.v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/name: kubedb
name: elasticsearchversions.catalog.kubedb.com
spec:
group: catalog.kubedb.com
names:
categories:
- datastore
- kubedb
- appscode
kind: ElasticsearchVersion
listKind: ElasticsearchVersionList
plural: elasticsearchversions
shortNames:
- esversion
singular: elasticsearchversion
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.version
name: Version
type: string
- jsonPath: .spec.db.image
name: DB_IMAGE
type: string
- jsonPath: .spec.authPlugin
name: AUTH_PLUGIN
type: string
- jsonPath: .spec.deprecated
name: Deprecated
type: boolean
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
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: ElasticsearchVersionSpec is the spec for elasticsearch version
properties:
authPlugin:
description: Authentication plugin used by Elasticsearch cluster.
enum:
- SearchGuard
- None
- X-Pack
type: string
db:
description: Database Image
properties:
image:
type: string
required:
- image
type: object
deprecated:
description: Deprecated versions usable but regarded as obsolete and
best avoided, typically due to having been superseded.
type: boolean
exporter:
description: Exporter Image
properties:
image:
type: string
required:
- image
type: object
initContainer:
description: Init container Image
properties:
image:
type: string
yqImage:
type: string
required:
- image
- yqImage
type: object
podSecurityPolicies:
description: PSP names
properties:
databasePolicyName:
type: string
required:
- databasePolicyName
type: object
tools:
description: Tools Image
properties:
image:
type: string
required:
- image
type: object
version:
description: Version
type: string
required:
- authPlugin
- db
- exporter
- initContainer
- podSecurityPolicies
- tools
- version
type: object
type: object
served: true
storage: true
subresources: {}
95 changes: 95 additions & 0 deletions api/crds/catalog.kubedb.com_etcdversions.v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/name: kubedb
name: etcdversions.catalog.kubedb.com
spec:
group: catalog.kubedb.com
names:
categories:
- datastore
- kubedb
- appscode
kind: EtcdVersion
listKind: EtcdVersionList
plural: etcdversions
shortNames:
- etcversion
singular: etcdversion
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.version
name: Version
type: string
- jsonPath: .spec.db.image
name: DB_IMAGE
type: string
- jsonPath: .spec.deprecated
name: Deprecated
type: boolean
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
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: EtcdVersionSpec is the spec for postgres version
properties:
db:
description: Database Image
properties:
image:
type: string
required:
- image
type: object
deprecated:
description: Deprecated versions usable but regarded as obsolete and
best avoided, typically due to having been superseded.
type: boolean
exporter:
description: Exporter Image
properties:
image:
type: string
required:
- image
type: object
tools:
description: Tools Image
properties:
image:
type: string
required:
- image
type: object
version:
description: Version
type: string
required:
- db
- exporter
- tools
- version
type: object
type: object
served: true
storage: true
subresources: {}
95 changes: 95 additions & 0 deletions api/crds/catalog.kubedb.com_memcachedversions.v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/name: kubedb
name: memcachedversions.catalog.kubedb.com
spec:
group: catalog.kubedb.com
names:
categories:
- datastore
- kubedb
- appscode
kind: MemcachedVersion
listKind: MemcachedVersionList
plural: memcachedversions
shortNames:
- mcversion
singular: memcachedversion
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.version
name: Version
type: string
- jsonPath: .spec.db.image
name: DB_IMAGE
type: string
- jsonPath: .spec.deprecated
name: Deprecated
type: boolean
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
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: MemcachedVersionSpec is the spec for memcached version
properties:
db:
description: Database Image
properties:
image:
type: string
required:
- image
type: object
deprecated:
description: Deprecated versions usable but regarded as obsolete and
best avoided, typically due to having been superseded.
type: boolean
exporter:
description: Exporter Image
properties:
image:
type: string
required:
- image
type: object
podSecurityPolicies:
description: PSP names
properties:
databasePolicyName:
type: string
required:
- databasePolicyName
type: object
version:
description: Version
type: string
required:
- db
- exporter
- podSecurityPolicies
- version
type: object
type: object
served: true
storage: true
subresources: {}
Loading

0 comments on commit 2776354

Please sign in to comment.