Skip to content

Commit 8ecc71c

Browse files
committed
feat(expand CRDs): Updated example CRD
1 parent 33e6f9f commit 8ecc71c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

crd.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@ spec:
66
group: vaultwebhook.uswitch.com
77
versions:
88
- name: v1alpha1
9+
# Each version can be enabled/disabled by Served flag.
910
served: true
11+
# One and only one version must be marked as the storage version.
1012
storage: true
1113
schema:
1214
openAPIV3Schema:
15+
type: object
16+
description: |-
17+
A MutatingAdmissionController that will add the vault-creds container to your pod
18+
for you when your pod is created (assuming that vault webhook is enabled on your namespace
1319
properties:
1420
spec:
21+
type: object
1522
properties:
1623
database:
1724
type: string
@@ -20,7 +27,29 @@ spec:
2027
outputPath:
2128
type: string
2229
outputFile:
30+
type: string
31+
serviceAccount:
2332
type: string
33+
container:
34+
description: Specification of the container that will be created as part of this binding.
35+
type: object
36+
properties:
37+
lifecycle:
38+
description: Specification of the lifecycle hooks of the container. https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
39+
type: object
40+
properties:
41+
preStop:
42+
description: This hook is called immediately before a container is terminated due to an API request or management event such as a liveness/startup probe failure, preemption, resource contention and others
43+
type: object
44+
properties:
45+
exec:
46+
description: Executes a specific command, inside the cgroups and namespaces of the Container.
47+
type: object
48+
properties:
49+
command:
50+
type: array
51+
items:
52+
type: string
2453
names:
2554
kind: DatabaseCredentialBinding
2655
plural: databasecredentialbindings

0 commit comments

Comments
 (0)