diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 7f9df599..1621c678 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -3,6 +3,13 @@ name: GolangCILint on: pull_request: types: [opened, edited, synchronize, reopened] + paths: + - 'pkg/**' + - 'cmd/**' + - 'version/**' + - 'go.mod' + - 'go.sum' + - 'api/**' # Remove all permissions from GITHUB_TOKEN except metadata. permissions: {} diff --git a/builtin/core/roles/uninstall/kubernetes/tasks/main.yaml b/builtin/core/roles/uninstall/kubernetes/tasks/main.yaml index 6fa44236..90b6c529 100644 --- a/builtin/core/roles/uninstall/kubernetes/tasks/main.yaml +++ b/builtin/core/roles/uninstall/kubernetes/tasks/main.yaml @@ -14,6 +14,8 @@ command: | rm -rf /usr/local/bin/kubeadm && rm -rf /usr/local/bin/kubelet && rm -rf /usr/local/bin/kubectl rm -rf /var/lib/kubelet/ + # If /var/log/pods/ is not cleaned up, static pods may accumulate unexpected restarts due to lingering log files interfering with their lifecycle. + rm -rf /var/log/pods/ rm -rf /etc/kubernetes/ rm -rf .kube/config