Skip to content

Commit 1b88f9f

Browse files
committed
feat: update Talos to 0.14.0
This includes config generation for 0.14.0 by default. Signed-off-by: Andrey Smirnov <[email protected]> (cherry picked from commit 8e39bd7)
1 parent 6d27c57 commit 1b88f9f

File tree

6 files changed

+99
-69
lines changed

6 files changed

+99
-69
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ NAME := cluster-api-talos-controller
99
ARTIFACTS := _out
1010
TEST_RUN ?= ./...
1111

12-
TOOLS ?= ghcr.io/talos-systems/tools:v0.8.0
13-
PKGS ?= v0.8.0
14-
TALOS_VERSION ?= v0.13.0
15-
K8S_VERSION ?= 1.22.2
12+
TOOLS ?= ghcr.io/talos-systems/tools:v0.9.0
13+
PKGS ?= v0.9.0
14+
TALOS_VERSION ?= v0.14.0
15+
K8S_VERSION ?= 1.23.1
1616

1717
CONTROLLER_GEN_VERSION ?= v0.7.0
1818
CONVERSION_GEN_VERSION ?= v0.22.2

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ This provider's versions are compatible with the following versions of Cluster A
3232

3333
This provider's versions are able to install and manage the following versions of Kubernetes:
3434

35-
| | v1.16 | v 1.17 | v1.18 | v1.19 | v1.20 | v1.21 | v1.22 |
36-
| -------------- | ----- | ------ | ----- | ----- | ----- | ----- | ----- |
37-
| CABPT (v0.3.x) ||||||| |
38-
| CABPT (v0.4.x) | | | |||||
39-
| CABPT (v0.5.x) | | | |||||
35+
| | v1.16 | v 1.17 | v1.18 | v1.19 | v1.20 | v1.21 | v1.22 | v1.23 |
36+
| -------------- | ----- | ------ | ----- | ----- | ----- | ----- | ----- | ----- |
37+
| CABPT (v0.3.x) ||||||| | |
38+
| CABPT (v0.4.x) | | | ||||||
39+
| CABPT (v0.5.x) | | | ||||||
4040

4141
This provider's versions are compatible with the following versions of Talos:
4242

43-
| | v0.11 | v0.12 | v0.13 |
44-
| ---------------- | ----- | ----- | ----- |
45-
| CABPT (v0.3.x) ||||
46-
| CABPT (v0.4.x) ||||
47-
| CABPT (v0.5.x) ||||
43+
| | v0.11 | v0.12 | v0.13 | v0.14 |
44+
| ---------------- | ----- | ----- | ----- | ----- |
45+
| CABPT (v0.3.x) |||| |
46+
| CABPT (v0.4.x) |||||
47+
| CABPT (v0.5.x) |||||
4848

4949
CABPT generates machine configuration compatible with Talos version specified in the `talosVersion:` field (see below).
5050

@@ -62,7 +62,7 @@ spec:
6262
controlPlaneConfig:
6363
controlplane:
6464
generateType: controlplane
65-
talosVersion: v0.13
65+
talosVersion: v0.14
6666
...
6767
```
6868

@@ -75,13 +75,13 @@ spec:
7575
template:
7676
spec:
7777
generateType: worker
78-
talosVersion: v0.13
78+
talosVersion: v0.14
7979
```
8080
8181
Fields available in the `TalosConfigTemplate` (and `TalosConfig`) resources:
8282

8383
- `generateType`: Talos machine configuration type to generate (`controlplane`, `init` (deprecated), `worker`) or `none` for user-supplied configuration (see below)
84-
- `talosVersion`: version of Talos to generate machine configuration for (e.g. `v0.13`, patch version might be omitted).
84+
- `talosVersion`: version of Talos to generate machine configuration for (e.g. `v0.14`, patch version might be omitted).
8585
CABPT defaults to the latest supported Talos version, but it can generate configuration compatible with previous versions of Talos.
8686
It is recommended to always set this field explicitly to avoid issues when CABPT is upgraded to the version which supports new Talos version.
8787
- `configPatches` (optional): set of machine configuration patches to apply to the generated configuration.
@@ -96,7 +96,7 @@ Machine configuration generated is compatible with the Talos version set in the
9696
```yaml
9797
spec:
9898
generateType: controlplane
99-
talosVersion: v0.13
99+
talosVersion: v0.14
100100
```
101101

