File tree Expand file tree Collapse file tree 5 files changed +2
-30
lines changed Expand file tree Collapse file tree 5 files changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,6 @@ resource "null_resource" "kustomization" {
128
128
# Redeploy when versions of addons need to be updated
129
129
versions = join (" \n " , [
130
130
coalesce (var. initial_k3s_channel , " N/A" ),
131
- coalesce (var. install_k3s_version , " N/A" ),
132
131
coalesce (var. cluster_autoscaler_version , " N/A" ),
133
132
coalesce (var. hetzner_ccm_version , " N/A" ),
134
133
coalesce (var. hetzner_csi_version , " N/A" ),
@@ -234,7 +233,6 @@ resource "null_resource" "kustomization" {
234
233
" ${ path . module } /templates/plans.yaml.tpl" ,
235
234
{
236
235
channel = var.initial_k3s_channel
237
- version = var.install_k3s_version
238
236
disable_eviction = ! var.system_upgrade_enable_eviction
239
237
drain = var.system_upgrade_use_drain
240
238
})
Original file line number Diff line number Diff line change @@ -597,10 +597,6 @@ module "kube-hetzner" {
597
597
# The default is "v1.29".
598
598
# initial_k3s_channel = "stable"
599
599
600
- # Allows you to specify the k3s version. If defined, supersedes initial_k3s_channel.
601
- # See https://github.com/k3s-io/k3s/releases
602
- # install_k3s_version = "v1.30.2+k3s2"
603
-
604
600
# The cluster name, by default "k3s"
605
601
# cluster_name = ""
606
602
Original file line number Diff line number Diff line change @@ -125,18 +125,10 @@ locals {
125
125
swap_node_label = [" node.kubernetes.io/server-swap=enabled" ]
126
126
127
127
install_k3s_server = concat (local. common_pre_install_k3s_commands , [
128
- var . install_k3s_version == " " ? (
129
- " curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_START=true INSTALL_K3S_SKIP_SELINUX_RPM=true INSTALL_K3S_CHANNEL=${ var . initial_k3s_channel } INSTALL_K3S_EXEC='server ${ var . k3s_exec_server_args } ' sh -"
130
- ) : (
131
- " curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_START=true INSTALL_K3S_SKIP_SELINUX_RPM=true INSTALL_K3S_VERSION=${ var . install_k3s_version } INSTALL_K3S_EXEC='server ${ var . k3s_exec_server_args } ' sh -"
132
- )
128
+ " curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_START=true INSTALL_K3S_SKIP_SELINUX_RPM=true INSTALL_K3S_CHANNEL=${ var . initial_k3s_channel } INSTALL_K3S_EXEC='server ${ var . k3s_exec_server_args } ' sh -"
133
129
], (var. disable_selinux ? [] : local. apply_k3s_selinux ), local. common_post_install_k3s_commands )
134
130
install_k3s_agent = concat (local. common_pre_install_k3s_commands , [
135
- var . install_k3s_version == " " ? (
136
- " curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_START=true INSTALL_K3S_SKIP_SELINUX_RPM=true INSTALL_K3S_CHANNEL=${ var . initial_k3s_channel } INSTALL_K3S_EXEC='agent ${ var . k3s_exec_agent_args } ' sh -"
137
- ) : (
138
- " curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_START=true INSTALL_K3S_SKIP_SELINUX_RPM=true INSTALL_K3S_VERSION=${ var . install_k3s_version } INSTALL_K3S_EXEC='agent ${ var . k3s_exec_agent_args } ' sh -"
139
- )
131
+ " curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_START=true INSTALL_K3S_SKIP_SELINUX_RPM=true INSTALL_K3S_CHANNEL=${ var . initial_k3s_channel } INSTALL_K3S_EXEC='agent ${ var . k3s_exec_agent_args } ' sh -"
140
132
], (var. disable_selinux ? [] : local. apply_k3s_selinux ), local. common_post_install_k3s_commands )
141
133
142
134
control_plane_nodes = merge ([
Original file line number Diff line number Diff line change @@ -10,11 +10,7 @@ metadata:
10
10
k3s_upgrade: agent
11
11
spec:
12
12
concurrency: 1
13
- %{ ~ if version == " " ~}
14
13
channel: https://update.k3s.io/v1-release/channels/${ channel}
15
- %{ ~ else ~}
16
- version: ${ version}
17
- %{ ~ endif ~}
18
14
serviceAccountName: system-upgrade
19
15
nodeSelector:
20
16
matchExpressions:
@@ -46,11 +42,7 @@ metadata:
46
42
k3s_upgrade: server
47
43
spec:
48
44
concurrency: 1
49
- %{ ~ if version == " " ~}
50
45
channel: https://update.k3s.io/v1-release/channels/${ channel}
51
- %{ ~ else ~}
52
- version: ${ version}
53
- %{ ~ endif ~}
54
46
serviceAccountName: system-upgrade
55
47
nodeSelector:
56
48
matchExpressions:
Original file line number Diff line number Diff line change @@ -545,12 +545,6 @@ variable "initial_k3s_channel" {
545
545
}
546
546
}
547
547
548
- variable "install_k3s_version" {
549
- type = string
550
- default = " "
551
- description = " Allows you to specify the k3s version (Example: v1.29.6+k3s2). Supersedes initial_k3s_channel."
552
- }
553
-
554
548
variable "system_upgrade_enable_eviction" {
555
549
type = bool
556
550
default = true
You can’t perform that action at this time.
0 commit comments