Skip to content

Commit

Permalink
Addresses #305. Modify config_version to kubernetes_version mapping. …
Browse files Browse the repository at this point in the history
…Pre-req to supporting Kube 1.15. (#308)
  • Loading branch information
nickperry authored and carabasdaniel committed Jun 18, 2019
1 parent d571381 commit 7d85f9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifests/config/kubeadm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@

$config_version = $kubernetes_version ? {
/1.1(0|1)/ => 'v1alpha1',
/1.1(3|4)/ => 'v1beta1',
default => 'v1alpha3',
/1.12/ => 'v1alpha3',
default => 'v1beta1',
}

file { $config_file:
Expand Down
4 changes: 2 additions & 2 deletions manifests/config/worker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
$kubelet_extra_config_yaml = regsubst(to_yaml($kubelet_extra_config), '^---\n', '')

$template = $kubernetes_version ? {
/1.1(3|4)/ => 'v1beta1',
default => 'v1alpha3',
/1.12/ => 'v1alpha3',
default => 'v1beta1',
}

file { '/etc/kubernetes':
Expand Down

0 comments on commit 7d85f9a

Please sign in to comment.