Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/featurechangestopper/techpreviewchangestopper.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ func (c *TechPreviewChangeStopper) Run(ctx context.Context, shutdownFn context.C
}()
c.shutdownFn = shutdownFn

klog.Infof("Starting stop-on-techpreview-change controller")
klog.Infof("Starting stop-on-techpreview-change controller with %s %t.", configv1.TechPreviewNoUpgrade, c.startingTechPreviewState)

// wait for your secondary caches to fill before starting your work
if !cache.WaitForCacheSync(ctx.Done(), c.cacheSynced...) {
return errors.New("feature gate cache failed to sync")
}

err := wait.PollImmediateUntilWithContext(ctx, 30*time.Second, c.runWorker)
klog.Infof("Shutting down stop-on-techpreview-change controller")
klog.Info("Shutting down stop-on-techpreview-change controller")
return err
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (o *Options) Run(ctx context.Context) error {
case apierrors.IsNotFound(err):
includeTechPreview = false // if we have no featuregates, then we aren't tech preview
case err != nil:
return fmt.Errorf("error getting featuregate value: %v", err)
klog.Warningf("Error getting featuregate value: %v", err)
default:
includeTechPreview = gate.Spec.FeatureSet == configv1.TechPreviewNoUpgrade
}
Expand Down