Merge pull request #5769 from RainbowMango/pr_restrict_operator_service_type
Restrict supported service types of Karamda APIServer supported by karmada-operator
This commit is contained in:
commit
b270d02ef4
|
@ -2539,9 +2539,15 @@ spec:
|
|||
Defaults to "10.96.0.0/12".
|
||||
type: string
|
||||
serviceType:
|
||||
default: ClusterIP
|
||||
description: |-
|
||||
ServiceType represents the service type of karmada apiserver.
|
||||
it is ClusterIP by default.
|
||||
ServiceType represents the service type of Karmada API server.
|
||||
Valid options are: "ClusterIP", "NodePort", "LoadBalancer".
|
||||
Defaults to "ClusterIP".
|
||||
enum:
|
||||
- ClusterIP
|
||||
- NodePort
|
||||
- LoadBalancer
|
||||
type: string
|
||||
type: object
|
||||
karmadaAggregatedAPIServer:
|
||||
|
|
|
@ -2539,9 +2539,15 @@ spec:
|
|||
Defaults to "10.96.0.0/12".
|
||||
type: string
|
||||
serviceType:
|
||||
default: ClusterIP
|
||||
description: |-
|
||||
ServiceType represents the service type of karmada apiserver.
|
||||
it is ClusterIP by default.
|
||||
ServiceType represents the service type of Karmada API server.
|
||||
Valid options are: "ClusterIP", "NodePort", "LoadBalancer".
|
||||
Defaults to "ClusterIP".
|
||||
enum:
|
||||
- ClusterIP
|
||||
- NodePort
|
||||
- LoadBalancer
|
||||
type: string
|
||||
type: object
|
||||
karmadaAggregatedAPIServer:
|
||||
|
|
|
@ -277,8 +277,12 @@ type KarmadaAPIServer struct {
|
|||
// +optional
|
||||
ServiceSubnet *string `json:"serviceSubnet,omitempty"`
|
||||
|
||||
// ServiceType represents the service type of karmada apiserver.
|
||||
// it is ClusterIP by default.
|
||||
// ServiceType represents the service type of Karmada API server.
|
||||
// Valid options are: "ClusterIP", "NodePort", "LoadBalancer".
|
||||
// Defaults to "ClusterIP".
|
||||
//
|
||||
// +kubebuilder:default="ClusterIP"
|
||||
// +kubebuilder:validation:Enum=ClusterIP;NodePort;LoadBalancer
|
||||
// +optional
|
||||
ServiceType corev1.ServiceType `json:"serviceType,omitempty"`
|
||||
|
||||
|
|
Loading…
Reference in New Issue