returnkubeadm.ImageMeta{},errors.New("Conversion Error: kubeadm does not support converting v1alpha3 configurations with etcd image without explicit repository or tag definition. Please fix the image name")
returnkubeadm.ImageMeta{},errors.New("Conversion Error: kubeadm does not support converting v1alpha3 configurations with etcd imageName different than etcd. Please fix the image name")
expectedErr:"clusterName has been removed from JoinConfiguration and clusterName from ClusterConfiguration will be used instead. Please cleanup JoinConfiguration.ClusterName fields",
expectedError:true,
},
"feature gates fails to be converted":{
old:&v1alpha3.JoinConfiguration{
old:&JoinConfiguration{
FeatureGates:map[string]bool{
"someGate":true,
},
},
expectedErr:"featureGates has been removed from JoinConfiguration and featureGates from ClusterConfiguration will be used instead. Please cleanup JoinConfiguration.FeatureGates fields",
expectedError:true,
},
}
for_,tc:=rangetestcases{
internal:=&kubeadm.JoinConfiguration{}
err:=scheme.Scheme.Convert(tc.old,internal,nil)
iflen(tc.expectedErr)!=0{
testutil.AssertError(t,err,tc.expectedErr)
}elseiferr!=nil{
t.Errorf("no error was expected but '%s' was found",err)