Skip to content

Commit

Permalink
Fixed the netreach target configuration not taking effect
Browse files Browse the repository at this point in the history
Signed-off-by: ii2day <ji.li@daocloud.io>
  • Loading branch information
ii2day committed Sep 13, 2023
1 parent 885761c commit 5303d4a
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions pkg/k8s/apis/kdoctor.io/v1beta1/netreach_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,32 @@ type NetReachTarget struct {
IPv6 *bool `json:"ipv6,omitempty"`

// +kubebuilder:default=true
Endpoint bool `json:"endpoint,omitempty"`
// +kubebuilder:validation:Optional
Endpoint bool `json:"endpoint"`

// +kubebuilder:default=false
MultusInterface bool `json:"multusInterface,omitempty"`
// +kubebuilder:validation:Optional
MultusInterface bool `json:"multusInterface"`

// +kubebuilder:default=true
ClusterIP bool `json:"clusterIP,omitempty"`
// +kubebuilder:validation:Optional
ClusterIP bool `json:"clusterIP"`

// +kubebuilder:default=true
NodePort bool `json:"nodePort,omitempty"`
// +kubebuilder:validation:Optional
NodePort bool `json:"nodePort"`

// +kubebuilder:default=false
LoadBalancer bool `json:"loadBalancer,omitempty"`
// +kubebuilder:validation:Optional
LoadBalancer bool `json:"loadBalancer"`

// +kubebuilder:default=false
Ingress bool `json:"ingress,omitempty"`
// +kubebuilder:validation:Optional
Ingress bool `json:"ingress"`

// +kubebuilder:default=false
// +kubebuilder:validation:Optional
EnableLatencyMetric bool `json:"enableLatencyMetric,omitempty"`
EnableLatencyMetric bool `json:"enableLatencyMetric"`
}

// scope(Namespaced or Cluster)
Expand Down

0 comments on commit 5303d4a

Please sign in to comment.