mirror of https://github.com/k3s-io/k3s
Merge pull request #77947 from tallclair/automated-cherry-pick-of-#77888-upstream-release-1.14
Automated cherrypick of #77888 upstream release 1.14pull/564/head
commit
4efb32be02
|
@ -656,7 +656,7 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
|
|||
}
|
||||
klet.runtimeService = runtimeService
|
||||
|
||||
if utilfeature.DefaultFeatureGate.Enabled(features.RuntimeClass) {
|
||||
if utilfeature.DefaultFeatureGate.Enabled(features.RuntimeClass) && kubeDeps.KubeClient != nil {
|
||||
klet.runtimeClassManager = runtimeclass.NewManager(kubeDeps.KubeClient)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue