You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: operator/v1alpha1/type.go
+26-17Lines changed: 26 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ package v1alpha1
19
19
import (
20
20
corev1 "k8s.io/api/core/v1"
21
21
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22
+
"k8s.io/apimachinery/pkg/util/intstr"
22
23
)
23
24
24
25
// +genclient
@@ -59,7 +60,7 @@ const (
59
60
typeHTTPSourcestruct {
60
61
// URL specifies the URL of the CRD tarball resource.
61
62
// +required
62
-
URLstring`json:"url,omitempty"`
63
+
URLstring`json:"url"`
63
64
64
65
// Proxy specifies the configuration of a proxy server to use when downloading the CRD tarball.
65
66
// When set, the operator will use the configuration to determine how to establish a connection to the proxy to fetch the tarball from the URL specified above.
@@ -179,7 +180,7 @@ type ImageRegistry struct {
179
180
typeKarmadaComponentsstruct {
180
181
// Etcd holds configuration for etcd.
181
182
// +required
182
-
Etcd*Etcd`json:"etcd,omitempty"`
183
+
Etcd*Etcd`json:"etcd"`
183
184
184
185
// KarmadaAPIServer holds settings to kube-apiserver component. Currently, kube-apiserver
185
186
// is used as the apiserver of karmada. we had the same experience as k8s apiserver.
@@ -291,21 +292,6 @@ type ExternalEtcd struct {
291
292
// +required
292
293
Endpoints []string`json:"endpoints"`
293
294
294
-
// CAData is an SSL Certificate Authority file used to secure etcd communication.
295
-
// Required if using a TLS connection.
296
-
// Deprecated: This field is deprecated and will be removed in a future version. Use SecretRef for providing client connection credentials.
297
-
CAData []byte`json:"caData,omitempty"`
298
-
299
-
// CertData is an SSL certification file used to secure etcd communication.
300
-
// Required if using a TLS connection.
301
-
// Deprecated: This field is deprecated and will be removed in a future version. Use SecretRef for providing client connection credentials.
302
-
CertData []byte`json:"certData,omitempty"`
303
-
304
-
// KeyData is an SSL key file used to secure etcd communication.
305
-
// Required if using a TLS connection.
306
-
// Deprecated: This field is deprecated and will be removed in a future version. Use SecretRef for providing client connection credentials.
307
-
KeyData []byte`json:"keyData,omitempty"`
308
-
309
295
// SecretRef references a Kubernetes secret containing the etcd connection credentials.
310
296
// The secret must contain the following data keys:
311
297
// ca.crt: The Certificate Authority (CA) certificate data.
// Image allows to customize the image used for components.
@@ -793,6 +784,24 @@ type LocalSecretReference struct {
793
784
Namestring`json:"name,omitempty"`
794
785
}
795
786
787
+
// PodDisruptionBudgetConfig defines a subset of PodDisruptionBudgetSpec fields
788
+
// that users can configure for their control plane components.
789
+
// +kubebuilder:validation:XValidation:rule="has(self.minAvailable) || has(self.maxUnavailable)",message="either minAvailable or maxUnavailable must be set"
790
+
// +kubebuilder:validation:XValidation:rule="!(has(self.minAvailable) && has(self.maxUnavailable))",message="minAvailable and maxUnavailable are mutually exclusive"
791
+
typePodDisruptionBudgetConfigstruct {
792
+
// MinAvailable specifies the minimum number or percentage of pods
0 commit comments