Skip to content

Commit

Permalink
fix 🐛(filesystem store): ignore path that do not exist instead of thr…
Browse files Browse the repository at this point in the history
…owing an error

it's to allow people to populate the switch config, and "preshot" future configurations

Signed-off-by: Victor Hang <[email protected]>
  • Loading branch information
Banh-Canh committed Aug 19, 2024
1 parent 8726c2b commit 6391ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/store/kubeconfig_store_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (s *FilesystemStore) VerifyKubeconfigPaths() error {

info, err := os.Stat(kubeconfigPath)
if os.IsNotExist(err) {
return fmt.Errorf("the configured kubeconfig directory %q does not exist", path)
continue
} else if err != nil {
return fmt.Errorf("failed to read from the configured kubeconfig directory %q: %v", path, err)
}
Expand Down

0 comments on commit 6391ab8

Please sign in to comment.