Skip to content

Commit a4be2a6

Browse files
committed
debug: watch bookmarks
1 parent 2d21c4d commit a4be2a6

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

pkg/cmd/openshift-apiserver/cmd.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"k8s.io/apimachinery/pkg/runtime/serializer"
2323
utilerrors "k8s.io/apimachinery/pkg/util/errors"
2424
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
25+
_ "k8s.io/apiserver/pkg/features"
2526
genericapiserveroptions "k8s.io/apiserver/pkg/server/options"
2627
"k8s.io/apiserver/pkg/util/feature"
2728
"k8s.io/client-go/tools/clientcmd/api"
@@ -112,6 +113,11 @@ func (o *OpenShiftAPIServer) RunAPIServer(stopCh <-chan struct{}) error {
112113
if err := features.InitializeFeatureGates(feature.DefaultMutableFeatureGate, openShiftMajorVersion, openshiftfeatures.SelfManaged, openshiftfeatures.FeatureGateRouteExternalCertificate); err != nil {
113114
return err
114115
}
116+
klog.Infof("DEBUG Feature gates after initialization: %v", feature.DefaultMutableFeatureGate)
117+
118+
// Check WatchList specifically
119+
watchListEnabled := feature.DefaultFeatureGate.Enabled("WatchList")
120+
klog.Infof("DEBUG WatchList feature gate enabled: %v", watchListEnabled)
115121

116122
// try to decode into our new types first. right now there is no validation, no file path resolution. this unsticks the operator to start.
117123
// TODO add those things

pkg/cmd/openshift-apiserver/openshiftapiserver/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ func NewOpenshiftAPIConfig(config *openshiftcontrolplanev1.OpenShiftAPIServerCon
5656
kubeInformers := informers.NewSharedInformerFactory(kubeClient, 10*time.Minute)
5757

5858
openshiftVersion := version.Get()
59+
klog.Infof("DEBUG OpenShift version info: %#v, String()=%s", openshiftVersion, openshiftVersion.String())
5960
effectiveVersion := compatibility.NewEffectiveVersionFromString(openshiftVersion.String(), "", "")
61+
klog.Infof("DEBUG EffectiveVersion: BinaryVersion()=%v, EmulationVersion()=%v", effectiveVersion.BinaryVersion(), effectiveVersion.EmulationVersion())
6062

6163
genericConfig := genericapiserver.NewRecommendedConfig(legacyscheme.Codecs)
6264
// Current default values

vendor/k8s.io/apiserver/pkg/storage/cacher/delegator.go

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)