@@ -30,11 +30,9 @@ func ComputeKubeletFlags(startingArgs map[string][]string, options configapi.Nod
30
30
imageTemplate .Format = options .ImageConfig .Format
31
31
imageTemplate .Latest = options .ImageConfig .Latest
32
32
33
- path := ""
34
- var fileCheckInterval int64
35
33
if options .PodManifestConfig != nil {
36
- path = options .PodManifestConfig .Path
37
- fileCheckInterval = options .PodManifestConfig .FileCheckIntervalSeconds
34
+ setIfUnset ( args , "pod-manifest- path" , options .PodManifestConfig .Path )
35
+ setIfUnset ( args , "file-check-frequency" , fmt . Sprintf ( "%ds" , options .PodManifestConfig .FileCheckIntervalSeconds ))
38
36
}
39
37
kubeAddressStr , kubePortStr , err := net .SplitHostPort (options .ServingInfo .BindAddress )
40
38
if err != nil {
@@ -44,7 +42,6 @@ func ComputeKubeletFlags(startingArgs map[string][]string, options configapi.Nod
44
42
setIfUnset (args , "address" , kubeAddressStr )
45
43
setIfUnset (args , "port" , kubePortStr )
46
44
setIfUnset (args , "kubeconfig" , options .MasterKubeConfig )
47
- setIfUnset (args , "pod-manifest-path" , path )
48
45
setIfUnset (args , "root-dir" , options .VolumeDirectory )
49
46
setIfUnset (args , "node-ip" , options .NodeIP )
50
47
setIfUnset (args , "hostname-override" , options .NodeName )
@@ -61,7 +58,6 @@ func ComputeKubeletFlags(startingArgs map[string][]string, options configapi.Nod
61
58
setIfUnset (args , "host-pid-sources" , "api" , "file" )
62
59
setIfUnset (args , "host-ipc-sources" , "api" , "file" )
63
60
setIfUnset (args , "http-check-frequency" , "0s" ) // no remote HTTP pod creation access
64
- setIfUnset (args , "file-check-frequency" , fmt .Sprintf ("%ds" , fileCheckInterval ))
65
61
setIfUnset (args , "pod-infra-container-image" , imageTemplate .ExpandOrDie ("pod" ))
66
62
setIfUnset (args , "max-pods" , "250" )
67
63
setIfUnset (args , "cgroup-driver" , "systemd" )
0 commit comments