102102
### User-supplied Machine Configuration
@@ -126,7 +126,7 @@ The format of these patches is based on [JSON 6902](http://jsonpatch.com/) that
126126
```yaml
127127
spec:
128128
generateType: controlplane
129-
talosVersion: v0.13
129+
talosVersion: v0.14
130130
configPatches:
131131
- op: replace
132132
path: /machine/install

controllers/talosconfig_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@ func (r *TalosConfigReconciler) genConfigs(ctx context.Context, scope *TalosConf
469469

470470
genOptions := []generate.GenOption{generate.WithDNSDomain(clusterDNS)}
471471

472-
// default version contract to v0.8 unless user specifies something different.
473472
versionContract := defaultVersionContract
474473

475474
if scope.Config.Spec.TalosVersion != "" {

go.mod

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ module github.com/talos-systems/cluster-api-bootstrap-provider-talos
33
go 1.17
44

55
require (
6-
github.com/AlekSi/pointer v1.1.0
7-
github.com/evanphx/json-patch v4.11.0+incompatible
6+
github.com/AlekSi/pointer v1.2.0
7+
github.com/evanphx/json-patch v5.6.0+incompatible
88
github.com/go-logr/logr v0.4.0
99
github.com/spf13/pflag v1.0.5
1010
github.com/stretchr/testify v1.7.0
1111
github.com/talos-systems/crypto v0.3.4
12-
github.com/talos-systems/talos/pkg/machinery v0.13.0
13-
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6
12+
github.com/talos-systems/talos/pkg/machinery v0.14.0
13+
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881
1414
gopkg.in/yaml.v2 v2.4.0
15-
inet.af/netaddr v0.0.0-20210903134321-85fa6c94624e
15+
inet.af/netaddr v0.0.0-20211027220019-c74959edd3b6
1616
k8s.io/api v0.22.2
1717
k8s.io/apiextensions-apiserver v0.22.2
1818
k8s.io/apimachinery v0.22.2
@@ -22,6 +22,7 @@ require (
2222
)
2323

2424
require (
25+
github.com/BurntSushi/toml v0.4.1 // indirect
2526
github.com/MakeNowJust/heredoc v1.0.0 // indirect
2627
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
2728
github.com/beorn7/perks v1.0.1 // indirect
@@ -31,7 +32,7 @@ require (
3132
github.com/containernetworking/cni v1.0.1 // indirect
3233
github.com/coredns/caddy v1.1.0 // indirect
3334
github.com/coredns/corefile-migration v1.0.13 // indirect
34-
github.com/cosi-project/runtime v0.0.0-20210906201716-5cb7f5002d77 // indirect
35+
github.com/cosi-project/runtime v0.0.0-20211216175730-264f8fcd1a4f // indirect
3536
github.com/davecgh/go-spew v1.1.1 // indirect
3637
github.com/docker/distribution v2.7.1+incompatible // indirect
3738
github.com/drone/envsubst/v2 v2.0.0-20210615175204-7bf45dbf5372 // indirect
@@ -54,14 +55,14 @@ require (
5455
github.com/hashicorp/hcl v1.0.0 // indirect
5556
github.com/imdario/mergo v0.3.12 // indirect
5657
github.com/josharian/native v0.0.0-20200817173448-b6b71def0850 // indirect
57-
github.com/jsimonetti/rtnetlink v0.0.0-20210922080037-435639c8e6a8 // indirect
58+
github.com/jsimonetti/rtnetlink v0.0.0-20211203074127-fd9a11f42291 // indirect
5859
github.com/json-iterator/go v1.1.11 // indirect
5960
github.com/magiconair/properties v1.8.5 // indirect
6061
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
61-
github.com/mdlayher/ethtool v0.0.0-20210210192532-2b88debcdd43 // indirect
62+
github.com/mdlayher/ethtool v0.0.0-20211028163843-288d040e9d60 // indirect
6263
github.com/mdlayher/genetlink v1.0.0 // indirect
63-
github.com/mdlayher/netlink v1.4.1 // indirect
64-
github.com/mdlayher/socket v0.0.0-20210307095302-262dc9984e00 // indirect
64+
github.com/mdlayher/netlink v1.4.2 // indirect
65+
github.com/mdlayher/socket v0.0.0-20211102153432-57e3fa563ecb // indirect
6566
github.com/mitchellh/mapstructure v1.4.2 // indirect
6667
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
6768
github.com/modern-go/reflect2 v1.0.1 // indirect
@@ -81,28 +82,32 @@ require (
8182
github.com/spf13/jwalterweatherman v1.1.0 // indirect
8283
github.com/spf13/viper v1.9.0 // indirect
8384
github.com/subosito/gotenv v1.2.0 // indirect
84-
github.com/talos-systems/go-blockdevice v0.2.4 // indirect
85+
github.com/talos-systems/go-blockdevice v0.2.5 // indirect
8586
github.com/talos-systems/go-debug v0.2.1 // indirect
86-
github.com/talos-systems/net v0.3.0 // indirect
87+
github.com/talos-systems/net v0.3.1 // indirect
8788
go.uber.org/atomic v1.7.0 // indirect
8889
go.uber.org/multierr v1.7.0 // indirect
8990
go.uber.org/zap v1.19.0 // indirect
90-
go4.org/intern v0.0.0-20210108033219-3eb7198706b2 // indirect
91-
go4.org/unsafe/assume-no-moving-gc v0.0.0-20201222180813-1025295fd063 // indirect
91+
go4.org/intern v0.0.0-20211027215823-ae77deb06f29 // indirect
92+
go4.org/unsafe/assume-no-moving-gc v0.0.0-20211027215541-db492cf91b37 // indirect
9293
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
93-
golang.org/x/net v0.0.0-20210525063256-abc453219eb5 // indirect
94+
golang.org/x/mod v0.5.1 // indirect
95+
golang.org/x/net v0.0.0-20211201190559-0a0e4e1bb54c // indirect
9496
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
9597
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
9698
golang.org/x/text v0.3.6 // indirect
9799
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
100+
golang.org/x/tools v0.1.7 // indirect
101+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
98102
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
99103
google.golang.org/appengine v1.6.7 // indirect
100-
google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0 // indirect
101-
google.golang.org/grpc v1.41.0 // indirect
104+
google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9 // indirect
105+
google.golang.org/grpc v1.42.0 // indirect
102106
google.golang.org/protobuf v1.27.1 // indirect
103107
gopkg.in/inf.v0 v0.9.1 // indirect
104108
gopkg.in/ini.v1 v1.63.2 // indirect
105109
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
110+
honnef.co/go/tools v0.2.2 // indirect
106111
k8s.io/apiserver v0.22.2 // indirect
107112
k8s.io/cluster-bootstrap v0.22.2 // indirect
108113
k8s.io/component-base v0.22.2 // indirect

0 commit comments

Comments
 (0)