@@ -125,7 +125,7 @@ func Resource(resource string) schema.GroupResource
125
125
Resource takes an unqualified resource and returns a Group qualified GroupResource
126
126
127
127
<a name="AdditionalFormats"></a>
128
- ## type [AdditionalFormats](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L120-L128 >)
128
+ ## type [AdditionalFormats](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L126-L136 >)
129
129
130
130
AdditionalFormats specifies any additional formats to write to the target
131
131
@@ -134,9 +134,11 @@ type AdditionalFormats struct {
134
134
// JKS requests a JKS-formatted binary trust bundle to be written to the target.
135
135
// The bundle has "changeit" as the default password.
136
136
// For more information refer to this link https://cert-manager.io/docs/faq/#keystore-passwords
137
+ // +optional
137
138
JKS *JKS ` json:"jks,omitempty"`
138
139
// PKCS12 requests a PKCS12-formatted binary trust bundle to be written to the target.
139
140
// The bundle is by default created without a password.
141
+ // +optional
140
142
PKCS12 *PKCS12 ` json:"pkcs12,omitempty"`
141
143
}
142
144
```
@@ -206,7 +208,7 @@ func (in *Bundle) DeepCopyObject() runtime.Object
206
208
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
207
209
208
210
<a name="BundleCondition"></a>
209
- ## type [BundleCondition](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L206-L245 >)
211
+ ## type [BundleCondition](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L222-L261 >)
210
212
211
213
BundleCondition contains condition information for a Bundle.
212
214
@@ -313,9 +315,9 @@ func (in *BundleList) DeepCopyObject() runtime.Object
313
315
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
314
316
315
317
<a name="BundleSource"></a>
316
- ## type [BundleSource](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L70-L95 >)
318
+ ## type [BundleSource](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L74-L99 >)
317
319
318
- BundleSource is the set of sources whose data will be appended and synced to the BundleTarget in all Namespaces.
320
+ BundleSource is the set of sources whose data will be appended and synced to the BundleTarget in all Namespaces. \+structType=atomic
319
321
320
322
```go
321
323
type BundleSource struct {
@@ -365,13 +367,16 @@ func (in *BundleSource) DeepCopyInto(out *BundleSource)
365
367
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non\-nil.
366
368
367
369
<a name="BundleSpec"></a>
368
- ## type [BundleSpec](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L60-L66 >)
370
+ ## type [BundleSpec](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L60-L69 >)
369
371
370
372
BundleSpec defines the desired state of a Bundle.
371
373
372
374
```go
373
375
type BundleSpec struct {
374
376
// Sources is a set of references to data whose data will sync to the target.
377
+ // +listType=atomic
378
+ // +kubebuilder:validation:MinItems=1
379
+ // +kubebuilder:validation:MaxItems=100
375
380
Sources []BundleSource ` json:"sources"`
376
381
377
382
// Target is the target location in all namespaces to sync source data to.
@@ -398,7 +403,7 @@ func (in *BundleSpec) DeepCopyInto(out *BundleSpec)
398
403
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non\-nil.
399
404
400
405
<a name="BundleStatus"></a>
401
- ## type [BundleStatus](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L189-L203 >)
406
+ ## type [BundleStatus](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L205-L219 >)
402
407
403
408
BundleStatus defines the observed state of the Bundle.
404
409
@@ -439,19 +444,21 @@ func (in *BundleStatus) DeepCopyInto(out *BundleStatus)
439
444
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non\-nil.
440
445
441
446
<a name="BundleTarget"></a>
442
- ## type [BundleTarget](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L99-L117 >)
447
+ ## type [BundleTarget](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L103-L123 >)
443
448
444
449
BundleTarget is the target resource that the Bundle will sync all source data to.
445
450
446
451
```go
447
452
type BundleTarget struct {
448
453
// ConfigMap is the target ConfigMap in Namespaces that all Bundle source
449
454
// data will be synced to.
455
+ // +optional
450
456
ConfigMap *KeySelector ` json:"configMap,omitempty"`
451
457
452
458
// Secret is the target Secret that all Bundle source data will be synced to.
453
459
// Using Secrets as targets is only supported if enabled at trust-manager startup.
454
460
// By default, trust-manager has no permissions for writing to secrets and can only read secrets in the trust namespace.
461
+ // +optional
455
462
Secret *KeySelector ` json:"secret,omitempty"`
456
463
457
464
// AdditionalFormats specifies any additional formats to write to the target
@@ -484,9 +491,9 @@ func (in *BundleTarget) DeepCopyInto(out *BundleTarget)
484
491
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non\-nil.
485
492
486
493
<a name="JKS"></a>
487
- ## type [JKS](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L130-L139>)
488
-
494
+ ## type [JKS](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L140-L149>)
489
495
496
+ JKS specifies additional target JKS files \+structType=atomic
490
497
491
498
```go
492
499
type JKS struct {
@@ -520,13 +527,14 @@ func (in *JKS) DeepCopyInto(out *JKS)
520
527
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non\-nil.
521
528
522
529
<a name="KeySelector"></a>
523
- ## type [KeySelector](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L183-L186 >)
530
+ ## type [KeySelector](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L198-L202 >)
524
531
525
532
KeySelector is a reference to a key for some map data object.
526
533
527
534
```go
528
535
type KeySelector struct {
529
536
// Key is the key of the entry in the object's `data` field to be used.
537
+ // +kubebuilder:validation:MinLength=1
530
538
Key string ` json:"key"`
531
539
}
532
540
```
@@ -550,7 +558,7 @@ func (in *KeySelector) DeepCopyInto(out *KeySelector)
550
558
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non\-nil.
551
559
552
560
<a name="NamespaceSelector"></a>
553
- ## type [NamespaceSelector](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L152-L157 >)
561
+ ## type [NamespaceSelector](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L164-L169 >)
554
562
555
563
NamespaceSelector defines selectors to match on Namespaces.
556
564
@@ -582,9 +590,9 @@ func (in *NamespaceSelector) DeepCopyInto(out *NamespaceSelector)
582
590
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non\-nil.
583
591
584
592
<a name="PKCS12"></a>
585
- ## type [PKCS12](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L141-L149>)
586
-
593
+ ## type [PKCS12](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L153-L161>)
587
594
595
+ PKCS12 specifies additional target PKCS\#12 files \+structType=atomic
588
596
589
597
```go
590
598
type PKCS12 struct {
@@ -617,15 +625,16 @@ func (in *PKCS12) DeepCopyInto(out *PKCS12)
617
625
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non\-nil.
618
626
619
627
<a name="SourceObjectKeySelector"></a>
620
- ## type [SourceObjectKeySelector](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L161-L180 >)
628
+ ## type [SourceObjectKeySelector](<https:// github.com/cert-manager/trust-manager/blob/main/pkg/apis/trust/v1alpha1/types_bundle.go#L174-L195 >)
621
629
622
- SourceObjectKeySelector is a reference to a source object and its \`data\` key\(s\) in the trust Namespace.
630
+ SourceObjectKeySelector is a reference to a source object and its \`data\` key\(s\) in the trust Namespace. \+structType=atomic
623
631
624
632
```go
625
633
type SourceObjectKeySelector struct {
626
634
// Name is the name of the source object in the trust Namespace.
627
635
// This field must be left empty when `selector` is set
628
636
// +optional
637
+ // +kubebuilder:validation:MinLength=1
629
638
Name string ` json:"name,omitempty"`
630
639
631
640
// Selector is the label selector to use to fetch a list of objects. Must not be set
@@ -635,6 +644,7 @@ type SourceObjectKeySelector struct {
635
644
636
645
// Key of the entry in the object's `data` field to be used.
637
646
// +optional
647
+ // +kubebuilder:validation:MinLength=1
638
648
Key string ` json:"key,omitempty"`
639
649
640
650
// IncludeAllKeys is a flag to include all keys in the object's `data` field to be used. False by default.
0 commit comments