We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a55766 + 22ea669 commit 9e1693fCopy full SHA for 9e1693f
cmd/clusterctl/client/repository/overrides.go
@@ -74,6 +74,13 @@ func (o *overrides) Path() (string, error) {
74
return "", err
75
}
76
basepath := filepath.Join(configDirectory, overrideFolder)
77
+ // Fallback to the .cluster-api directory in home if the above does not exist.
78
+ if _, err := os.Stat(basepath); os.IsNotExist(err) {
79
+ fallbackBasepath := filepath.Join(xdg.Home, config.ConfigFolder, overrideFolder)
80
+ if _, err := os.Stat(fallbackBasepath); err == nil {
81
+ basepath = fallbackBasepath
82
+ }
83
84
f, err := o.configVariablesClient.Get(overrideFolderKey)
85
if err == nil && strings.TrimSpace(f) != "" {
86
basepath = f
0 commit comments