-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcrd-template.yaml
More file actions
197 lines (197 loc) · 8.21 KB
/
crd-template.yaml
File metadata and controls
197 lines (197 loc) · 8.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: phasesecrets.secrets.phase.dev
spec:
group: secrets.phase.dev
names:
kind: PhaseSecret
listKind: PhaseSecretList
plural: phasesecrets
singular: phasesecret
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
type: object
description: PhaseSecret is the Schema for the phasesecrets API
properties:
apiVersion:
description: APIVersion defines the versioned schema of this representation of an object.
type: string
kind:
description: Kind is a string value representing the REST resource this object represents.
type: string
metadata:
type: object
spec:
type: object
description: PhaseSecretSpec defines the desired state of PhaseSecret
properties:
phaseApp:
description: The Phase application to fetch secrets from.
type: string
phaseAppEnv:
description: The environment variable representing the app environment in Phase.
type: string
default: "production"
phaseAppEnvPath:
description: Path within the Phase application environment to fetch secrets from.
type: string
default: "/"
phaseAppEnvTag:
description: Tag for filtering secrets in the specified Phase app environment.
type: string
authentication:
type: object
properties:
serviceToken:
type: object
required:
- serviceTokenSecretReference
properties:
serviceTokenSecretReference:
type: object
required:
- secretName
- secretNamespace
properties:
secretName:
description: The name of the Kubernetes Secret.
type: string
secretNamespace:
description: The namespace where the Kubernetes Secret is located.
type: string
phaseHost:
description: Phase host to pull secrets from.
type: string
default: "https://console.phase.dev"
managedSecretReferences:
description: References to multiple managed Kubernetes Secrets.
type: array
items:
type: object
required:
- secretName
- secretNamespace
- secretType
properties:
secretName:
description: The name of the Kubernetes Secret.
type: string
secretNamespace:
description: The namespace where the Kubernetes Secret is located.
type: string
secretType:
description: The type of the Kubernetes Secret.
type: string
default: "Opaque"
enum:
- "Opaque"
- "kubernetes.io/tls"
- "kubernetes.io/service-account-token"
- "kubernetes.io/dockercfg"
- "kubernetes.io/dockerconfigjson"
- "kubernetes.io/basic-auth"
- "kubernetes.io/ssh-auth"
- "bootstrap.kubernetes.io/token"
nameTransformer:
description: Default name transformer applied to all secret keys. Per-key nameTransformer in processors takes precedence.
type: string
enum:
- "camel"
- "upper-camel"
- "lower-snake"
- "tf-var"
- "lower-kebab"
processors:
description: Processors to transform the data during ingestion.
type: object
additionalProperties:
type: object
properties:
asName:
description: The mapped name of the field in the managed secret.
type: string
nameTransformer:
description: The format for transforming the secret key name.
type: string
enum:
- "camel"
- "upper-camel"
- "lower-snake"
- "tf-var"
- "lower-kebab"
type:
description: The type of process to be performed.
type: string
enum:
- "plain"
- "base64"
default: "plain"
pollingInterval:
description: Interval at which to poll for secret updates.
type: integer
default: 60
minimum: 5
required:
- phaseApp
- managedSecretReferences
- phaseHost
status:
description: PhaseSecretStatus defines the observed state of PhaseSecret
type: object
properties:
conditions:
description: Conditions representing the current state of the resource.
type: array
items:
type: object
required:
- lastTransitionTime
- message
- reason
- status
- type
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status to another.
type: string
format: date-time
message:
description: Human-readable message indicating details about the transition.
type: string
maxLength: 32768
observedGeneration:
description: Generation that the condition was set based upon.
type: integer
minimum: 0
reason:
description: Programmatic identifier for the reason of the condition's last transition.
type: string
maxLength: 1024
minLength: 1
status:
description: Status of the condition.
type: string
enum:
- "True"
- "False"
- "Unknown"
type:
description: Type of condition in CamelCase.
type: string
maxLength: 316
required:
- conditions
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []