Skip to content

Commit 74b4bcb

Browse files
committed
default the job to match latest featuregates
1 parent 2791ec7 commit 74b4bcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/cmd/start/start.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,11 @@ func runGather(operator *controller.GatherJob, cfg *controllercmd.ControllerComm
127127
}
128128
configInformers := configv1informers.NewSharedInformerFactory(configClient, 10*time.Minute)
129129

130-
desiredVersion := os.Getenv("RELEASE_VERSION")
131130
missingVersion := "0.0.1-snapshot"
131+
desiredVersion := missingVersion
132+
if envVersion, exists := os.LookupEnv("RELEASE_VERSION"); exists {
133+
desiredVersion = envVersion
134+
}
132135

133136
// By default, this will exit(0) the process if the featuregates ever change to a different set of values.
134137
featureGateAccessor := featuregates.NewFeatureGateAccess(

0 commit comments

Comments
 (0)