mirror of https://github.com/kubernetes/kops.git
Populate cluster with default values in `kops replace`
This commit is contained in:
parent
fc527b6e9f
commit
4ead1abd87
|
|
@ -138,6 +138,12 @@ func RunReplace(ctx context.Context, f *util.Factory, out io.Writer, c *ReplaceO
|
|||
if !c.Force {
|
||||
return fmt.Errorf("cluster %v does not exist (try adding --force flag)", clusterName)
|
||||
}
|
||||
|
||||
err = cloudup.PerformAssignments(v, cloud)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error populating configuration: %v", err)
|
||||
}
|
||||
|
||||
_, err = clientset.CreateCluster(ctx, v)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error creating cluster: %v", err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue