Commit 030ae4ae authored by Ciprian Hacman's avatar Ciprian Hacman
Browse files

Make distro detection less strict

(cherry picked from commit dfee0547)
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -243,8 +243,8 @@ func RunUpdateCluster(f *util.Factory, clusterName string, out io.Writer, c *Upd
instanceGroups = append(instanceGroups, &list.Items[i])
// Try to guess the path for additional third party volume plugins in CoreOS and Flatcar
image := list.Items[i].Spec.Image
if strings.HasPrefix(image, "595879546273/CoreOS") || strings.HasPrefix(image, "075585003325/Flatcar") {
image := strings.ToLower(list.Items[i].Spec.Image)
if strings.Contains(image, "coreos") || strings.Contains(image, "flatcar") {
if cluster.Spec.Kubelet == nil {
cluster.Spec.Kubelet = &kops.KubeletConfigSpec{}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment