KEP-3619: Wiring up from RuntimeFeatures.SupplementalGroupsPolicy(CRI) to NodeFeatures.SupplementalGroupsPolicy(API)

KEP-3619: fix typos in pkg/kubelet/container/runtime.go
This commit is contained in:
Shingo Omura
2024-06-22 21:32:55 +09:00
parent 5d75660dc1
commit f46ecf5648
8 changed files with 61 additions and 4 deletions

View File

@@ -106,6 +106,10 @@ func dropDisabledFields(node *api.Node, oldNode *api.Node) {
if !utilfeature.DefaultFeatureGate.Enabled(features.RecursiveReadOnlyMounts) && !utilfeature.DefaultFeatureGate.Enabled(features.UserNamespacesSupport) {
node.Status.RuntimeHandlers = nil
}
if !utilfeature.DefaultFeatureGate.Enabled(features.SupplementalGroupsPolicy) {
node.Status.Features = nil
}
}
// nodeConfigSourceInUse returns true if node's Spec ConfigSource is set(used)