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".
|
Defaults to "10.96.0.0/12".
|
||||||
type: string
|
type: string
|
||||||
serviceType:
|
serviceType:
|
||||||
|
default: ClusterIP
|
||||||
description: |-
|
description: |-
|
||||||
ServiceType represents the service type of karmada apiserver.
|
ServiceType represents the service type of Karmada API server.
|
||||||
it is ClusterIP by default.
|
Valid options are: "ClusterIP", "NodePort", "LoadBalancer".
|
||||||
|
Defaults to "ClusterIP".
|
||||||
|
enum:
|
||||||
|
- ClusterIP
|
||||||
|
- NodePort
|
||||||
|
- LoadBalancer
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
karmadaAggregatedAPIServer:
|
karmadaAggregatedAPIServer:
|
||||||
|
|
|
@ -2539,9 +2539,15 @@ spec:
|
||||||
Defaults to "10.96.0.0/12".
|
Defaults to "10.96.0.0/12".
|
||||||
type: string
|
type: string
|
||||||
serviceType:
|
serviceType:
|
||||||
|
default: ClusterIP
|
||||||
description: |-
|
description: |-
|
||||||
ServiceType represents the service type of karmada apiserver.
|
ServiceType represents the service type of Karmada API server.
|
||||||
it is ClusterIP by default.
|
Valid options are: "ClusterIP", "NodePort", "LoadBalancer".
|
||||||
|
Defaults to "ClusterIP".
|
||||||
|
enum:
|
||||||
|
- ClusterIP
|
||||||
|
- NodePort
|
||||||
|
- LoadBalancer
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
karmadaAggregatedAPIServer:
|
karmadaAggregatedAPIServer:
|
||||||
|
|
|
@ -277,8 +277,12 @@ type KarmadaAPIServer struct {
|
||||||
// +optional
|
// +optional
|
||||||
ServiceSubnet *string `json:"serviceSubnet,omitempty"`
|
ServiceSubnet *string `json:"serviceSubnet,omitempty"`
|
||||||
|
|
||||||
// ServiceType represents the service type of karmada apiserver.
|
// ServiceType represents the service type of Karmada API server.
|
||||||
// it is ClusterIP by default.
|
// Valid options are: "ClusterIP", "NodePort", "LoadBalancer".
|
||||||
|
// Defaults to "ClusterIP".
|
||||||
|
//
|
||||||
|
// +kubebuilder:default="ClusterIP"
|
||||||
|
// +kubebuilder:validation:Enum=ClusterIP;NodePort;LoadBalancer
|
||||||
// +optional
|
// +optional
|
||||||
ServiceType corev1.ServiceType `json:"serviceType,omitempty"`
|
ServiceType corev1.ServiceType `json:"serviceType,omitempty"`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue