@@ -44,7 +44,7 @@ func configureLogger() (*zap.Logger, error) {
44
44
func hasRequiredVariables (logger * zap.Logger , envVariables ... string ) bool {
45
45
allPresent := true
46
46
for _ , envVariable := range envVariables {
47
- if _ , envSpecified := os .LookupEnv (envVariable ); ! envSpecified { // nolint:forbidigo
47
+ if _ , envSpecified := os .LookupEnv (envVariable ); ! envSpecified {
48
48
logger .Error (fmt .Sprintf ("required environment variable %s not found" , envVariable ))
49
49
allPresent = false
50
50
}
@@ -70,7 +70,7 @@ func main() {
70
70
}
71
71
72
72
// Get watch namespace from environment variable.
73
- namespace , nsSpecified := os .LookupEnv (WatchNamespaceEnv ) // nolint:forbidigo
73
+ namespace , nsSpecified := os .LookupEnv (WatchNamespaceEnv )
74
74
if ! nsSpecified {
75
75
log .Sugar ().Fatal ("No namespace specified to watch" )
76
76
}
@@ -110,12 +110,12 @@ func main() {
110
110
// Setup Controller.
111
111
if err = controllers .NewReconciler (
112
112
mgr ,
113
- os .Getenv (construct .MongodbRepoUrlEnv ), // nolint:forbidigo
114
- os .Getenv (construct .MongodbImageEnv ), // nolint:forbidigo
115
- envvar .GetEnvOrDefault (construct .MongoDBImageTypeEnv , construct .DefaultImageType ), // nolint:forbidigo
116
- os .Getenv (construct .AgentImageEnv ), // nolint:forbidigo
117
- os .Getenv (construct .VersionUpgradeHookImageEnv ), // nolint:forbidigo
118
- os .Getenv (construct .ReadinessProbeImageEnv ), // nolint:forbidigo
113
+ os .Getenv (construct .MongodbRepoUrlEnv ),
114
+ os .Getenv (construct .MongodbImageEnv ),
115
+ envvar .GetEnvOrDefault (construct .MongoDBImageTypeEnv , construct .DefaultImageType ),
116
+ os .Getenv (construct .AgentImageEnv ),
117
+ os .Getenv (construct .VersionUpgradeHookImageEnv ),
118
+ os .Getenv (construct .ReadinessProbeImageEnv ),
119
119
).SetupWithManager (mgr ); err != nil {
120
120
log .Sugar ().Fatalf ("Unable to create controller: %v" , err )
121
121
}
0 commit comments