mirror of
https://gitee.com/devstar/devstar-devcontainer-operator
synced 2025-07-01 02:49:16 +00:00
Updated port num validation
This commit is contained in:
parent
8f3902a8bf
commit
9e3fe2b00a
@ -65,7 +65,7 @@ type StatefulSetSpec struct {
|
|||||||
Image string `json:"image"`
|
Image string `json:"image"`
|
||||||
Command []string `json:"command"`
|
Command []string `json:"command"`
|
||||||
|
|
||||||
// +kubebuilder:validation:Minimum=0
|
// +kubebuilder:validation:Minimum=1
|
||||||
// +optional
|
// +optional
|
||||||
ContainerPort uint16 `json:"containerPort,omitempty"`
|
ContainerPort uint16 `json:"containerPort,omitempty"`
|
||||||
}
|
}
|
||||||
@ -77,7 +77,7 @@ type ServiceSpec struct {
|
|||||||
// +optional
|
// +optional
|
||||||
NodePort uint16 `json:"nodePort,omitempty"`
|
NodePort uint16 `json:"nodePort,omitempty"`
|
||||||
|
|
||||||
// +kubebuilder:validation:Minimum=0
|
// +kubebuilder:validation:Minimum=1
|
||||||
// +optional
|
// +optional
|
||||||
ServicePort uint16 `json:"servicePort,omitempty"`
|
ServicePort uint16 `json:"servicePort,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ spec:
|
|||||||
minimum: 30000
|
minimum: 30000
|
||||||
type: integer
|
type: integer
|
||||||
servicePort:
|
servicePort:
|
||||||
minimum: 0
|
minimum: 1
|
||||||
type: integer
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
startingDeadlineSeconds:
|
startingDeadlineSeconds:
|
||||||
@ -72,7 +72,7 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
type: array
|
type: array
|
||||||
containerPort:
|
containerPort:
|
||||||
minimum: 0
|
minimum: 1
|
||||||
type: integer
|
type: integer
|
||||||
image:
|
image:
|
||||||
type: string
|
type: string
|
||||||
|
Loading…
Reference in New Issue
Block a user