generated from crossplane/upjet-provider-template
/
zz_secretbackendrootcert_types.go
executable file
·504 lines (398 loc) · 20.4 KB
/
zz_secretbackendrootcert_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
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
/*
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 SecretBackendRootCertInitParameters struct {
// List of alternative names
// List of alternative names.
AltNames []*string `json:"altNames,omitempty" tf:"alt_names,omitempty"`
// The PKI secret backend the resource belongs to.
// The PKI secret backend the resource belongs to.
Backend *string `json:"backend,omitempty" tf:"backend,omitempty"`
// CN of intermediate to create
// CN of root to create.
CommonName *string `json:"commonName,omitempty" tf:"common_name,omitempty"`
// The country
// The country.
Country *string `json:"country,omitempty" tf:"country,omitempty"`
// Flag to exclude CN from SANs
// Flag to exclude CN from SANs.
ExcludeCnFromSans *bool `json:"excludeCnFromSans,omitempty" tf:"exclude_cn_from_sans,omitempty"`
// The format of data
// The format of data.
Format *string `json:"format,omitempty" tf:"format,omitempty"`
// List of alternative IPs
// List of alternative IPs.
IPSans []*string `json:"ipSans,omitempty" tf:"ip_sans,omitempty"`
// Provides a name to the specified issuer. The name must be unique
// across all issuers and not be the reserved value default
// Provides a name to the specified issuer. The name must be unique across all issuers and not be the reserved value 'default'.
IssuerName *string `json:"issuerName,omitempty" tf:"issuer_name,omitempty"`
// The number of bits to use
// The number of bits to use.
KeyBits *float64 `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// When a new key is created with this request, optionally specifies
// the name for this. The global ref default may not be used as a name.
// When a new key is created with this request, optionally specifies the name for this.
KeyName *string `json:"keyName,omitempty" tf:"key_name,omitempty"`
// Specifies the key (either default, by name, or by identifier) to use
// for generating this request. Only suitable for type=existing requests.
// Specifies the key to use for generating this request.
KeyRef *string `json:"keyRef,omitempty" tf:"key_ref,omitempty"`
// The desired key type
// The desired key type.
KeyType *string `json:"keyType,omitempty" tf:"key_type,omitempty"`
// The locality
// The locality.
Locality *string `json:"locality,omitempty" tf:"locality,omitempty"`
// The ID of the previously configured managed key. This field is
// required if type is kms and it conflicts with managed_key_name
// The ID of the previously configured managed key.
ManagedKeyID *string `json:"managedKeyId,omitempty" tf:"managed_key_id,omitempty"`
// The name of the previously configured managed key. This field is
// required if type is kms and it conflicts with managed_key_id
// The name of the previously configured managed key.
ManagedKeyName *string `json:"managedKeyName,omitempty" tf:"managed_key_name,omitempty"`
// The maximum path length to encode in the generated certificate
// The maximum path length to encode in the generated certificate.
MaxPathLength *float64 `json:"maxPathLength,omitempty" tf:"max_path_length,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"`
// The organization
// The organization.
Organization *string `json:"organization,omitempty" tf:"organization,omitempty"`
// List of other SANs
// List of other SANs.
OtherSans []*string `json:"otherSans,omitempty" tf:"other_sans,omitempty"`
// The organization unit
// The organization unit.
Ou *string `json:"ou,omitempty" tf:"ou,omitempty"`
// List of domains for which certificates are allowed to be issued
// List of domains for which certificates are allowed to be issued.
PermittedDNSDomains []*string `json:"permittedDnsDomains,omitempty" tf:"permitted_dns_domains,omitempty"`
// The postal code
// The postal code.
PostalCode *string `json:"postalCode,omitempty" tf:"postal_code,omitempty"`
// The private key format
// The private key format.
PrivateKeyFormat *string `json:"privateKeyFormat,omitempty" tf:"private_key_format,omitempty"`
// The province
// The province.
Province *string `json:"province,omitempty" tf:"province,omitempty"`
// The street address
// The street address.
StreetAddress *string `json:"streetAddress,omitempty" tf:"street_address,omitempty"`
// Time to live
// Time to live.
TTL *string `json:"ttl,omitempty" tf:"ttl,omitempty"`
// Type of intermediate to create. Must be either "exported", "internal"
// or "kms"
// Type of root to create. Must be either "existing", "exported", "internal" or "kms"
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// List of alternative URIs
// List of alternative URIs.
URISans []*string `json:"uriSans,omitempty" tf:"uri_sans,omitempty"`
}
type SecretBackendRootCertObservation struct {
// List of alternative names
// List of alternative names.
AltNames []*string `json:"altNames,omitempty" tf:"alt_names,omitempty"`
// The PKI secret backend the resource belongs to.
// The PKI secret backend the resource belongs to.
Backend *string `json:"backend,omitempty" tf:"backend,omitempty"`
// The certificate.
// The certificate.
Certificate *string `json:"certificate,omitempty" tf:"certificate,omitempty"`
// CN of intermediate to create
// CN of root to create.
CommonName *string `json:"commonName,omitempty" tf:"common_name,omitempty"`
// The country
// The country.
Country *string `json:"country,omitempty" tf:"country,omitempty"`
// Flag to exclude CN from SANs
// Flag to exclude CN from SANs.
ExcludeCnFromSans *bool `json:"excludeCnFromSans,omitempty" tf:"exclude_cn_from_sans,omitempty"`
// The format of data
// The format of data.
Format *string `json:"format,omitempty" tf:"format,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// List of alternative IPs
// List of alternative IPs.
IPSans []*string `json:"ipSans,omitempty" tf:"ip_sans,omitempty"`
// The ID of the generated issuer.
// The ID of the generated issuer.
IssuerID *string `json:"issuerId,omitempty" tf:"issuer_id,omitempty"`
// Provides a name to the specified issuer. The name must be unique
// across all issuers and not be the reserved value default
// Provides a name to the specified issuer. The name must be unique across all issuers and not be the reserved value 'default'.
IssuerName *string `json:"issuerName,omitempty" tf:"issuer_name,omitempty"`
// The issuing CA certificate.
// The issuing CA.
IssuingCA *string `json:"issuingCa,omitempty" tf:"issuing_ca,omitempty"`
// The number of bits to use
// The number of bits to use.
KeyBits *float64 `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// The ID of the generated key.
// The ID of the generated key.
KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"`
// When a new key is created with this request, optionally specifies
// the name for this. The global ref default may not be used as a name.
// When a new key is created with this request, optionally specifies the name for this.
KeyName *string `json:"keyName,omitempty" tf:"key_name,omitempty"`
// Specifies the key (either default, by name, or by identifier) to use
// for generating this request. Only suitable for type=existing requests.
// Specifies the key to use for generating this request.
KeyRef *string `json:"keyRef,omitempty" tf:"key_ref,omitempty"`
// The desired key type
// The desired key type.
KeyType *string `json:"keyType,omitempty" tf:"key_type,omitempty"`
// The locality
// The locality.
Locality *string `json:"locality,omitempty" tf:"locality,omitempty"`
// The ID of the previously configured managed key. This field is
// required if type is kms and it conflicts with managed_key_name
// The ID of the previously configured managed key.
ManagedKeyID *string `json:"managedKeyId,omitempty" tf:"managed_key_id,omitempty"`
// The name of the previously configured managed key. This field is
// required if type is kms and it conflicts with managed_key_id
// The name of the previously configured managed key.
ManagedKeyName *string `json:"managedKeyName,omitempty" tf:"managed_key_name,omitempty"`
// The maximum path length to encode in the generated certificate
// The maximum path length to encode in the generated certificate.
MaxPathLength *float64 `json:"maxPathLength,omitempty" tf:"max_path_length,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"`
// The organization
// The organization.
Organization *string `json:"organization,omitempty" tf:"organization,omitempty"`
// List of other SANs
// List of other SANs.
OtherSans []*string `json:"otherSans,omitempty" tf:"other_sans,omitempty"`
// The organization unit
// The organization unit.
Ou *string `json:"ou,omitempty" tf:"ou,omitempty"`
// List of domains for which certificates are allowed to be issued
// List of domains for which certificates are allowed to be issued.
PermittedDNSDomains []*string `json:"permittedDnsDomains,omitempty" tf:"permitted_dns_domains,omitempty"`
// The postal code
// The postal code.
PostalCode *string `json:"postalCode,omitempty" tf:"postal_code,omitempty"`
// The private key format
// The private key format.
PrivateKeyFormat *string `json:"privateKeyFormat,omitempty" tf:"private_key_format,omitempty"`
// The province
// The province.
Province *string `json:"province,omitempty" tf:"province,omitempty"`
// Deprecated, use serial_number instead.
// The serial number.
Serial *string `json:"serial,omitempty" tf:"serial,omitempty"`
// The certificate's serial number, hex formatted.
// The certificate's serial number, hex formatted.
SerialNumber *string `json:"serialNumber,omitempty" tf:"serial_number,omitempty"`
// The street address
// The street address.
StreetAddress *string `json:"streetAddress,omitempty" tf:"street_address,omitempty"`
// Time to live
// Time to live.
TTL *string `json:"ttl,omitempty" tf:"ttl,omitempty"`
// Type of intermediate to create. Must be either "exported", "internal"
// or "kms"
// Type of root to create. Must be either "existing", "exported", "internal" or "kms"
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// List of alternative URIs
// List of alternative URIs.
URISans []*string `json:"uriSans,omitempty" tf:"uri_sans,omitempty"`
}
type SecretBackendRootCertParameters struct {
// List of alternative names
// List of alternative names.
// +kubebuilder:validation:Optional
AltNames []*string `json:"altNames,omitempty" tf:"alt_names,omitempty"`
// The PKI secret backend the resource belongs to.
// The PKI secret backend the resource belongs to.
// +kubebuilder:validation:Optional
Backend *string `json:"backend,omitempty" tf:"backend,omitempty"`
// CN of intermediate to create
// CN of root to create.
// +kubebuilder:validation:Optional
CommonName *string `json:"commonName,omitempty" tf:"common_name,omitempty"`
// The country
// The country.
// +kubebuilder:validation:Optional
Country *string `json:"country,omitempty" tf:"country,omitempty"`
// Flag to exclude CN from SANs
// Flag to exclude CN from SANs.
// +kubebuilder:validation:Optional
ExcludeCnFromSans *bool `json:"excludeCnFromSans,omitempty" tf:"exclude_cn_from_sans,omitempty"`
// The format of data
// The format of data.
// +kubebuilder:validation:Optional
Format *string `json:"format,omitempty" tf:"format,omitempty"`
// List of alternative IPs
// List of alternative IPs.
// +kubebuilder:validation:Optional
IPSans []*string `json:"ipSans,omitempty" tf:"ip_sans,omitempty"`
// Provides a name to the specified issuer. The name must be unique
// across all issuers and not be the reserved value default
// Provides a name to the specified issuer. The name must be unique across all issuers and not be the reserved value 'default'.
// +kubebuilder:validation:Optional
IssuerName *string `json:"issuerName,omitempty" tf:"issuer_name,omitempty"`
// The number of bits to use
// The number of bits to use.
// +kubebuilder:validation:Optional
KeyBits *float64 `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// When a new key is created with this request, optionally specifies
// the name for this. The global ref default may not be used as a name.
// When a new key is created with this request, optionally specifies the name for this.
// +kubebuilder:validation:Optional
KeyName *string `json:"keyName,omitempty" tf:"key_name,omitempty"`
// Specifies the key (either default, by name, or by identifier) to use
// for generating this request. Only suitable for type=existing requests.
// Specifies the key to use for generating this request.
// +kubebuilder:validation:Optional
KeyRef *string `json:"keyRef,omitempty" tf:"key_ref,omitempty"`
// The desired key type
// The desired key type.
// +kubebuilder:validation:Optional
KeyType *string `json:"keyType,omitempty" tf:"key_type,omitempty"`
// The locality
// The locality.
// +kubebuilder:validation:Optional
Locality *string `json:"locality,omitempty" tf:"locality,omitempty"`
// The ID of the previously configured managed key. This field is
// required if type is kms and it conflicts with managed_key_name
// The ID of the previously configured managed key.
// +kubebuilder:validation:Optional
ManagedKeyID *string `json:"managedKeyId,omitempty" tf:"managed_key_id,omitempty"`
// The name of the previously configured managed key. This field is
// required if type is kms and it conflicts with managed_key_id
// The name of the previously configured managed key.
// +kubebuilder:validation:Optional
ManagedKeyName *string `json:"managedKeyName,omitempty" tf:"managed_key_name,omitempty"`
// The maximum path length to encode in the generated certificate
// The maximum path length to encode in the generated certificate.
// +kubebuilder:validation:Optional
MaxPathLength *float64 `json:"maxPathLength,omitempty" tf:"max_path_length,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)
// +kubebuilder:validation:Optional
Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`
// The organization
// The organization.
// +kubebuilder:validation:Optional
Organization *string `json:"organization,omitempty" tf:"organization,omitempty"`
// List of other SANs
// List of other SANs.
// +kubebuilder:validation:Optional
OtherSans []*string `json:"otherSans,omitempty" tf:"other_sans,omitempty"`
// The organization unit
// The organization unit.
// +kubebuilder:validation:Optional
Ou *string `json:"ou,omitempty" tf:"ou,omitempty"`
// List of domains for which certificates are allowed to be issued
// List of domains for which certificates are allowed to be issued.
// +kubebuilder:validation:Optional
PermittedDNSDomains []*string `json:"permittedDnsDomains,omitempty" tf:"permitted_dns_domains,omitempty"`
// The postal code
// The postal code.
// +kubebuilder:validation:Optional
PostalCode *string `json:"postalCode,omitempty" tf:"postal_code,omitempty"`
// The private key format
// The private key format.
// +kubebuilder:validation:Optional
PrivateKeyFormat *string `json:"privateKeyFormat,omitempty" tf:"private_key_format,omitempty"`
// The province
// The province.
// +kubebuilder:validation:Optional
Province *string `json:"province,omitempty" tf:"province,omitempty"`
// The street address
// The street address.
// +kubebuilder:validation:Optional
StreetAddress *string `json:"streetAddress,omitempty" tf:"street_address,omitempty"`
// Time to live
// Time to live.
// +kubebuilder:validation:Optional
TTL *string `json:"ttl,omitempty" tf:"ttl,omitempty"`
// Type of intermediate to create. Must be either "exported", "internal"
// or "kms"
// Type of root to create. Must be either "existing", "exported", "internal" or "kms"
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// List of alternative URIs
// List of alternative URIs.
// +kubebuilder:validation:Optional
URISans []*string `json:"uriSans,omitempty" tf:"uri_sans,omitempty"`
}
// SecretBackendRootCertSpec defines the desired state of SecretBackendRootCert
type SecretBackendRootCertSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider SecretBackendRootCertParameters `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 SecretBackendRootCertInitParameters `json:"initProvider,omitempty"`
}
// SecretBackendRootCertStatus defines the observed state of SecretBackendRootCert.
type SecretBackendRootCertStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider SecretBackendRootCertObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// SecretBackendRootCert is the Schema for the SecretBackendRootCerts API. Generate root.
// +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 SecretBackendRootCert 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.backend) || has(self.initProvider.backend)",message="backend is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.commonName) || has(self.initProvider.commonName)",message="commonName is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || has(self.initProvider.type)",message="type is a required parameter"
Spec SecretBackendRootCertSpec `json:"spec"`
Status SecretBackendRootCertStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// SecretBackendRootCertList contains a list of SecretBackendRootCerts
type SecretBackendRootCertList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []SecretBackendRootCert `json:"items"`
}
// Repository type metadata.
var (
SecretBackendRootCert_Kind = "SecretBackendRootCert"
SecretBackendRootCert_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: SecretBackendRootCert_Kind}.String()
SecretBackendRootCert_KindAPIVersion = SecretBackendRootCert_Kind + "." + CRDGroupVersion.String()
SecretBackendRootCert_GroupVersionKind = CRDGroupVersion.WithKind(SecretBackendRootCert_Kind)
)
func init() {
SchemeBuilder.Register(&SecretBackendRootCert{}, &SecretBackendRootCertList{})
}