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

@@ -36,6 +36,7 @@ type runtimeState struct {
cidr string
healthChecks []*healthCheck
rtHandlers []kubecontainer.RuntimeHandler
rtFeatures *kubecontainer.RuntimeFeatures
}
// A health check function should be efficient and not rely on external
@@ -83,6 +84,18 @@ func (s *runtimeState) runtimeHandlers() []kubecontainer.RuntimeHandler {
return s.rtHandlers
}
func (s *runtimeState) setRuntimeFeatures(features *kubecontainer.RuntimeFeatures) {
s.Lock()
defer s.Unlock()
s.rtFeatures = features
}
func (s *runtimeState) runtimeFeatures() *kubecontainer.RuntimeFeatures {
s.RLock()
defer s.RUnlock()
return s.rtFeatures
}
func (s *runtimeState) setStorageState(err error) {
s.Lock()
defer s.Unlock()