mirror of
https://github.com/rancher/rke.git
synced 2025-07-15 16:11:38 +00:00
Add new variables for ACI-CNI 5.2.3.4
(cherry picked from commit 710892a58c
)
This commit is contained in:
parent
4354c55de9
commit
68e37e463c
@ -112,6 +112,8 @@ const (
|
|||||||
DefaultAciNodePodIfEnable = "false"
|
DefaultAciNodePodIfEnable = "false"
|
||||||
DefaultAciSriovEnable = "false"
|
DefaultAciSriovEnable = "false"
|
||||||
DefaultAciMultusDisable = "true"
|
DefaultAciMultusDisable = "true"
|
||||||
|
DefaultAciNoWaitForServiceEpReadiness = "false"
|
||||||
|
DefaultAciAddExternalSubnetsToRdconfig = "false"
|
||||||
|
|
||||||
KubeAPIArgAdmissionControlConfigFile = "admission-control-config-file"
|
KubeAPIArgAdmissionControlConfigFile = "admission-control-config-file"
|
||||||
DefaultKubeAPIArgAdmissionControlConfigFileValue = "/etc/kubernetes/admission.yaml"
|
DefaultKubeAPIArgAdmissionControlConfigFileValue = "/etc/kubernetes/admission.yaml"
|
||||||
@ -668,6 +670,8 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
|||||||
AciNodePodIfEnable: DefaultAciNodePodIfEnable,
|
AciNodePodIfEnable: DefaultAciNodePodIfEnable,
|
||||||
AciSriovEnable: DefaultAciSriovEnable,
|
AciSriovEnable: DefaultAciSriovEnable,
|
||||||
AciMultusDisable: DefaultAciMultusDisable,
|
AciMultusDisable: DefaultAciMultusDisable,
|
||||||
|
AciNoWaitForServiceEpReadiness: DefaultAciNoWaitForServiceEpReadiness,
|
||||||
|
AciAddExternalSubnetsToRdconfig: DefaultAciAddExternalSubnetsToRdconfig,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if c.Network.CalicoNetworkProvider != nil {
|
if c.Network.CalicoNetworkProvider != nil {
|
||||||
@ -724,6 +728,8 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
|||||||
setDefaultIfEmpty(&c.Network.AciNetworkProvider.DurationWaitForNetwork, DefaultAciDurationWaitForNetwork)
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.DurationWaitForNetwork, DefaultAciDurationWaitForNetwork)
|
||||||
setDefaultIfEmpty(&c.Network.AciNetworkProvider.DisableWaitForNetwork, DefaultAciDisableWaitForNetwork)
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.DisableWaitForNetwork, DefaultAciDisableWaitForNetwork)
|
||||||
setDefaultIfEmpty(&c.Network.AciNetworkProvider.UseClusterRole, DefaultAciUseClusterRole)
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.UseClusterRole, DefaultAciUseClusterRole)
|
||||||
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.NoWaitForServiceEpReadiness, DefaultAciNoWaitForServiceEpReadiness)
|
||||||
|
setDefaultIfEmpty(&c.Network.AciNetworkProvider.AddExternalSubnetsToRdconfig, DefaultAciAddExternalSubnetsToRdconfig)
|
||||||
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
|
||||||
@ -763,6 +769,8 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
|||||||
networkPluginConfigDefaultsMap[AciNodePodIfEnable] = c.Network.AciNetworkProvider.NodePodIfEnable
|
networkPluginConfigDefaultsMap[AciNodePodIfEnable] = c.Network.AciNetworkProvider.NodePodIfEnable
|
||||||
networkPluginConfigDefaultsMap[AciSriovEnable] = c.Network.AciNetworkProvider.SriovEnable
|
networkPluginConfigDefaultsMap[AciSriovEnable] = c.Network.AciNetworkProvider.SriovEnable
|
||||||
networkPluginConfigDefaultsMap[AciMultusDisable] = c.Network.AciNetworkProvider.MultusDisable
|
networkPluginConfigDefaultsMap[AciMultusDisable] = c.Network.AciNetworkProvider.MultusDisable
|
||||||
|
networkPluginConfigDefaultsMap[AciNoWaitForServiceEpReadiness] = c.Network.AciNetworkProvider.NoWaitForServiceEpReadiness
|
||||||
|
networkPluginConfigDefaultsMap[AciAddExternalSubnetsToRdconfig] = c.Network.AciNetworkProvider.AddExternalSubnetsToRdconfig
|
||||||
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
|
||||||
|
@ -147,6 +147,8 @@ const (
|
|||||||
AciNodePodIfEnable = "aci_node_pod_if_enable"
|
AciNodePodIfEnable = "aci_node_pod_if_enable"
|
||||||
AciSriovEnable = "aci_sriov_enable"
|
AciSriovEnable = "aci_sriov_enable"
|
||||||
AciMultusDisable = "aci_multus_disable"
|
AciMultusDisable = "aci_multus_disable"
|
||||||
|
AciNoWaitForServiceEpReadiness = "aci_no_wait_for_service_ep_readiness"
|
||||||
|
AciAddExternalSubnetsToRdconfig = "aci_add_external_subnets_to_rdconfig"
|
||||||
// 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
|
||||||
@ -283,6 +285,8 @@ const (
|
|||||||
NodePodIfEnable = "NodePodIfEnable"
|
NodePodIfEnable = "NodePodIfEnable"
|
||||||
SriovEnable = "SriovEnable"
|
SriovEnable = "SriovEnable"
|
||||||
MultusDisable = "MultusDisable"
|
MultusDisable = "MultusDisable"
|
||||||
|
NoWaitForServiceEpReadiness = "NoWaitForServiceEpReadiness"
|
||||||
|
AddExternalSubnetsToRdconfig = "AddExternalSubnetsToRdconfig"
|
||||||
OVSMemoryLimit = "OVSMemoryLimit"
|
OVSMemoryLimit = "OVSMemoryLimit"
|
||||||
NodeSubnet = "NodeSubnet"
|
NodeSubnet = "NodeSubnet"
|
||||||
NodeSelector = "NodeSelector"
|
NodeSelector = "NodeSelector"
|
||||||
@ -579,6 +583,8 @@ func (c *Cluster) doAciDeploy(ctx context.Context, data map[string]interface{})
|
|||||||
NodePodIfEnable: c.Network.Options[AciNodePodIfEnable],
|
NodePodIfEnable: c.Network.Options[AciNodePodIfEnable],
|
||||||
SriovEnable: c.Network.Options[AciSriovEnable],
|
SriovEnable: c.Network.Options[AciSriovEnable],
|
||||||
MultusDisable: c.Network.Options[AciMultusDisable],
|
MultusDisable: c.Network.Options[AciMultusDisable],
|
||||||
|
NoWaitForServiceEpReadiness: c.Network.Options[AciNoWaitForServiceEpReadiness],
|
||||||
|
AddExternalSubnetsToRdconfig: c.Network.Options[AciAddExternalSubnetsToRdconfig],
|
||||||
AciCniDeployContainer: c.SystemImages.AciCniDeployContainer,
|
AciCniDeployContainer: c.SystemImages.AciCniDeployContainer,
|
||||||
AciHostContainer: c.SystemImages.AciHostContainer,
|
AciHostContainer: c.SystemImages.AciHostContainer,
|
||||||
AciOpflexContainer: c.SystemImages.AciOpflexContainer,
|
AciOpflexContainer: c.SystemImages.AciOpflexContainer,
|
||||||
|
@ -661,6 +661,8 @@ type AciNetworkProvider struct {
|
|||||||
SriovEnable string `yaml:"sriov_enable,omitempty" json:"sriovEnable,omitempty"`
|
SriovEnable string `yaml:"sriov_enable,omitempty" json:"sriovEnable,omitempty"`
|
||||||
MultusDisable string `yaml:"multus_disable,omitempty" json:"multusDisable,omitempty"`
|
MultusDisable string `yaml:"multus_disable,omitempty" json:"multusDisable,omitempty"`
|
||||||
UseClusterRole string `yaml:"use_cluster_role,omitempty" json:"useClusterRole,omitempty"`
|
UseClusterRole string `yaml:"use_cluster_role,omitempty" json:"useClusterRole,omitempty"`
|
||||||
|
NoWaitForServiceEpReadiness string `yaml:"no_wait_for_service_ep_readiness,omitempty" json:"noWaitForServiceEpReadiness,omitempty"`
|
||||||
|
AddExternalSubnetsToRdconfig string `yaml:"add_external_subnets_to_rdconfig,omitempty" json:"addExternalSubnetsToRdconfig,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type KubernetesServicesOptions struct {
|
type KubernetesServicesOptions struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user