You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, fmt.Errorf("could not extract service account from loaded credentials. Please specify a service account to be used for shared vpc installations in the install-config.yaml")
188
-
}
189
-
190
-
varfoundbool
191
-
sa:=make(map[string]interface{})
192
-
err=json.Unmarshal(sess.Credentials.JSON, &sa)
193
-
iferr!=nil {
194
-
returnnil, fmt.Errorf("failed to unmarshal gcp session: %w", err)
returnnil, fmt.Errorf("could not extract service account from loaded credentials. Please specify a service account to be used for shared vpc installations in the install-config.yaml")
allErrs=append(allErrs, field.Invalid(fldPath.Child("serviceAccount"), p.Platform.GCP.ServiceAccount, fmt.Sprintf("service accounts only valid for master nodes, provided for %s nodes", p.Name)))
65
-
}
66
-
ifplatform.NetworkProjectID=="" {
67
-
allErrs=append(allErrs, field.Invalid(fldPath.Child("serviceAccount"), p.Platform.GCP.ServiceAccount, "service accounts only valid for xpn installs"))
68
-
}
69
-
}
70
-
returnallErrs
60
+
return field.ErrorList{}
71
61
}
72
62
73
63
// ValidateMasterDiskType checks that the specified disk type is valid for control plane.
0 commit comments