Skip to content

Commit 8581cb0

Browse files
committed
Save config after refreshing cloud config
1 parent 8cd2447 commit 8581cb0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/devspace/clients/kubectl/client.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ func GetClientConfig() (*rest.Config, error) {
6363
if err != nil {
6464
log.Warnf("Couldn't update cloud provider %s information: %v", *config.Cluster.CloudProvider, err)
6565
}
66+
67+
err = configutil.SaveConfig()
68+
if err != nil {
69+
return nil, fmt.Errorf("Error saving config: %v", err)
70+
}
6671
}
6772

6873
if (config.Cluster.UseKubeConfig != nil && *config.Cluster.UseKubeConfig) || config.Cluster.APIServer == nil {

0 commit comments

Comments
 (0)