Merge pull request #121943 from dims/replace-E-with-setenv-for-systemd-run-parameter

Replace -E with --setenv for systemd-run parameter
This commit is contained in:
Kubernetes Prow Robot 2023-11-17 19:38:35 +01:00 committed by GitHub
commit 1f07da7575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,7 +250,7 @@ func (e *E2EServices) startKubelet(featureGates map[string]bool) (*server, error
cmdArgs = append(cmdArgs,
systemdRun,
// Set the environment variable to enable kubelet config drop-in directory.
"-E", "KUBELET_CONFIG_DROPIN_DIR_ALPHA=yes",
"--setenv", "KUBELET_CONFIG_DROPIN_DIR_ALPHA=yes",
"-p", "Delegate=true",
"-p", logLocation+framework.TestContext.ReportDir+"/kubelet.log",
"--unit="+unitName,