generated from crossplane/upjet-provider-template
/
zz_secretrole_types.go
executable file
·373 lines (295 loc) · 17.7 KB
/
zz_secretrole_types.go
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type SecretRoleInitParameters struct {
// The namespace to provision the resource in.
// The value should not contain leading or trailing forward slashes.
// The namespace is always relative to the provider's configured namespace.
// Available only for Vault Enterprise.
// Target namespace. (requires Enterprise)
Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`
// Grant permission to use the KMIP Activate operation.
// Grant permission to use the KMIP Activate operation
OperationActivate *bool `json:"operationActivate,omitempty" tf:"operation_activate,omitempty"`
// Grant permission to use the KMIP Add Attribute operation.
// Grant permission to use the KMIP Add Attribute operation
OperationAddAttribute *bool `json:"operationAddAttribute,omitempty" tf:"operation_add_attribute,omitempty"`
// Grant all permissions to this role. May not be specified with any other operation_* params.
// Grant all permissions to this role. May not be specified with any other operation_* params
OperationAll *bool `json:"operationAll,omitempty" tf:"operation_all,omitempty"`
// Grant permission to use the KMIP Create operation.
// Grant permission to use the KMIP Create operation
OperationCreate *bool `json:"operationCreate,omitempty" tf:"operation_create,omitempty"`
// Grant permission to use the KMIP Destroy operation.
// Grant permission to use the KMIP Destroy operation
OperationDestroy *bool `json:"operationDestroy,omitempty" tf:"operation_destroy,omitempty"`
// Grant permission to use the KMIP Discover Version operation.
// Grant permission to use the KMIP Discover Version operation
OperationDiscoverVersions *bool `json:"operationDiscoverVersions,omitempty" tf:"operation_discover_versions,omitempty"`
// Grant permission to use the KMIP Get operation.
// Grant permission to use the KMIP Get operation
OperationGet *bool `json:"operationGet,omitempty" tf:"operation_get,omitempty"`
// Grant permission to use the KMIP Get Atrribute List operation.
// Grant permission to use the KMIP Get Attribute List operation
OperationGetAttributeList *bool `json:"operationGetAttributeList,omitempty" tf:"operation_get_attribute_list,omitempty"`
// Grant permission to use the KMIP Get Atrributes operation.
// Grant permission to use the KMIP Get Attributes operation
OperationGetAttributes *bool `json:"operationGetAttributes,omitempty" tf:"operation_get_attributes,omitempty"`
// Grant permission to use the KMIP Get Locate operation.
// Grant permission to use the KMIP Locate operation
OperationLocate *bool `json:"operationLocate,omitempty" tf:"operation_locate,omitempty"`
// Remove all permissions from this role. May not be specified with any other operation_* params.
// Remove all permissions from this role. May not be specified with any other operation_* params
OperationNone *bool `json:"operationNone,omitempty" tf:"operation_none,omitempty"`
// Grant permission to use the KMIP Register operation.
// Grant permission to use the KMIP Register operation
OperationRegister *bool `json:"operationRegister,omitempty" tf:"operation_register,omitempty"`
// Grant permission to use the KMIP Rekey operation.
// Grant permission to use the KMIP Rekey operation
OperationRekey *bool `json:"operationRekey,omitempty" tf:"operation_rekey,omitempty"`
// Grant permission to use the KMIP Revoke operation.
// Grant permission to use the KMIP Revoke operation
OperationRevoke *bool `json:"operationRevoke,omitempty" tf:"operation_revoke,omitempty"`
// The unique path this backend should be mounted at. Must
// not begin or end with a /. Defaults to kmip.
// Path where KMIP backend is mounted
Path *string `json:"path,omitempty" tf:"path,omitempty"`
// Name of the role.
// Name of the role
Role *string `json:"role,omitempty" tf:"role,omitempty"`
// Name of the scope.
// Name of the scope
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
// Client certificate key bits, valid values depend on key type.
// Client certificate key bits, valid values depend on key type
TLSClientKeyBits *float64 `json:"tlsClientKeyBits,omitempty" tf:"tls_client_key_bits,omitempty"`
// Client certificate key type, rsa or ec.
// Client certificate key type, rsa or ec
TLSClientKeyType *string `json:"tlsClientKeyType,omitempty" tf:"tls_client_key_type,omitempty"`
// Client certificate TTL in seconds.
// Client certificate TTL in seconds
TLSClientTTL *float64 `json:"tlsClientTtl,omitempty" tf:"tls_client_ttl,omitempty"`
}
type SecretRoleObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The namespace to provision the resource in.
// The value should not contain leading or trailing forward slashes.
// The namespace is always relative to the provider's configured namespace.
// Available only for Vault Enterprise.
// Target namespace. (requires Enterprise)
Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`
// Grant permission to use the KMIP Activate operation.
// Grant permission to use the KMIP Activate operation
OperationActivate *bool `json:"operationActivate,omitempty" tf:"operation_activate,omitempty"`
// Grant permission to use the KMIP Add Attribute operation.
// Grant permission to use the KMIP Add Attribute operation
OperationAddAttribute *bool `json:"operationAddAttribute,omitempty" tf:"operation_add_attribute,omitempty"`
// Grant all permissions to this role. May not be specified with any other operation_* params.
// Grant all permissions to this role. May not be specified with any other operation_* params
OperationAll *bool `json:"operationAll,omitempty" tf:"operation_all,omitempty"`
// Grant permission to use the KMIP Create operation.
// Grant permission to use the KMIP Create operation
OperationCreate *bool `json:"operationCreate,omitempty" tf:"operation_create,omitempty"`
// Grant permission to use the KMIP Destroy operation.
// Grant permission to use the KMIP Destroy operation
OperationDestroy *bool `json:"operationDestroy,omitempty" tf:"operation_destroy,omitempty"`
// Grant permission to use the KMIP Discover Version operation.
// Grant permission to use the KMIP Discover Version operation
OperationDiscoverVersions *bool `json:"operationDiscoverVersions,omitempty" tf:"operation_discover_versions,omitempty"`
// Grant permission to use the KMIP Get operation.
// Grant permission to use the KMIP Get operation
OperationGet *bool `json:"operationGet,omitempty" tf:"operation_get,omitempty"`
// Grant permission to use the KMIP Get Atrribute List operation.
// Grant permission to use the KMIP Get Attribute List operation
OperationGetAttributeList *bool `json:"operationGetAttributeList,omitempty" tf:"operation_get_attribute_list,omitempty"`
// Grant permission to use the KMIP Get Atrributes operation.
// Grant permission to use the KMIP Get Attributes operation
OperationGetAttributes *bool `json:"operationGetAttributes,omitempty" tf:"operation_get_attributes,omitempty"`
// Grant permission to use the KMIP Get Locate operation.
// Grant permission to use the KMIP Locate operation
OperationLocate *bool `json:"operationLocate,omitempty" tf:"operation_locate,omitempty"`
// Remove all permissions from this role. May not be specified with any other operation_* params.
// Remove all permissions from this role. May not be specified with any other operation_* params
OperationNone *bool `json:"operationNone,omitempty" tf:"operation_none,omitempty"`
// Grant permission to use the KMIP Register operation.
// Grant permission to use the KMIP Register operation
OperationRegister *bool `json:"operationRegister,omitempty" tf:"operation_register,omitempty"`
// Grant permission to use the KMIP Rekey operation.
// Grant permission to use the KMIP Rekey operation
OperationRekey *bool `json:"operationRekey,omitempty" tf:"operation_rekey,omitempty"`
// Grant permission to use the KMIP Revoke operation.
// Grant permission to use the KMIP Revoke operation
OperationRevoke *bool `json:"operationRevoke,omitempty" tf:"operation_revoke,omitempty"`
// The unique path this backend should be mounted at. Must
// not begin or end with a /. Defaults to kmip.
// Path where KMIP backend is mounted
Path *string `json:"path,omitempty" tf:"path,omitempty"`
// Name of the role.
// Name of the role
Role *string `json:"role,omitempty" tf:"role,omitempty"`
// Name of the scope.
// Name of the scope
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
// Client certificate key bits, valid values depend on key type.
// Client certificate key bits, valid values depend on key type
TLSClientKeyBits *float64 `json:"tlsClientKeyBits,omitempty" tf:"tls_client_key_bits,omitempty"`
// Client certificate key type, rsa or ec.
// Client certificate key type, rsa or ec
TLSClientKeyType *string `json:"tlsClientKeyType,omitempty" tf:"tls_client_key_type,omitempty"`
// Client certificate TTL in seconds.
// Client certificate TTL in seconds
TLSClientTTL *float64 `json:"tlsClientTtl,omitempty" tf:"tls_client_ttl,omitempty"`
}
type SecretRoleParameters struct {
// The namespace to provision the resource in.
// The value should not contain leading or trailing forward slashes.
// The namespace is always relative to the provider's configured namespace.
// Available only for Vault Enterprise.
// Target namespace. (requires Enterprise)
// +kubebuilder:validation:Optional
Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`
// Grant permission to use the KMIP Activate operation.
// Grant permission to use the KMIP Activate operation
// +kubebuilder:validation:Optional
OperationActivate *bool `json:"operationActivate,omitempty" tf:"operation_activate,omitempty"`
// Grant permission to use the KMIP Add Attribute operation.
// Grant permission to use the KMIP Add Attribute operation
// +kubebuilder:validation:Optional
OperationAddAttribute *bool `json:"operationAddAttribute,omitempty" tf:"operation_add_attribute,omitempty"`
// Grant all permissions to this role. May not be specified with any other operation_* params.
// Grant all permissions to this role. May not be specified with any other operation_* params
// +kubebuilder:validation:Optional
OperationAll *bool `json:"operationAll,omitempty" tf:"operation_all,omitempty"`
// Grant permission to use the KMIP Create operation.
// Grant permission to use the KMIP Create operation
// +kubebuilder:validation:Optional
OperationCreate *bool `json:"operationCreate,omitempty" tf:"operation_create,omitempty"`
// Grant permission to use the KMIP Destroy operation.
// Grant permission to use the KMIP Destroy operation
// +kubebuilder:validation:Optional
OperationDestroy *bool `json:"operationDestroy,omitempty" tf:"operation_destroy,omitempty"`
// Grant permission to use the KMIP Discover Version operation.
// Grant permission to use the KMIP Discover Version operation
// +kubebuilder:validation:Optional
OperationDiscoverVersions *bool `json:"operationDiscoverVersions,omitempty" tf:"operation_discover_versions,omitempty"`
// Grant permission to use the KMIP Get operation.
// Grant permission to use the KMIP Get operation
// +kubebuilder:validation:Optional
OperationGet *bool `json:"operationGet,omitempty" tf:"operation_get,omitempty"`
// Grant permission to use the KMIP Get Atrribute List operation.
// Grant permission to use the KMIP Get Attribute List operation
// +kubebuilder:validation:Optional
OperationGetAttributeList *bool `json:"operationGetAttributeList,omitempty" tf:"operation_get_attribute_list,omitempty"`
// Grant permission to use the KMIP Get Atrributes operation.
// Grant permission to use the KMIP Get Attributes operation
// +kubebuilder:validation:Optional
OperationGetAttributes *bool `json:"operationGetAttributes,omitempty" tf:"operation_get_attributes,omitempty"`
// Grant permission to use the KMIP Get Locate operation.
// Grant permission to use the KMIP Locate operation
// +kubebuilder:validation:Optional
OperationLocate *bool `json:"operationLocate,omitempty" tf:"operation_locate,omitempty"`
// Remove all permissions from this role. May not be specified with any other operation_* params.
// Remove all permissions from this role. May not be specified with any other operation_* params
// +kubebuilder:validation:Optional
OperationNone *bool `json:"operationNone,omitempty" tf:"operation_none,omitempty"`
// Grant permission to use the KMIP Register operation.
// Grant permission to use the KMIP Register operation
// +kubebuilder:validation:Optional
OperationRegister *bool `json:"operationRegister,omitempty" tf:"operation_register,omitempty"`
// Grant permission to use the KMIP Rekey operation.
// Grant permission to use the KMIP Rekey operation
// +kubebuilder:validation:Optional
OperationRekey *bool `json:"operationRekey,omitempty" tf:"operation_rekey,omitempty"`
// Grant permission to use the KMIP Revoke operation.
// Grant permission to use the KMIP Revoke operation
// +kubebuilder:validation:Optional
OperationRevoke *bool `json:"operationRevoke,omitempty" tf:"operation_revoke,omitempty"`
// The unique path this backend should be mounted at. Must
// not begin or end with a /. Defaults to kmip.
// Path where KMIP backend is mounted
// +kubebuilder:validation:Optional
Path *string `json:"path,omitempty" tf:"path,omitempty"`
// Name of the role.
// Name of the role
// +kubebuilder:validation:Optional
Role *string `json:"role,omitempty" tf:"role,omitempty"`
// Name of the scope.
// Name of the scope
// +kubebuilder:validation:Optional
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
// Client certificate key bits, valid values depend on key type.
// Client certificate key bits, valid values depend on key type
// +kubebuilder:validation:Optional
TLSClientKeyBits *float64 `json:"tlsClientKeyBits,omitempty" tf:"tls_client_key_bits,omitempty"`
// Client certificate key type, rsa or ec.
// Client certificate key type, rsa or ec
// +kubebuilder:validation:Optional
TLSClientKeyType *string `json:"tlsClientKeyType,omitempty" tf:"tls_client_key_type,omitempty"`
// Client certificate TTL in seconds.
// Client certificate TTL in seconds
// +kubebuilder:validation:Optional
TLSClientTTL *float64 `json:"tlsClientTtl,omitempty" tf:"tls_client_ttl,omitempty"`
}
// SecretRoleSpec defines the desired state of SecretRole
type SecretRoleSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider SecretRoleParameters `json:"forProvider"`
// THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored
// unless the relevant Crossplane feature flag is enabled, and may be
// changed or removed without notice.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider SecretRoleInitParameters `json:"initProvider,omitempty"`
}
// SecretRoleStatus defines the observed state of SecretRole.
type SecretRoleStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider SecretRoleObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// SecretRole is the Schema for the SecretRoles API. Provision KMIP Secret roles in Vault.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,vault}
type SecretRole struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.path) || has(self.initProvider.path)",message="path is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.role) || has(self.initProvider.role)",message="role is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scope) || has(self.initProvider.scope)",message="scope is a required parameter"
Spec SecretRoleSpec `json:"spec"`
Status SecretRoleStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// SecretRoleList contains a list of SecretRoles
type SecretRoleList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []SecretRole `json:"items"`
}
// Repository type metadata.
var (
SecretRole_Kind = "SecretRole"
SecretRole_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: SecretRole_Kind}.String()
SecretRole_KindAPIVersion = SecretRole_Kind + "." + CRDGroupVersion.String()
SecretRole_GroupVersionKind = CRDGroupVersion.WithKind(SecretRole_Kind)
)
func init() {
SchemeBuilder.Register(&SecretRole{}, &SecretRoleList{})
}