-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* separate get and set cluster version tasks
* introduce initial_cluster_version used to evaluate need of an upgrade Signed-off-by: cicharka <[email protected]>
- Loading branch information
Showing
7 changed files
with
52 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
ansible/playbooks/roles/upgrade/tasks/kubernetes/patch-kubelet-cm.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
ansible/playbooks/roles/upgrade/tasks/kubernetes/set-cluster-version.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
- name: k8s | Include get-cluster-version.yml | ||
include_tasks: kubernetes/get-cluster-version.yml | ||
|
||
- name: Set cluster version as fact | ||
set_fact: | ||
cluster_version: >- | ||
{{ (kubectl_cluster_version.stdout | from_yaml).serverVersion.gitVersion }} | ||
cluster_version_major: >- | ||
{{ (kubectl_cluster_version.stdout | from_yaml).serverVersion.major }} | ||
cluster_version_minor: >- | ||
{{ (kubectl_cluster_version.stdout | from_yaml).serverVersion.minor }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters