Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #883 from fao89/minitems
Browse files Browse the repository at this point in the history
Ensure required lists have one item at least
  • Loading branch information
openshift-merge-bot[bot] authored May 22, 2024
2 parents 1347a01 + 965757f commit 52f5c64
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ spec:
nodeSets:
items:
type: string
minItems: 1
type: array
servicesOverride:
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
contents:
items:
type: string
minItems: 1
type: array
issuer:
type: string
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/openstackdataplanedeployment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
// OpenStackDataPlaneDeploymentSpec defines the desired state of OpenStackDataPlaneDeployment
type OpenStackDataPlaneDeploymentSpec struct {
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinItems:=1
// NodeSets is the list of NodeSets deployed
NodeSets []string `json:"nodeSets"`

Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/openstackdataplaneservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type OpenstackDataPlaneServiceCert struct {
// Contents of the certificate
// This is a list of strings for properties that are needed in the cert
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinItems:=1
Contents []string `json:"contents"`

// Networks to include in SNI for the cert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ spec:
nodeSets:
items:
type: string
minItems: 1
type: array
servicesOverride:
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
contents:
items:
type: string
minItems: 1
type: array
issuer:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ spec:
path: conditions
x-descriptors:
- urn:alm:descriptor:io.kubernetes.conditions
- description: Deployed
displayName: Deployed
path: deployed
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
version: v1beta1
- description: OpenStackDataPlaneService is the Schema for the openstackdataplaneservices
API OpenStackDataPlaneService name must be a valid RFC1123 as it is used in
Expand Down

0 comments on commit 52f5c64

Please sign in to comment.