Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 036bf04

Browse files
Turning on strictMode for propeller and manager config
Signed-off-by: pmahindrakar-oss <[email protected]>
1 parent a9b831b commit 036bf04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/controller/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func init() {
8989

9090
func initConfig(cmd *cobra.Command, _ []string) error {
9191
configAccessor = viper.NewAccessor(config.Options{
92-
StrictMode: false,
92+
StrictMode: true,
9393
SearchPaths: []string{cfgFile},
9494
})
9595

cmd/manager/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func init() {
118118

119119
func initConfig(cmd *cobra.Command, _ []string) error {
120120
configAccessor = viper.NewAccessor(config.Options{
121-
StrictMode: false,
121+
StrictMode: true,
122122
SearchPaths: []string{cfgFile},
123123
})
124124

0 commit comments

Comments
 (0)