mirror of https://github.com/kubernetes/kops.git
Rename SupportedArchitecture to architectureOfAMI
This commit is contained in:
parent
b785965c50
commit
d987d4ac1a
|
@ -635,7 +635,7 @@ spec:
|
|||
values: ["spot"]
|
||||
- key: kubernetes.io/arch
|
||||
operator: In
|
||||
values: ["{{ SupportedArchitecture $spec.Image }}"]
|
||||
values: ["{{ ArchitectureOfAMI $spec.Image }}"]
|
||||
- key: "node.kubernetes.io/instance-type"
|
||||
operator: In
|
||||
values:
|
||||
|
|
|
@ -281,7 +281,7 @@ func (tf *TemplateFunctions) AddTo(dest template.FuncMap, secretStore fi.SecretS
|
|||
dest["EnableSQSTerminationDraining"] = func() bool { return *cluster.Spec.NodeTerminationHandler.EnableSQSTerminationDraining }
|
||||
}
|
||||
|
||||
dest["SupportedArchitecture"] = tf.SupportedArchitecture
|
||||
dest["ArchitectureOfAMI"] = tf.architectureOfAMI
|
||||
|
||||
dest["ParseTaint"] = parseTaint
|
||||
|
||||
|
@ -741,7 +741,7 @@ func (tf *TemplateFunctions) GetNodeInstanceGroups() map[string]kops.InstanceGro
|
|||
return nodegroups
|
||||
}
|
||||
|
||||
func (tf *TemplateFunctions) SupportedArchitecture(amiID string) string {
|
||||
func (tf *TemplateFunctions) architectureOfAMI(amiID string) string {
|
||||
image, _ := tf.cloud.(awsup.AWSCloud).ResolveImage(amiID)
|
||||
switch *image.Architecture {
|
||||
case "x86_64":
|
||||
|
|
Loading…
Reference in New Issue