mirror of https://github.com/kubernetes/kops.git
Merge pull request #13273 from johngmyers/rbn-22-22
Cherry-pick of #13268: Enable RBN with AWS CCM 1.22.0-alpha.1
This commit is contained in:
commit
d498834b14
|
|
@ -674,6 +674,6 @@ func (b *KubeletBuilder) kubeletNames() ([]string, error) {
|
|||
return nil, fmt.Errorf("error describing instances: %v", err)
|
||||
}
|
||||
|
||||
useInstanceIDForNodeName := b.Cluster.Spec.ExternalCloudControllerManager != nil && b.IsKubernetesGTE("1.23")
|
||||
useInstanceIDForNodeName := b.Cluster.Spec.ExternalCloudControllerManager != nil && b.IsKubernetesGTE("1.22")
|
||||
return awsup.GetInstanceCertificateNames(result, useInstanceIDForNodeName)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ func NewConfig(cluster *kops.Cluster, instanceGroup *kops.InstanceGroup) (*Confi
|
|||
config.DefaultMachineType = fi.String(strings.Split(instanceGroup.Spec.MachineType, ",")[0])
|
||||
}
|
||||
|
||||
if cluster.Spec.ExternalCloudControllerManager != nil && cluster.IsKubernetesGTE("1.23") && cluster.Spec.CloudProvider == string(kops.CloudProviderAWS) {
|
||||
if cluster.Spec.ExternalCloudControllerManager != nil && cluster.IsKubernetesGTE("1.22") && cluster.Spec.CloudProvider == string(kops.CloudProviderAWS) {
|
||||
config.UseInstanceIDForNodeName = true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -573,7 +573,7 @@ func (tf *TemplateFunctions) KopsControllerConfig() (string, error) {
|
|||
Region: tf.Region,
|
||||
}
|
||||
|
||||
if cluster.Spec.ExternalCloudControllerManager != nil && cluster.IsKubernetesGTE("1.23") {
|
||||
if cluster.Spec.ExternalCloudControllerManager != nil && cluster.IsKubernetesGTE("1.22") {
|
||||
config.Server.UseInstanceIDForNodeName = true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue