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: sdk/apis/operator/v1alpha1/frontproxy_types.go
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ import (
22
22
)
23
23
24
24
// FrontProxySpec defines the desired state of FrontProxy.
25
+
// +kubebuilder:validation:XValidation:rule="!(has(self.externalHostname) && has(self.external.hostname))",message="Cannot set both ExternalHostname (deprecated) and External.hostname. Use External.hostname only."
25
26
typeFrontProxySpecstruct {
26
27
// RootShard configures the kcp root shard that this front-proxy instance should connect to.
27
28
RootShardRootShardConfig`json:"rootShard"`
@@ -38,8 +39,12 @@ type FrontProxySpec struct {
38
39
// Optional: Image defines the image to use. Defaults to the latest versioned image during the release of kcp-operator.
39
40
Image*ImageSpec`json:"image,omitempty"`
40
41
// Optional: ExternalHostname under which the FrontProxy can be reached. If empty, the RootShard's external hostname will be used only.
42
+
// Deprecated: use spec.External for configuration of external access instead.
// Optional: External configures how this front-proxy should be exposed to the outside world. If empty, the RootShard's external hostname will be used only.
46
+
ExternalExternalConfig`json:"external,omitempty"`
47
+
43
48
// Optional: ServiceTemplate configures the Kubernetes Service created for this front-proxy instance.
0 commit comments