Skip to content

Commit

Permalink
Merge pull request #249 from dprince/api_fixes
Browse files Browse the repository at this point in the history
Mark controlNetworkName/storageRequest as optional
  • Loading branch information
openshift-merge-bot[bot] authored Nov 20, 2024
2 parents 9ce3c64 + ee4deb9 commit 5151e76
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 12 deletions.
2 changes: 0 additions & 2 deletions api/bases/designate.openstack.org_designatebackendbind9s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ spec:
type: string
required:
- containerImage
- controlNetworkName
- storageRequest
type: object
status:
description: DesignateBackendbind9Status defines the observed state of
Expand Down
3 changes: 0 additions & 3 deletions api/bases/designate.openstack.org_designates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,6 @@ spec:
type: string
required:
- containerImage
- controlNetworkName
- storageRequest
type: object
designateCentral:
description: DesignateCentral - Spec definition for the Central service
Expand Down Expand Up @@ -1496,7 +1494,6 @@ spec:
- designateBackendbind9
- designateCentral
- designateMdns
- designateNetworkAttachment
- designateProducer
- designateWorker
- rabbitMqClusterName
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/designate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ type DesignateSpecBase struct {
// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Resources corev1.ResourceRequirements `json:"resources,omitempty"`

// +kubebuilder:validation:Required
// +kubebuilder:validation:Optional
// +kubebuilder:default=designate
// DesignateNetworkAttachment is a NetworkAttachment resource name for the Designate Control Network
DesignateNetworkAttachment string `json:"designateNetworkAttachment"`
Expand Down
3 changes: 2 additions & 1 deletion api/v1beta1/designatebackendbind9_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ type DesignateBackendbind9SpecBase struct {
CustomBindOptions []string `json:"customBindOptions,omitempty"`

// +kubebuilder:default="designate"
// +kubebuilder:validation:Optional
// ControlNetworkName - specify which network attachment is to be used for control, notifys and zone transfers.
ControlNetworkName string `json:"controlNetworkName"`

// +kubebuilder:validation:Optional
// StorageClass
StorageClass string `json:"storageClass,omitempty"`

// +kubebuilder:validation:Required
// +kubebuilder:validation:Optional
// StorageRequest
StorageRequest string `json:"storageRequest"`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ spec:
type: string
required:
- containerImage
- controlNetworkName
- storageRequest
type: object
status:
description: DesignateBackendbind9Status defines the observed state of
Expand Down
3 changes: 0 additions & 3 deletions config/crd/bases/designate.openstack.org_designates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,6 @@ spec:
type: string
required:
- containerImage
- controlNetworkName
- storageRequest
type: object
designateCentral:
description: DesignateCentral - Spec definition for the Central service
Expand Down Expand Up @@ -1496,7 +1494,6 @@ spec:
- designateBackendbind9
- designateCentral
- designateMdns
- designateNetworkAttachment
- designateProducer
- designateWorker
- rabbitMqClusterName
Expand Down

0 comments on commit 5151e76

Please sign in to comment.