Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#785 from knabben/pair-windows-paths
Browse files Browse the repository at this point in the history
Replacing \var\lib\kubelet path to \etc\kubernetes
  • Loading branch information
k8s-ci-robot authored Feb 28, 2022
2 parents 0aa3c44 + 385a274 commit 4f73b99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@
state: directory
loop:
- '{{ systemdrive.stdout | trim }}\var\log\kubelet'
- '{{ systemdrive.stdout | trim }}\var\lib\kubelet\etc\kubernetes'
- '{{ systemdrive.stdout | trim }}\var\lib\kubelet\etc\kubernetes\manifests'
- '{{ systemdrive.stdout | trim }}\etc\kubernetes'
- '{{ systemdrive.stdout | trim }}\etc\kubernetes\manifests'
- '{{ systemdrive.stdout | trim }}\etc\kubernetes\pki'

- name: Symlink kubelet pki folder
win_shell: New-Item -path $env:SystemDrive\var\lib\kubelet\etc\kubernetes\pki -type SymbolicLink -value $env:SystemDrive\etc\kubernetes\pki\ -Force

- import_tasks: nssm.yml
when: windows_service_manager == "nssm"

Expand Down
6 changes: 0 additions & 6 deletions images/capi/packer/goss/goss-command.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ command:
stdout:
- {{.Vars.kubernetes_version}}
timeout: 10000
Check Symbolic link to /etc/kubernetes/pki:
exit-status: 0
exec: powershell -command "(Get-item -path $env:SystemDrive\var\lib\kubelet\etc\kubernetes\pki| select LinkType,Target)"
stdout:
- SymbolicLink
- C:\etc\kubernetes\pki\
{{ if eq .Vars.distribution_version "2019" }}
Windows build version is high enough:
exit-status: 0
Expand Down
4 changes: 2 additions & 2 deletions images/capi/packer/goss/goss-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ windows:
exists: true
filetype: directory
contains:
c:/var/lib/kubelet/etc/kubernetes:
c:/etc/kubernetes:
exists: true
filetype: directory
contains:
c:/var/lib/kubelet/etc/kubernetes/manifests:
c:/etc/kubernetes/manifests:
exists: true
filetype: directory
contains:
Expand Down

0 comments on commit 4f73b99

Please sign in to comment.