We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d1e194 commit bb59ad6Copy full SHA for bb59ad6
operator/apis/http/v1alpha1/httpscaledobject_types.go
@@ -31,10 +31,10 @@ type ScaleTargetRef struct {
31
// The name of the service to route to
32
Service string `json:"service"`
33
// The port to route to
34
- // +optional
+ // +kubebuilder:validation:XValidation:rule=!has(self.PortName) && has(self.Port)
35
Port int32 `json:"port,omitempty"`
36
// The port to route to referenced by name
37
+ // +kubebuilder:validation:XValidation:rule=!has(self.Port) && has(self.PortName)
38
PortName string `json:"portName,omitempty"`
39
}
40
0 commit comments