We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e259e4 + a6a05c4 commit edc3252Copy full SHA for edc3252
internal/wrapper.go
@@ -53,7 +53,7 @@ func RunKubeStateMetricsWrapper(opts *options.Options) {
53
if errors.Is(err, viper.ConfigFileNotFoundError{}) {
54
klog.InfoS("Options configuration file not found at startup", "file", file)
55
} else if _, err = os.Stat(filepath.Clean(file)); os.IsNotExist(err) {
56
- // Adding this check in addition to the above since viper.ConfigFileNotFoundError is not working as expected due to this issue -
+ // TODO: Remove this check once viper.ConfigFileNotFoundError is working as expected, see this issue -
57
// https://github.com/spf13/viper/issues/1783
58
59
} else {
0 commit comments