Browse Source
Merge pull request #3258 from okamototk/fix_kubectl_path
absolute path for kubectl.
pull/3318/head
k8s-ci-robot
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
roles/win_nodes/kubernetes_patch/tasks/main.yml
|
|
@ -16,11 +16,11 @@ |
|
|
|
|
|
|
|
# Due to https://github.com/kubernetes/kubernetes/issues/58212 we cannot rely on exit code for "kubectl patch" |
|
|
|
- name: Check current nodeselector for kube-proxy daemonset |
|
|
|
shell: kubectl get ds kube-proxy --namespace=kube-system -o jsonpath='{.spec.template.spec.nodeSelector.beta\.kubernetes\.io/os}' |
|
|
|
shell: "{{bin_dir}}/kubectl get ds kube-proxy --namespace=kube-system -o jsonpath='{.spec.template.spec.nodeSelector.beta.kubernetes.io/os}'" |
|
|
|
register: current_kube_proxy_state |
|
|
|
|
|
|
|
- name: Apply nodeselector patch for kube-proxy daemonset |
|
|
|
shell: kubectl patch ds kube-proxy --namespace=kube-system --type=strategic -p "$(cat nodeselector-os-linux-patch.json)" |
|
|
|
shell: "{{bin_dir}}/kubectl patch ds kube-proxy --namespace=kube-system --type=strategic -p \"$(cat nodeselector-os-linux-patch.json)\"" |
|
|
|
args: |
|
|
|
chdir: "{{ kubernetes_user_manifests_path }}" |
|
|
|
register: patch_kube_proxy_state |
|
|
|