Skip to content

Commit

Permalink
Merge pull request #3514 from noironetworks/aci-6041-rke-1.5.6
Browse files Browse the repository at this point in the history
[v1.5] Add ACI CNI 6.0.4.1 variables
  • Loading branch information
chiukapoor authored Mar 6, 2024
2 parents c360aa8 + f48c854 commit 8ce1024
Show file tree
Hide file tree
Showing 5 changed files with 1,819 additions and 765 deletions.
12 changes: 12 additions & 0 deletions cluster/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ const (
DefaultAciEnableOpflexAgentReconnect = "false"
DefaultAciOpflexOpensslCompat = "false"
DefaultAciTolerationSeconds = "600"
DefaultAciDisableHppRendering = "false"
DefaultAciApicConnectionRetryLimit = "5"
DefaultAciTaintNotReadyNode = "false"
DefaultAciDropLogDisableEvents = "false"
KubeAPIArgAdmissionControlConfigFile = "admission-control-config-file"
DefaultKubeAPIArgAdmissionControlConfigFileValue = "/etc/kubernetes/admission.yaml"

Expand Down Expand Up @@ -917,6 +921,10 @@ func (c *Cluster) setClusterNetworkDefaults() {
setDefaultIfEmpty(&c.Network.AciNetworkProvider.EnableOpflexAgentReconnect, DefaultAciEnableOpflexAgentReconnect)
setDefaultIfEmpty(&c.Network.AciNetworkProvider.OpflexOpensslCompat, DefaultAciOpflexOpensslCompat)
setDefaultIfEmpty(&c.Network.AciNetworkProvider.TolerationSeconds, DefaultAciTolerationSeconds)
setDefaultIfEmpty(&c.Network.AciNetworkProvider.DisableHppRendering, DefaultAciDisableHppRendering)
setDefaultIfEmpty(&c.Network.AciNetworkProvider.ApicConnectionRetryLimit, DefaultAciApicConnectionRetryLimit)
setDefaultIfEmpty(&c.Network.AciNetworkProvider.TaintNotReadyNode, DefaultAciTaintNotReadyNode)
setDefaultIfEmpty(&c.Network.AciNetworkProvider.DropLogDisableEvents, DefaultAciDropLogDisableEvents)
networkPluginConfigDefaultsMap[AciOVSMemoryLimit] = c.Network.AciNetworkProvider.OVSMemoryLimit
networkPluginConfigDefaultsMap[AciOVSMemoryRequest] = c.Network.AciNetworkProvider.OVSMemoryRequest
networkPluginConfigDefaultsMap[AciImagePullPolicy] = c.Network.AciNetworkProvider.ImagePullPolicy
Expand Down Expand Up @@ -1019,6 +1027,10 @@ func (c *Cluster) setClusterNetworkDefaults() {
networkPluginConfigDefaultsMap[AciEnableOpflexAgentReconnect] = c.Network.AciNetworkProvider.EnableOpflexAgentReconnect
networkPluginConfigDefaultsMap[AciOpflexOpensslCompat] = c.Network.AciNetworkProvider.OpflexOpensslCompat
networkPluginConfigDefaultsMap[AciTolerationSeconds] = c.Network.AciNetworkProvider.TolerationSeconds
networkPluginConfigDefaultsMap[AciDisableHppRendering] = c.Network.AciNetworkProvider.DisableHppRendering
networkPluginConfigDefaultsMap[AciApicConnectionRetryLimit] = c.Network.AciNetworkProvider.ApicConnectionRetryLimit
networkPluginConfigDefaultsMap[AciTaintNotReadyNode] = c.Network.AciNetworkProvider.TaintNotReadyNode
networkPluginConfigDefaultsMap[AciDropLogDisableEvents] = c.Network.AciNetworkProvider.DropLogDisableEvents
}
for k, v := range networkPluginConfigDefaultsMap {
setDefaultIfEmptyMapValue(c.Network.Options, k, v)
Expand Down
12 changes: 12 additions & 0 deletions cluster/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ const (
AciEnableOpflexAgentReconnect = "aci_enable_opflex_agent_reconnect"
AciOpflexOpensslCompat = "aci_opflex_openssl_compat"
AciTolerationSeconds = "aci_toleration_seconds"
AciDisableHppRendering = "aci_disable_hpp_rendering"
AciApicConnectionRetryLimit = "aci_apic_connection_retry_limit"
AciTaintNotReadyNode = "aci_taint_not_ready_node"
AciDropLogDisableEvents = "aci_drop_log_disable_events"
// List of map keys to be used with network templates

// EtcdEndpoints is the server address for Etcd, used by calico
Expand Down Expand Up @@ -348,6 +352,10 @@ const (
OpflexOpensslCompat = "OpflexOpensslCompat"
NodeSnatRedirectExclude = "NodeSnatRedirectExclude"
TolerationSeconds = "TolerationSeconds"
DisableHppRendering = "DisableHppRendering"
ApicConnectionRetryLimit = "ApicConnectionRetryLimit"
TaintNotReadyNode = "TaintNotReadyNode"
DropLogDisableEvents = "DropLogDisableEvents"
)

type IPPool struct {
Expand Down Expand Up @@ -712,6 +720,10 @@ func (c *Cluster) doAciDeploy(ctx context.Context, data map[string]interface{})
EnableOpflexAgentReconnect: c.Network.Options[AciEnableOpflexAgentReconnect],
OpflexOpensslCompat: c.Network.Options[AciOpflexOpensslCompat],
TolerationSeconds: c.Network.Options[AciTolerationSeconds],
DisableHppRendering: c.Network.Options[AciDisableHppRendering],
ApicConnectionRetryLimit: c.Network.Options[AciApicConnectionRetryLimit],
TaintNotReadyNode: c.Network.Options[AciTaintNotReadyNode],
DropLogDisableEvents: c.Network.Options[AciDropLogDisableEvents],
NodeSnatRedirectExclude: c.Network.AciNetworkProvider.NodeSnatRedirectExclude,
AciCniDeployContainer: c.SystemImages.AciCniDeployContainer,
AciHostContainer: c.SystemImages.AciHostContainer,
Expand Down
4 changes: 2 additions & 2 deletions data/bindata.go

Large diffs are not rendered by default.

2,552 changes: 1,789 additions & 763 deletions data/data.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions types/rke_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,10 @@ type AciNetworkProvider struct {
OpflexOpensslCompat string `yaml:"opflex_openssl_compat,omitempty" json:"opflexOpensslCompat,omitempty"`
NodeSnatRedirectExclude []map[string]string `yaml:"node_snat_redirect_exclude,omitempty" json:"nodeSnatRedirectExclude,omitempty"`
TolerationSeconds string `yaml:"toleration_seconds,omitempty" json:"tolerationSeconds,omitempty"`
DisableHppRendering string `yaml:"disable_hpp_rendering,omitempty" json:"disableHppRendering,omitempty"`
ApicConnectionRetryLimit string `yaml:"apic_connection_retry_limit,omitempty" json:"apicConnectionRetryLimit,omitempty"`
TaintNotReadyNode string `yaml:"taint_not_ready_node,omitempty" json:"taintNotReadyNode,omitempty"`
DropLogDisableEvents string `yaml:"drop_log_disable_events,omitempty" json:"dropLogDisableEvents,omitempty"`
}

type KubernetesServicesOptions struct {
Expand Down

0 comments on commit 8ce1024

Please sign in to comment.