mirror of
https://github.com/rancher/rke.git
synced 2025-08-12 04:03:01 +00:00
Merge pull request #3220 from noironetworks/backport-rke-aci-5236
[Backport]: Add new variables for ACI-CNI 5.2.3.6
This commit is contained in:
commit
dc7124c2f0
@ -115,6 +115,10 @@ const (
|
|||||||
DefaultAciNoWaitForServiceEpReadiness = "false"
|
DefaultAciNoWaitForServiceEpReadiness = "false"
|
||||||
DefaultAciAddExternalSubnetsToRdconfig = "false"
|
DefaultAciAddExternalSubnetsToRdconfig = "false"
|
||||||
DefaultAciServiceGraphEndpointAddDelay = "0"
|
DefaultAciServiceGraphEndpointAddDelay = "0"
|
||||||
|
DefaultAciHppOptimization = "false"
|
||||||
|
DefaultAciSleepTimeSnatGlobalInfoSync = "0"
|
||||||
|
DefaultAciOpflexAgentOpflexAsyncjsonEnabled = "false"
|
||||||
|
DefaultAciOpflexAgentOvsAsyncjsonEnabled = "false"
|
||||||
|
|
||||||
KubeAPIArgAdmissionControlConfigFile = "admission-control-config-file"
|
KubeAPIArgAdmissionControlConfigFile = "admission-control-config-file"
|
||||||
DefaultKubeAPIArgAdmissionControlConfigFileValue = "/etc/kubernetes/admission.yaml"
|
DefaultKubeAPIArgAdmissionControlConfigFileValue = "/etc/kubernetes/admission.yaml"
|
||||||
@ -679,6 +683,10 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
|||||||
AciNoWaitForServiceEpReadiness: DefaultAciNoWaitForServiceEpReadiness,
|
AciNoWaitForServiceEpReadiness: DefaultAciNoWaitForServiceEpReadiness,
|
||||||
AciAddExternalSubnetsToRdconfig: DefaultAciAddExternalSubnetsToRdconfig,
|
AciAddExternalSubnetsToRdconfig: DefaultAciAddExternalSubnetsToRdconfig,
|
||||||
AciServiceGraphEndpointAddDelay: DefaultAciServiceGraphEndpointAddDelay,
|
AciServiceGraphEndpointAddDelay: DefaultAciServiceGraphEndpointAddDelay,
|
||||||
|
AciHppOptimization: DefaultAciHppOptimization,
|
||||||
|
AciSleepTimeSnatGlobalInfoSync: DefaultAciSleepTimeSnatGlobalInfoSync,
|
||||||
|
AciOpflexAgentOpflexAsyncjsonEnabled: DefaultAciOpflexAgentOpflexAsyncjsonEnabled,
|
||||||
|
AciOpflexAgentOvsAsyncjsonEnabled: DefaultAciOpflexAgentOvsAsyncjsonEnabled,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if c.Network.CalicoNetworkProvider != nil {
|
if c.Network.CalicoNetworkProvider != nil {
|
||||||
@ -738,6 +746,10 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
|||||||
setDefaultIfEmpty(&c.Network.AciNetworkProvider.NoWaitForServiceEpReadiness, DefaultAciNoWaitForServiceEpReadiness)
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.NoWaitForServiceEpReadiness, DefaultAciNoWaitForServiceEpReadiness)
|
||||||
setDefaultIfEmpty(&c.Network.AciNetworkProvider.AddExternalSubnetsToRdconfig, DefaultAciAddExternalSubnetsToRdconfig)
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.AddExternalSubnetsToRdconfig, DefaultAciAddExternalSubnetsToRdconfig)
|
||||||
setDefaultIfEmpty(&c.Network.AciNetworkProvider.ServiceGraphEndpointAddDelay, DefaultAciServiceGraphEndpointAddDelay)
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.ServiceGraphEndpointAddDelay, DefaultAciServiceGraphEndpointAddDelay)
|
||||||
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.HppOptimization, DefaultAciHppOptimization)
|
||||||
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.SleepTimeSnatGlobalInfoSync, DefaultAciSleepTimeSnatGlobalInfoSync)
|
||||||
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.OpflexAgentOpflexAsyncjsonEnabled, DefaultAciOpflexAgentOpflexAsyncjsonEnabled)
|
||||||
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.OpflexAgentOvsAsyncjsonEnabled, DefaultAciOpflexAgentOvsAsyncjsonEnabled)
|
||||||
networkPluginConfigDefaultsMap[AciOVSMemoryLimit] = c.Network.AciNetworkProvider.OVSMemoryLimit
|
networkPluginConfigDefaultsMap[AciOVSMemoryLimit] = c.Network.AciNetworkProvider.OVSMemoryLimit
|
||||||
networkPluginConfigDefaultsMap[AciImagePullPolicy] = c.Network.AciNetworkProvider.ImagePullPolicy
|
networkPluginConfigDefaultsMap[AciImagePullPolicy] = c.Network.AciNetworkProvider.ImagePullPolicy
|
||||||
networkPluginConfigDefaultsMap[AciPBRTrackingNonSnat] = c.Network.AciNetworkProvider.PBRTrackingNonSnat
|
networkPluginConfigDefaultsMap[AciPBRTrackingNonSnat] = c.Network.AciNetworkProvider.PBRTrackingNonSnat
|
||||||
@ -780,6 +792,10 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
|||||||
networkPluginConfigDefaultsMap[AciNoWaitForServiceEpReadiness] = c.Network.AciNetworkProvider.NoWaitForServiceEpReadiness
|
networkPluginConfigDefaultsMap[AciNoWaitForServiceEpReadiness] = c.Network.AciNetworkProvider.NoWaitForServiceEpReadiness
|
||||||
networkPluginConfigDefaultsMap[AciAddExternalSubnetsToRdconfig] = c.Network.AciNetworkProvider.AddExternalSubnetsToRdconfig
|
networkPluginConfigDefaultsMap[AciAddExternalSubnetsToRdconfig] = c.Network.AciNetworkProvider.AddExternalSubnetsToRdconfig
|
||||||
networkPluginConfigDefaultsMap[AciServiceGraphEndpointAddDelay] = c.Network.AciNetworkProvider.ServiceGraphEndpointAddDelay
|
networkPluginConfigDefaultsMap[AciServiceGraphEndpointAddDelay] = c.Network.AciNetworkProvider.ServiceGraphEndpointAddDelay
|
||||||
|
networkPluginConfigDefaultsMap[AciHppOptimization] = c.Network.AciNetworkProvider.HppOptimization
|
||||||
|
networkPluginConfigDefaultsMap[AciSleepTimeSnatGlobalInfoSync] = c.Network.AciNetworkProvider.SleepTimeSnatGlobalInfoSync
|
||||||
|
networkPluginConfigDefaultsMap[AciOpflexAgentOpflexAsyncjsonEnabled] = c.Network.AciNetworkProvider.OpflexAgentOpflexAsyncjsonEnabled
|
||||||
|
networkPluginConfigDefaultsMap[AciOpflexAgentOvsAsyncjsonEnabled] = c.Network.AciNetworkProvider.OpflexAgentOvsAsyncjsonEnabled
|
||||||
networkPluginConfigDefaultsMap[AciSystemIdentifier] = c.Network.AciNetworkProvider.SystemIdentifier
|
networkPluginConfigDefaultsMap[AciSystemIdentifier] = c.Network.AciNetworkProvider.SystemIdentifier
|
||||||
networkPluginConfigDefaultsMap[AciToken] = c.Network.AciNetworkProvider.Token
|
networkPluginConfigDefaultsMap[AciToken] = c.Network.AciNetworkProvider.Token
|
||||||
networkPluginConfigDefaultsMap[AciApicUserName] = c.Network.AciNetworkProvider.ApicUserName
|
networkPluginConfigDefaultsMap[AciApicUserName] = c.Network.AciNetworkProvider.ApicUserName
|
||||||
|
@ -150,6 +150,10 @@ const (
|
|||||||
AciNoWaitForServiceEpReadiness = "aci_no_wait_for_service_ep_readiness"
|
AciNoWaitForServiceEpReadiness = "aci_no_wait_for_service_ep_readiness"
|
||||||
AciAddExternalSubnetsToRdconfig = "aci_add_external_subnets_to_rdconfig"
|
AciAddExternalSubnetsToRdconfig = "aci_add_external_subnets_to_rdconfig"
|
||||||
AciServiceGraphEndpointAddDelay = "aci_service_graph_endpoint_add_delay"
|
AciServiceGraphEndpointAddDelay = "aci_service_graph_endpoint_add_delay"
|
||||||
|
AciHppOptimization = "aci_hpp_optimization"
|
||||||
|
AciSleepTimeSnatGlobalInfoSync = "aci_sleep_time_snat_global_info_sync"
|
||||||
|
AciOpflexAgentOpflexAsyncjsonEnabled = "aci_opflex_agent_opflex_asyncjson_enabled"
|
||||||
|
AciOpflexAgentOvsAsyncjsonEnabled = "aci_opflex_agent_ovs_asyncjson_enabled"
|
||||||
// List of map keys to be used with network templates
|
// List of map keys to be used with network templates
|
||||||
|
|
||||||
// EtcdEndpoints is the server address for Etcd, used by calico
|
// EtcdEndpoints is the server address for Etcd, used by calico
|
||||||
@ -290,6 +294,10 @@ const (
|
|||||||
AddExternalSubnetsToRdconfig = "AddExternalSubnetsToRdconfig"
|
AddExternalSubnetsToRdconfig = "AddExternalSubnetsToRdconfig"
|
||||||
ServiceGraphEndpointAddDelay = "ServiceGraphEndpointAddDelay"
|
ServiceGraphEndpointAddDelay = "ServiceGraphEndpointAddDelay"
|
||||||
ServiceGraphEndpointAddServices = "ServiceGraphEndpointAddServices"
|
ServiceGraphEndpointAddServices = "ServiceGraphEndpointAddServices"
|
||||||
|
HppOptimization = "HppOptimization"
|
||||||
|
SleepTimeSnatGlobalInfoSync = "SleepTimeSnatGlobalInfoSync"
|
||||||
|
OpflexAgentOpflexAsyncjsonEnabled = "OpflexAgentOpflexAsyncjsonEnabled"
|
||||||
|
OpflexAgentOvsAsyncjsonEnabled = "OpflexAgentOvsAsyncjsonEnabled"
|
||||||
OVSMemoryLimit = "OVSMemoryLimit"
|
OVSMemoryLimit = "OVSMemoryLimit"
|
||||||
NodeSubnet = "NodeSubnet"
|
NodeSubnet = "NodeSubnet"
|
||||||
NodeSelector = "NodeSelector"
|
NodeSelector = "NodeSelector"
|
||||||
@ -590,6 +598,10 @@ func (c *Cluster) doAciDeploy(ctx context.Context, data map[string]interface{})
|
|||||||
AddExternalSubnetsToRdconfig: c.Network.Options[AciAddExternalSubnetsToRdconfig],
|
AddExternalSubnetsToRdconfig: c.Network.Options[AciAddExternalSubnetsToRdconfig],
|
||||||
ServiceGraphEndpointAddDelay: c.Network.Options[AciServiceGraphEndpointAddDelay],
|
ServiceGraphEndpointAddDelay: c.Network.Options[AciServiceGraphEndpointAddDelay],
|
||||||
ServiceGraphEndpointAddServices: c.Network.AciNetworkProvider.ServiceGraphEndpointAddServices,
|
ServiceGraphEndpointAddServices: c.Network.AciNetworkProvider.ServiceGraphEndpointAddServices,
|
||||||
|
HppOptimization: c.Network.Options[AciHppOptimization],
|
||||||
|
SleepTimeSnatGlobalInfoSync: c.Network.Options[AciSleepTimeSnatGlobalInfoSync],
|
||||||
|
OpflexAgentOpflexAsyncjsonEnabled: c.Network.Options[AciOpflexAgentOpflexAsyncjsonEnabled],
|
||||||
|
OpflexAgentOvsAsyncjsonEnabled: c.Network.Options[AciOpflexAgentOvsAsyncjsonEnabled],
|
||||||
AciCniDeployContainer: c.SystemImages.AciCniDeployContainer,
|
AciCniDeployContainer: c.SystemImages.AciCniDeployContainer,
|
||||||
AciHostContainer: c.SystemImages.AciHostContainer,
|
AciHostContainer: c.SystemImages.AciHostContainer,
|
||||||
AciOpflexContainer: c.SystemImages.AciOpflexContainer,
|
AciOpflexContainer: c.SystemImages.AciOpflexContainer,
|
||||||
|
@ -667,6 +667,10 @@ type AciNetworkProvider struct {
|
|||||||
AddExternalSubnetsToRdconfig string `yaml:"add_external_subnets_to_rdconfig,omitempty" json:"addExternalSubnetsToRdconfig,omitempty"`
|
AddExternalSubnetsToRdconfig string `yaml:"add_external_subnets_to_rdconfig,omitempty" json:"addExternalSubnetsToRdconfig,omitempty"`
|
||||||
ServiceGraphEndpointAddDelay string `yaml:"service_graph_endpoint_add_delay,omitempty" json:"serviceGraphEndpointAddDelay,omitempty"`
|
ServiceGraphEndpointAddDelay string `yaml:"service_graph_endpoint_add_delay,omitempty" json:"serviceGraphEndpointAddDelay,omitempty"`
|
||||||
ServiceGraphEndpointAddServices []map[string]string `yaml:"service_graph_endpoint_add_services,omitempty" json:"serviceGraphEndpointAddServices,omitempty"`
|
ServiceGraphEndpointAddServices []map[string]string `yaml:"service_graph_endpoint_add_services,omitempty" json:"serviceGraphEndpointAddServices,omitempty"`
|
||||||
|
HppOptimization string `yaml:"hpp_optimization,omitempty" json:"hppOptimization,omitempty"`
|
||||||
|
SleepTimeSnatGlobalInfoSync string `yaml:"sleep_time_snat_global_info_sync,omitempty" json:"sleepTimeSnatGlobalInfoSync,omitempty"`
|
||||||
|
OpflexAgentOpflexAsyncjsonEnabled string `yaml:"opflex_agent_opflex_asyncjson_enabled,omitempty" json:"opflexAgentOpflexAsyncjsonEnabled,omitempty"`
|
||||||
|
OpflexAgentOvsAsyncjsonEnabled string `yaml:"opflex_agent_ovs_asyncjson_enabled,omitempty" json:"opflexAgentOvsAsyncjsonEnabled,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type KubernetesServicesOptions struct {
|
type KubernetesServicesOptions struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user