mirror of
https://github.com/rancher/rke.git
synced 2025-07-16 16:31:07 +00:00
Added new variables for ACI-CNI 5.2.3.5
This commit is contained in:
parent
34a41717b0
commit
91e00a3f30
@ -117,6 +117,7 @@ const (
|
||||
DefaultAciMultusDisable = "true"
|
||||
DefaultAciNoWaitForServiceEpReadiness = "false"
|
||||
DefaultAciAddExternalSubnetsToRdconfig = "false"
|
||||
DefaultAciServiceGraphEndpointAddDelay = "0"
|
||||
|
||||
KubeAPIArgAdmissionControlConfigFile = "admission-control-config-file"
|
||||
DefaultKubeAPIArgAdmissionControlConfigFileValue = "/etc/kubernetes/admission.yaml"
|
||||
@ -795,6 +796,7 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
||||
AciMultusDisable: DefaultAciMultusDisable,
|
||||
AciNoWaitForServiceEpReadiness: DefaultAciNoWaitForServiceEpReadiness,
|
||||
AciAddExternalSubnetsToRdconfig: DefaultAciAddExternalSubnetsToRdconfig,
|
||||
AciServiceGraphEndpointAddDelay: DefaultAciServiceGraphEndpointAddDelay,
|
||||
}
|
||||
}
|
||||
if c.Network.CalicoNetworkProvider != nil {
|
||||
@ -853,6 +855,7 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
||||
setDefaultIfEmpty(&c.Network.AciNetworkProvider.UseClusterRole, DefaultAciUseClusterRole)
|
||||
setDefaultIfEmpty(&c.Network.AciNetworkProvider.NoWaitForServiceEpReadiness, DefaultAciNoWaitForServiceEpReadiness)
|
||||
setDefaultIfEmpty(&c.Network.AciNetworkProvider.AddExternalSubnetsToRdconfig, DefaultAciAddExternalSubnetsToRdconfig)
|
||||
setDefaultIfEmpty(&c.Network.AciNetworkProvider.ServiceGraphEndpointAddDelay, DefaultAciServiceGraphEndpointAddDelay)
|
||||
networkPluginConfigDefaultsMap[AciOVSMemoryLimit] = c.Network.AciNetworkProvider.OVSMemoryLimit
|
||||
networkPluginConfigDefaultsMap[AciImagePullPolicy] = c.Network.AciNetworkProvider.ImagePullPolicy
|
||||
networkPluginConfigDefaultsMap[AciPBRTrackingNonSnat] = c.Network.AciNetworkProvider.PBRTrackingNonSnat
|
||||
@ -894,6 +897,7 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
||||
networkPluginConfigDefaultsMap[AciMultusDisable] = c.Network.AciNetworkProvider.MultusDisable
|
||||
networkPluginConfigDefaultsMap[AciNoWaitForServiceEpReadiness] = c.Network.AciNetworkProvider.NoWaitForServiceEpReadiness
|
||||
networkPluginConfigDefaultsMap[AciAddExternalSubnetsToRdconfig] = c.Network.AciNetworkProvider.AddExternalSubnetsToRdconfig
|
||||
networkPluginConfigDefaultsMap[AciServiceGraphEndpointAddDelay] = c.Network.AciNetworkProvider.ServiceGraphEndpointAddDelay
|
||||
networkPluginConfigDefaultsMap[AciSystemIdentifier] = c.Network.AciNetworkProvider.SystemIdentifier
|
||||
networkPluginConfigDefaultsMap[AciToken] = c.Network.AciNetworkProvider.Token
|
||||
networkPluginConfigDefaultsMap[AciApicUserName] = c.Network.AciNetworkProvider.ApicUserName
|
||||
|
@ -149,6 +149,7 @@ const (
|
||||
AciMultusDisable = "aci_multus_disable"
|
||||
AciNoWaitForServiceEpReadiness = "aci_no_wait_for_service_ep_readiness"
|
||||
AciAddExternalSubnetsToRdconfig = "aci_add_external_subnets_to_rdconfig"
|
||||
AciServiceGraphEndpointAddDelay = "aci_service_graph_endpoint_add_delay"
|
||||
// List of map keys to be used with network templates
|
||||
|
||||
// EtcdEndpoints is the server address for Etcd, used by calico
|
||||
@ -287,6 +288,8 @@ const (
|
||||
MultusDisable = "MultusDisable"
|
||||
NoWaitForServiceEpReadiness = "NoWaitForServiceEpReadiness"
|
||||
AddExternalSubnetsToRdconfig = "AddExternalSubnetsToRdconfig"
|
||||
ServiceGraphEndpointAddDelay = "ServiceGraphEndpointAddDelay"
|
||||
ServiceGraphEndpointAddServices = "ServiceGraphEndpointAddServices"
|
||||
OVSMemoryLimit = "OVSMemoryLimit"
|
||||
NodeSubnet = "NodeSubnet"
|
||||
NodeSelector = "NodeSelector"
|
||||
@ -585,6 +588,8 @@ func (c *Cluster) doAciDeploy(ctx context.Context, data map[string]interface{})
|
||||
MultusDisable: c.Network.Options[AciMultusDisable],
|
||||
NoWaitForServiceEpReadiness: c.Network.Options[AciNoWaitForServiceEpReadiness],
|
||||
AddExternalSubnetsToRdconfig: c.Network.Options[AciAddExternalSubnetsToRdconfig],
|
||||
ServiceGraphEndpointAddDelay: c.Network.Options[AciServiceGraphEndpointAddDelay],
|
||||
ServiceGraphEndpointAddServices: c.Network.AciNetworkProvider.ServiceGraphEndpointAddServices,
|
||||
AciCniDeployContainer: c.SystemImages.AciCniDeployContainer,
|
||||
AciHostContainer: c.SystemImages.AciHostContainer,
|
||||
AciOpflexContainer: c.SystemImages.AciOpflexContainer,
|
||||
|
@ -666,6 +666,8 @@ type AciNetworkProvider struct {
|
||||
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"`
|
||||
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"`
|
||||
}
|
||||
|
||||
type KubernetesServicesOptions struct {
|
||||
|
Loading…
Reference in New Issue
Block a user