Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions operator/v1/0000_70_cluster-network-operator_01.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,16 @@ spec:
description: ovnKubernetesConfig configures the ovn-kubernetes plugin.
type: object
properties:
egressIPConfig:
description: egressIPConfig holds the configuration for EgressIP options.
type: object
properties:
reachabilityTotalTimeoutSeconds:
description: reachabilityTotalTimeout configures the EgressIP node reachability check total timeout in seconds. If the EgressIP node cannot be reached within this timeout, the node is declared down. Setting a large value may cause the EgressIP feature to react slowly to node changes. In particular, it may react slowly for EgressIP nodes that really have a genuine problem and are unreachable. When omitted, this means the user has no opinion and the platform is left to choose a reasonable default, which is subject to change over time. The current default is 1 second. A value of 0 disables the EgressIP node's reachability check.
type: integer
format: int32
maximum: 60
minimum: 0
gatewayConfig:
description: gatewayConfig holds the configuration for node gateway options.
type: object
Expand Down
18 changes: 18 additions & 0 deletions operator/v1/types_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ type OVNKubernetesConfig struct {
// Default is fd98::/48
// +optional
V6InternalSubnet string `json:"v6InternalSubnet,omitempty"`
// egressIPConfig holds the configuration for EgressIP options.
// +optional
EgressIPConfig EgressIPConfig `json:"egressIPConfig,omitempty"`
}

type HybridOverlayConfig struct {
Expand Down Expand Up @@ -549,6 +552,21 @@ type ProxyConfig struct {
ProxyArguments map[string]ProxyArgumentList `json:"proxyArguments,omitempty"`
}

// EgressIPConfig defines the configuration knobs for egressip
type EgressIPConfig struct {
// reachabilityTotalTimeout configures the EgressIP node reachability check total timeout in seconds.
// If the EgressIP node cannot be reached within this timeout, the node is declared down.
// Setting a large value may cause the EgressIP feature to react slowly to node changes.
// In particular, it may react slowly for EgressIP nodes that really have a genuine problem and are unreachable.
// When omitted, this means the user has no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The current default is 1 second.
// A value of 0 disables the EgressIP node's reachability check.
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=60
// +optional
ReachabilityTotalTimeoutSeconds *uint32 `json:"reachabilityTotalTimeoutSeconds,omitempty"`
}

const (
// NetworkTypeOpenShiftSDN means the openshift-sdn plugin will be configured
NetworkTypeOpenShiftSDN NetworkType = "OpenShiftSDN"
Expand Down
22 changes: 22 additions & 0 deletions operator/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions operator/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.