Skip to content

Commit 996c1cc

Browse files
committed
Add missing kubebuilder validations
Signed-off-by: Veronika Fisarova <[email protected]>
1 parent e1b6b7c commit 996c1cc

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed

api/bases/barbican.openstack.org_barbicans.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ spec:
3636
description: BarbicanSpec defines the desired state of Barbican
3737
properties:
3838
barbicanAPI:
39-
description: BarbicanAPITemplate defines the input parameters for
40-
the Barbican API service
39+
description: BarbicanAPI - Spec definition for the API services of
40+
this Barbican deployment
4141
properties:
4242
containerImage:
4343
description: ContainerImage - Barbican Container Image URL (will
@@ -358,8 +358,8 @@ spec:
358358
- containerImage
359359
type: object
360360
barbicanKeystoneListener:
361-
description: BarbicanKeystoneListenerTemplate defines common Spec
362-
elements for the KeystoneListener process
361+
description: BarbicanKeystoneListener - Spec definition for the KeystoneListener
362+
service of this Barbican deployment
363363
properties:
364364
containerImage:
365365
description: ContainerImage - Barbican Container Image URL (will
@@ -463,8 +463,8 @@ spec:
463463
- containerImage
464464
type: object
465465
barbicanWorker:
466-
description: BarbicanWorkerTemplate defines common Spec elements for
467-
the Worker process
466+
description: BarbicanWorker - Spec definition for the Worker service
467+
of this Barbican deployment
468468
properties:
469469
containerImage:
470470
description: ContainerImage - Barbican Container Image URL (will

api/v1beta1/barbican_types.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,33 @@ const (
4242
type BarbicanSpec struct {
4343
BarbicanSpecBase `json:",inline"`
4444

45+
// +kubebuilder:validation:Required
46+
// BarbicanAPI - Spec definition for the API services of this Barbican deployment
4547
BarbicanAPI BarbicanAPITemplate `json:"barbicanAPI"`
4648

49+
// +kubebuilder:validation:Required
50+
// BarbicanWorker - Spec definition for the Worker service of this Barbican deployment
4751
BarbicanWorker BarbicanWorkerTemplate `json:"barbicanWorker"`
4852

53+
// +kubebuilder:validation:Required
54+
// BarbicanKeystoneListener - Spec definition for the KeystoneListener service of this Barbican deployment
4955
BarbicanKeystoneListener BarbicanKeystoneListenerTemplate `json:"barbicanKeystoneListener"`
5056
}
5157

5258
// BarbicanSpecCore defines the desired state of Barbican, for use with the OpenStackControlplane CR (no containerImages)
5359
type BarbicanSpecCore struct {
5460
BarbicanSpecBase `json:",inline"`
5561

62+
// +kubebuilder:validation:Required
63+
// BarbicanAPI - Spec definition for the API services of this Barbican deployment
5664
BarbicanAPI BarbicanAPITemplateCore `json:"barbicanAPI"`
5765

66+
// +kubebuilder:validation:Required
67+
// BarbicanWorker - Spec definition for the Worker service of this Barbican deployment
5868
BarbicanWorker BarbicanWorkerTemplateCore `json:"barbicanWorker"`
5969

70+
// +kubebuilder:validation:Required
71+
// BarbicanKeystoneListener - Spec definition for the KeystoneListener service of this Barbican deployment
6072
BarbicanKeystoneListener BarbicanKeystoneListenerTemplateCore `json:"barbicanKeystoneListener"`
6173
}
6274

config/crd/bases/barbican.openstack.org_barbicans.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ spec:
3636
description: BarbicanSpec defines the desired state of Barbican
3737
properties:
3838
barbicanAPI:
39-
description: BarbicanAPITemplate defines the input parameters for
40-
the Barbican API service
39+
description: BarbicanAPI - Spec definition for the API services of
40+
this Barbican deployment
4141
properties:
4242
containerImage:
4343
description: ContainerImage - Barbican Container Image URL (will
@@ -358,8 +358,8 @@ spec:
358358
- containerImage
359359
type: object
360360
barbicanKeystoneListener:
361-
description: BarbicanKeystoneListenerTemplate defines common Spec
362-
elements for the KeystoneListener process
361+
description: BarbicanKeystoneListener - Spec definition for the KeystoneListener
362+
service of this Barbican deployment
363363
properties:
364364
containerImage:
365365
description: ContainerImage - Barbican Container Image URL (will
@@ -463,8 +463,8 @@ spec:
463463
- containerImage
464464
type: object
465465
barbicanWorker:
466-
description: BarbicanWorkerTemplate defines common Spec elements for
467-
the Worker process
466+
description: BarbicanWorker - Spec definition for the Worker service
467+
of this Barbican deployment
468468
properties:
469469
containerImage:
470470
description: ContainerImage - Barbican Container Image URL (will

0 commit comments

Comments
 (0)