Skip to content

Commit

Permalink
Merge pull request #183 from Deydra71/add-kubebuilder-vladiations
Browse files Browse the repository at this point in the history
Add missing kubebuilder validations
  • Loading branch information
openshift-merge-bot[bot] authored Nov 12, 2024
2 parents 336a127 + 996c1cc commit eebfdec
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
12 changes: 6 additions & 6 deletions api/bases/barbican.openstack.org_barbicans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ spec:
description: BarbicanSpec defines the desired state of Barbican
properties:
barbicanAPI:
description: BarbicanAPITemplate defines the input parameters for
the Barbican API service
description: BarbicanAPI - Spec definition for the API services of
this Barbican deployment
properties:
containerImage:
description: ContainerImage - Barbican Container Image URL (will
Expand Down Expand Up @@ -367,8 +367,8 @@ spec:
- containerImage
type: object
barbicanKeystoneListener:
description: BarbicanKeystoneListenerTemplate defines common Spec
elements for the KeystoneListener process
description: BarbicanKeystoneListener - Spec definition for the KeystoneListener
service of this Barbican deployment
properties:
containerImage:
description: ContainerImage - Barbican Container Image URL (will
Expand Down Expand Up @@ -472,8 +472,8 @@ spec:
- containerImage
type: object
barbicanWorker:
description: BarbicanWorkerTemplate defines common Spec elements for
the Worker process
description: BarbicanWorker - Spec definition for the Worker service
of this Barbican deployment
properties:
containerImage:
description: ContainerImage - Barbican Container Image URL (will
Expand Down
12 changes: 12 additions & 0 deletions api/v1beta1/barbican_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,33 @@ const (
type BarbicanSpec struct {
BarbicanSpecBase `json:",inline"`

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

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

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

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

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

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

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

Expand Down
12 changes: 6 additions & 6 deletions config/crd/bases/barbican.openstack.org_barbicans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ spec:
description: BarbicanSpec defines the desired state of Barbican
properties:
barbicanAPI:
description: BarbicanAPITemplate defines the input parameters for
the Barbican API service
description: BarbicanAPI - Spec definition for the API services of
this Barbican deployment
properties:
containerImage:
description: ContainerImage - Barbican Container Image URL (will
Expand Down Expand Up @@ -367,8 +367,8 @@ spec:
- containerImage
type: object
barbicanKeystoneListener:
description: BarbicanKeystoneListenerTemplate defines common Spec
elements for the KeystoneListener process
description: BarbicanKeystoneListener - Spec definition for the KeystoneListener
service of this Barbican deployment
properties:
containerImage:
description: ContainerImage - Barbican Container Image URL (will
Expand Down Expand Up @@ -472,8 +472,8 @@ spec:
- containerImage
type: object
barbicanWorker:
description: BarbicanWorkerTemplate defines common Spec elements for
the Worker process
description: BarbicanWorker - Spec definition for the Worker service
of this Barbican deployment
properties:
containerImage:
description: ContainerImage - Barbican Container Image URL (will
Expand Down

0 comments on commit eebfdec

Please sign in to comment.