Skip to content

Commit

Permalink
Update docs/crds
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Manno authored and Vlad Iovanov committed Feb 21, 2020
1 parent 38594b8 commit f395b62
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 85 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ gen-command-docs:
rm -f docs/commands/*
go run cmd/gen-command-docs.go

gen-crd-docs:
kubectl get crd boshdeployments.quarks.cloudfoundry.org -o yaml > docs/crds/quarks_v1alpha1_boshdeployment_crd.yaml
kubectl get crd quarkssecrets.quarks.cloudfoundry.org -o yaml > docs/crds/quarks_v1alpha1_quarkssecret_crd.yaml
kubectl get crd quarksstatefulsets.quarks.cloudfoundry.org -o yaml > docs/crds/quarks_v1alpha1_quarksstatefulset_crd.yaml

verify-gen-kube:
bin/verify-gen-kube

Expand Down
64 changes: 43 additions & 21 deletions docs/crds/quarks_v1alpha1_boshdeployment_crd.yaml
Original file line number Diff line number Diff line change
@@ -1,51 +1,73 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: boshdeployments.quarks.cloudfoundry.org
annotations:
"helm.sh/hook": crd-install
spec:
conversion:
strategy: None
group: quarks.cloudfoundry.org
names:
kind: BOSHDeployment
listKind: BOSHDeploymentList
plural: boshdeployments
singular: boshdeployment
shortNames:
- bdpl
- bdpls
scope: Namespaced
version: v1alpha1
- bdpl
- bdpls
singular: boshdeployment
preserveUnknownFields: false
scope: Namespaced
subresources:
status: {}
validation:
# openAPIV3Schema is the schema for validating custom objects.
openAPIV3Schema:
properties:
spec:
required: [manifest]
properties:
manifest:
type: object
required: [type, name]
properties:
type:
type: string
enum: ["configmap", "secret", "url"]
name:
type: string
minLength: 1
type: string
type:
enum:
- configmap
- secret
- url
type: string
required:
- type
- name
type: object
ops:
type: array
items:
type: object
required: [type, name]
properties:
type:
type: string
enum: ["configmap", "secret", "url"]
name:
type: string
minLength: 1
type: string
type:
enum:
- configmap
- secret
- url
type: string
required:
- type
- name
type: object
type: array
required:
- manifest
type: object
status:
properties:
lastReconcile:
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
22 changes: 0 additions & 22 deletions docs/crds/quarks_v1alpha1_extendedsecret_crd.yaml

This file was deleted.

42 changes: 0 additions & 42 deletions docs/crds/quarks_v1alpha1_extendedstatefulset_crd.yaml

This file was deleted.

56 changes: 56 additions & 0 deletions docs/crds/quarks_v1alpha1_quarkssecret_crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: quarkssecrets.quarks.cloudfoundry.org
annotations:
"helm.sh/hook": crd-install
spec:
conversion:
strategy: None
group: quarks.cloudfoundry.org
names:
kind: QuarksSecret
listKind: QuarksSecretList
plural: quarkssecrets
shortNames:
- qsec
- qsecs
singular: quarkssecret
preserveUnknownFields: false
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
spec:
properties:
request:
type: object
x-kubernetes-preserve-unknown-fields: true
secretName:
description: The name of the generated secret
minLength: 1
type: string
type:
description: 'What kind of secret to generate: password, certificate,
ssh, rsa'
minLength: 1
type: string
required:
- secretName
- type
type: object
status:
properties:
generated:
type: boolean
lastReconcile:
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
61 changes: 61 additions & 0 deletions docs/crds/quarks_v1alpha1_quarksstatefulset_crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: quarksstatefulsets.quarks.cloudfoundry.org
annotations:
"helm.sh/hook": crd-install
spec:
conversion:
strategy: None
group: quarks.cloudfoundry.org
names:
kind: QuarksStatefulSet
listKind: QuarksStatefulSetList
plural: quarksstatefulsets
shortNames:
- qsts
singular: quarksstatefulset
preserveUnknownFields: false
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
spec:
properties:
activePassiveProbes:
description: Defines probes to determine active/passive component instances
type: object
x-kubernetes-preserve-unknown-fields: true
template:
description: A template for a regular StatefulSet
type: object
x-kubernetes-preserve-unknown-fields: true
updateOnConfigChange:
description: Indicate whether to update Pods in the StatefulSet when
an env value or mount changes
type: boolean
zoneNodeLabel:
description: Indicates the node label that a node locates
type: string
zones:
description: Indicates the availability zones that the QuarksStatefulSet
needs to span
items:
type: string
type: array
required:
- template
type: object
status:
properties:
lastReconcile:
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true

0 comments on commit f395b62

Please sign in to comment.