Skip to content

Commit b3f7c05

Browse files
committed
Update old references
Signed-off-by: apedriza <[email protected]>
1 parent f332c9e commit b3f7c05

33 files changed

+52
-51
lines changed

api/k0smotron.io/v1beta1/k0smotroncluster_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ func (c *ClusterSpec) GetK0sImageRef() string {
191191
k0sTag = DefaultK0SVersion
192192
}
193193

194-
if !strings.Contains(k0sTag, "+k0s.") {
194+
// Old references might contain "-k0s." suffix instead of "+k0s." so we check only for the presence of "k0s."
195+
if !strings.Contains(k0sTag, "k0s.") {
195196
k0sTag = fmt.Sprintf("%s+%s", k0sTag, DefaultK0SSuffix)
196197
}
197198

config/samples/capi/capi-controlplane-hetzner.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ kind: K0smotronControlPlane # This would somehow map to k0smotron
2424
metadata:
2525
name: cp-test
2626
spec:
27-
version: v1.27.2-k0s.0
27+
version: v1.27.2+k0s.0
2828
persistence:
2929
type: emptyDir
3030
service:

config/samples/capi/docker/cluster-with-machinedeployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ kind: K0smotronControlPlane
2626
metadata:
2727
name: docker-md-test
2828
spec:
29-
version: v1.27.2-k0s.0
29+
version: v1.27.2+k0s.0
3030
persistence:
3131
type: emptyDir
3232
service:

config/samples/capi/docker/docker-cluster.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ kind: K0smotronControlPlane
2626
metadata:
2727
name: docker-test
2828
spec:
29-
version: v1.27.2-k0s.0
29+
version: v1.27.2+k0s.0
3030
persistence:
3131
type: emptyDir
3232
service:

docs/capi-aws.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ kind: K0smotronControlPlane # This is the config for the controlplane
5050
metadata:
5151
name: k0s-aws-test-cp
5252
spec:
53-
version: v1.27.2-k0s.0
53+
version: v1.27.2+k0s.0
5454
persistence:
5555
type: emptyDir
5656
service:

docs/capi-controlplane.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ kind: K0smotronControlPlane
3030
metadata:
3131
name: cp-test
3232
spec:
33-
version: v1.27.2-k0s.0
33+
version: v1.27.2+k0s.0
3434
persistence:
3535
type: emptyDir
3636
service:

docs/capi-docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ metadata:
5454
name: docker-test-cp
5555
namespace: default
5656
spec:
57-
version: v1.27.2-k0s.0
57+
version: v1.27.2+k0s.0
5858
persistence:
5959
type: emptyDir
6060
service:

docs/capi-hetzner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ kind: K0smotronControlPlane # This is the config for the controlplane
5151
metadata:
5252
name: hetzner-test-cp
5353
spec:
54-
version: v1.27.2-k0s.0
54+
version: v1.27.2+k0s.0
5555
persistence:
5656
type: emptyDir
5757
service:

docs/capi-kubevirt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ kind: K0smotronControlPlane # This is the config for the controlplane
6464
metadata:
6565
name: k0s-test-cp
6666
spec:
67-
version: v1.27.4-k0s.0
67+
version: v1.27.4+k0s.0
6868
persistence:
6969
type: emptyDir
7070
service:

docs/capi-remote.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ metadata:
4141
name: remote-test
4242
namespace: default
4343
spec:
44-
version: v1.27.2-k0s.0
44+
version: v1.27.2+k0s.0
4545
persistence:
4646
type: emptyDir
4747
service:

0 commit comments

Comments
 (0)