Skip to content

Commit 540603a

Browse files
committed
feat: update to Talos 1.6.0
Also update CAPI base to 1.6.0, and adapt accordingly. Signed-off-by: Andrey Smirnov <[email protected]>
1 parent 8a6cc13 commit 540603a

13 files changed

+446
-379
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ENV GOPROXY https://proxy.golang.org
2424
ENV CGO_ENABLED 0
2525
ENV GOCACHE /.cache/go-build
2626
ENV GOMODCACHE /.cache/mod
27+
ENV GOTOOLCHAIN local
2728
ARG CONTROLLER_GEN_VERSION
2829
ARG CONVERSION_GEN_VERSION
2930
RUN --mount=type=cache,target=/.cache go install sigs.k8s.io/controller-tools/cmd/controller-gen@${CONTROLLER_GEN_VERSION}

Makefile

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

12-
TOOLS ?= ghcr.io/siderolabs/tools:v1.5.0
13-
PKGS ?= v1.5.0
14-
TALOS_VERSION ?= v1.5.2
15-
K8S_VERSION ?= 1.27.4
12+
TOOLS ?= ghcr.io/siderolabs/tools:v1.6.0-1-g336d248
13+
PKGS ?= v1.6.0-3-g617d342
14+
TALOS_VERSION ?= v1.6.0
15+
K8S_VERSION ?= 1.28.4
1616

17-
CONTROLLER_GEN_VERSION ?= v0.12.0
18-
CONVERSION_GEN_VERSION ?= v0.27.2
17+
CONTROLLER_GEN_VERSION ?= v0.13.0
18+
CONVERSION_GEN_VERSION ?= v0.28.4
1919

2020
BUILD := docker buildx build
2121
PLATFORM ?= linux/amd64

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,21 @@ This provider's versions are compatible with the following versions of Cluster A
5454

5555
This provider's versions are able to install and manage the following versions of Kubernetes:
5656
57-
| | v1.19 | v1.20 | v1.21 | v1.22 | v1.23 | v1.24 | v1.25 | v1.26 | v1.27 | v1.28 |
58-
| -------------- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- |
59-
| CABPT (v0.5.x) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | |
60-
| CABPT (v0.6.x) | | | | | | ✓ | ✓ | ✓ | ✓ | ✓ |
57+
| | v1.19 | v1.20 | v1.21 | v1.22 | v1.23 | v1.24 | v1.25 | v1.26 | v1.27 | v1.28 | v1.29 |
58+
| -------------- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- |
59+
| CABPT (v0.5.x) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | |
60+
| CABPT (v0.6.x) | | | | | | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
6161
6262
This provider's versions are compatible with the following versions of Talos:
6363

64-
| | v1.0 | v1.1 | v1.2 | v1.3 | v1.4 | v1.5 |
65-
| ---------------- | ----- | ----- | ----- | ----- | ----- | ----- |
66-
| CABPT (v0.5.x) ||||| | |
67-
| CABPT (v0.6.x) | | |||||
64+
| | v1.0 | v1.1 | v1.2 | v1.3 | v1.4 | v1.5 | v1.6 |
65+
| ---------------- | ----- | ----- | ----- | ----- | ----- | ----- | ----- |
66+
| CABPT (v0.5.x) ||||| | | |
67+
| CABPT (v0.6.x) | | ||||||
6868

69-
CABPT generates machine configuration compatible with Talos version specified in the `talosVersion:` field (see below).
69+
> Note: CABPT is not compatible with multi-document Talos Linux machine configuration, as it relies on JSON patch to apply configuration patches.
70+
71+
CABPT generates machine configuration compatible with Talos Linux version specified in the `talosVersion:` field (see below).
7072

7173
## Usage
7274

@@ -82,7 +84,7 @@ spec:
8284
controlPlaneConfig:
8385
controlplane:
8486
generateType: controlplane
85-
talosVersion: v1.1
87+
talosVersion: v1.6
8688
...
8789
```
8890

@@ -95,7 +97,7 @@ spec:
9597
template:
9698
spec:
9799
generateType: worker
98-
talosVersion: v1.1
100+
talosVersion: v1.6
99101
```
100102

101103
Fields available in the `TalosConfigTemplate` (and `TalosConfig`) resources:
@@ -148,7 +150,7 @@ The format of these patches is based on [JSON 6902](http://jsonpatch.com/) that
148150
```yaml
149151
spec:
150152
generateType: controlplane
151-
talosVersion: v1.5
153+
talosVersion: v1.6
152154
configPatches:
153155
- op: replace
154156
path: /machine/install

api/v1alpha2/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha3/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/bootstrap.cluster.x-k8s.io_talosconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.12.0
6+
controller-gen.kubebuilder.io/version: v0.13.0
77
name: talosconfigs.bootstrap.cluster.x-k8s.io
88
spec:
99
group: bootstrap.cluster.x-k8s.io

config/crd/bases/bootstrap.cluster.x-k8s.io_talosconfigtemplates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.12.0
6+
controller-gen.kubebuilder.io/version: v0.13.0
77
name: talosconfigtemplates.bootstrap.cluster.x-k8s.io
88
spec:
99
group: bootstrap.cluster.x-k8s.io

config/manager/manager.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,20 @@ spec:
1919
- command:
2020
- /manager
2121
args:
22-
- --metrics-bind-addr=127.0.0.1:8080
2322
- --enable-leader-election
2423
- "--feature-gates=MachinePool=${EXP_MACHINE_POOL:=false}"
24+
- "--diagnostics-address=${CAPI_DIAGNOSTICS_ADDRESS:=:8443}"
25+
- "--insecure-diagnostics=${CAPI_INSECURE_DIAGNOSTICS:=false}"
2526
image: controller:latest
2627
imagePullPolicy: Always
2728
name: manager
2829
ports:
2930
- containerPort: 9440
3031
name: healthz
3132
protocol: TCP
33+
- containerPort: 8443
34+
name: metrics
35+
protocol: TCP
3236
readinessProbe:
3337
httpGet:
3438
path: /readyz

go.mod

Lines changed: 87 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,81 @@
11
module github.com/siderolabs/cluster-api-bootstrap-provider-talos
22

3-
go 1.20
3+
go 1.21.5
44

55
require (
6-
github.com/evanphx/json-patch v5.6.0+incompatible
7-
github.com/go-logr/logr v1.2.4
8-
github.com/google/go-cmp v0.5.9
6+
github.com/evanphx/json-patch v5.7.0+incompatible
7+
github.com/go-logr/logr v1.3.0
8+
github.com/google/go-cmp v0.6.0
99
github.com/siderolabs/crypto v0.4.1
1010
github.com/siderolabs/go-pointer v1.0.0
11-
github.com/siderolabs/talos/pkg/machinery v1.5.2
11+
github.com/siderolabs/talos/pkg/machinery v1.6.0
1212
github.com/spf13/pflag v1.0.5
1313
github.com/stretchr/testify v1.8.4
14-
golang.org/x/sys v0.10.0
14+
golang.org/x/sys v0.14.1-0.20231108175955-e4099bfacb8c
1515
gopkg.in/yaml.v2 v2.4.0
16-
k8s.io/api v0.27.2
17-
k8s.io/apiextensions-apiserver v0.27.2
18-
k8s.io/apimachinery v0.27.2
19-
k8s.io/client-go v0.27.2
20-
sigs.k8s.io/cluster-api v1.5.0
21-
sigs.k8s.io/controller-runtime v0.15.0
16+
k8s.io/api v0.28.4
17+
k8s.io/apiextensions-apiserver v0.28.4
18+
k8s.io/apimachinery v0.28.4
19+
k8s.io/client-go v0.28.4
20+
k8s.io/component-base v0.28.4
21+
sigs.k8s.io/cluster-api v1.6.0
22+
sigs.k8s.io/controller-runtime v0.16.3
2223
)
2324

2425
require (
2526
github.com/MakeNowJust/heredoc v1.0.0 // indirect
2627
github.com/Masterminds/goutils v1.1.1 // indirect
2728
github.com/Masterminds/semver/v3 v3.2.0 // indirect
2829
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
30+
github.com/NYTimes/gziphandler v1.1.1 // indirect
31+
github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 // indirect
2932
github.com/adrg/xdg v0.4.0 // indirect
30-
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
33+
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
3134
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
3235
github.com/beorn7/perks v1.0.1 // indirect
33-
github.com/blang/semver v3.5.1+incompatible // indirect
3436
github.com/blang/semver/v4 v4.0.0 // indirect
37+
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
3538
github.com/cespare/xxhash/v2 v2.2.0 // indirect
39+
github.com/cloudflare/circl v1.3.3 // indirect
3640
github.com/containerd/go-cni v1.1.9 // indirect
3741
github.com/containernetworking/cni v1.1.2 // indirect
38-
github.com/coredns/caddy v1.1.0 // indirect
39-
github.com/coredns/corefile-migration v1.0.20 // indirect
40-
github.com/davecgh/go-spew v1.1.1 // indirect
41-
github.com/docker/distribution v2.8.2+incompatible // indirect
42+
github.com/coreos/go-semver v0.3.1 // indirect
43+
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
44+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
45+
github.com/distribution/reference v0.5.0 // indirect
4246
github.com/drone/envsubst/v2 v2.0.0-20210730161058-179042472c46 // indirect
4347
github.com/dustin/go-humanize v1.0.1 // indirect
44-
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
45-
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
48+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
49+
github.com/evanphx/json-patch/v5 v5.7.0 // indirect
50+
github.com/felixge/httpsnoop v1.0.4 // indirect
4651
github.com/fsnotify/fsnotify v1.6.0 // indirect
4752
github.com/ghodss/yaml v1.0.0 // indirect
53+
github.com/go-logr/stdr v1.2.2 // indirect
4854
github.com/go-logr/zapr v1.2.4 // indirect
4955
github.com/go-openapi/jsonpointer v0.19.6 // indirect
50-
github.com/go-openapi/jsonreference v0.20.1 // indirect
56+
github.com/go-openapi/jsonreference v0.20.2 // indirect
5157
github.com/go-openapi/swag v0.22.3 // indirect
5258
github.com/gobuffalo/flect v1.0.2 // indirect
5359
github.com/gogo/protobuf v1.3.2 // indirect
5460
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
5561
github.com/golang/protobuf v1.5.3 // indirect
56-
github.com/google/cel-go v0.12.6 // indirect
57-
github.com/google/gnostic v0.6.9 // indirect
58-
github.com/google/go-github/v48 v48.2.0 // indirect
62+
github.com/google/cel-go v0.16.1 // indirect
63+
github.com/google/gnostic-models v0.6.8 // indirect
64+
github.com/google/go-github/v53 v53.2.0 // indirect
5965
github.com/google/go-querystring v1.1.0 // indirect
6066
github.com/google/gofuzz v1.2.0 // indirect
61-
github.com/google/uuid v1.3.0 // indirect
67+
github.com/google/uuid v1.3.1 // indirect
68+
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
69+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 // indirect
6270
github.com/hashicorp/errwrap v1.1.0 // indirect
6371
github.com/hashicorp/go-multierror v1.1.1 // indirect
6472
github.com/hashicorp/hcl v1.0.0 // indirect
6573
github.com/huandu/xstrings v1.3.3 // indirect
6674
github.com/imdario/mergo v0.3.13 // indirect
75+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
6776
github.com/josharian/intern v1.0.0 // indirect
6877
github.com/josharian/native v1.1.0 // indirect
69-
github.com/jsimonetti/rtnetlink v1.3.4 // indirect
78+
github.com/jsimonetti/rtnetlink v1.4.0 // indirect
7079
github.com/json-iterator/go v1.1.12 // indirect
7180
github.com/magiconair/properties v1.8.7 // indirect
7281
github.com/mailru/easyjson v0.7.7 // indirect
@@ -81,52 +90,72 @@ require (
8190
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
8291
github.com/modern-go/reflect2 v1.0.2 // indirect
8392
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
84-
github.com/onsi/gomega v1.27.8 // indirect
93+
github.com/onsi/gomega v1.30.0 // indirect
8594
github.com/opencontainers/go-digest v1.0.0 // indirect
86-
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 // indirect
87-
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
95+
github.com/opencontainers/runtime-spec v1.1.0-rc.1 // indirect
96+
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
8897
github.com/pkg/errors v0.9.1 // indirect
89-
github.com/pmezard/go-difflib v1.0.0 // indirect
90-
github.com/prometheus/client_golang v1.16.0 // indirect
91-
github.com/prometheus/client_model v0.4.0 // indirect
92-
github.com/prometheus/common v0.42.0 // indirect
93-
github.com/prometheus/procfs v0.10.1 // indirect
98+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
99+
github.com/prometheus/client_golang v1.17.0 // indirect
100+
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect
101+
github.com/prometheus/common v0.44.0 // indirect
102+
github.com/prometheus/procfs v0.11.1 // indirect
94103
github.com/ryanuber/go-glob v1.0.0 // indirect
104+
github.com/sagikazarmark/locafero v0.3.0 // indirect
105+
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
95106
github.com/shopspring/decimal v1.3.1 // indirect
96-
github.com/siderolabs/gen v0.4.5 // indirect
97-
github.com/siderolabs/go-blockdevice v0.4.6 // indirect
107+
github.com/siderolabs/gen v0.4.7 // indirect
108+
github.com/siderolabs/go-blockdevice v0.4.7 // indirect
98109
github.com/siderolabs/net v0.4.0 // indirect
99-
github.com/spf13/afero v1.9.5 // indirect
110+
github.com/sourcegraph/conc v0.3.0 // indirect
111+
github.com/spf13/afero v1.10.0 // indirect
100112
github.com/spf13/cast v1.5.1 // indirect
101-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
102-
github.com/spf13/viper v1.16.0 // indirect
113+
github.com/spf13/cobra v1.8.0 // indirect
114+
github.com/spf13/viper v1.17.0 // indirect
103115
github.com/stoewer/go-strcase v1.2.0 // indirect
104-
github.com/subosito/gotenv v1.4.2 // indirect
116+
github.com/subosito/gotenv v1.6.0 // indirect
105117
github.com/valyala/fastjson v1.6.4 // indirect
106-
go.uber.org/atomic v1.10.0 // indirect
107-
go.uber.org/multierr v1.8.0 // indirect
108-
go.uber.org/zap v1.24.0 // indirect
109-
golang.org/x/crypto v0.11.0 // indirect
110-
golang.org/x/net v0.12.0 // indirect
111-
golang.org/x/oauth2 v0.10.0 // indirect
112-
golang.org/x/sync v0.3.0 // indirect
113-
golang.org/x/term v0.10.0 // indirect
114-
golang.org/x/text v0.11.0 // indirect
118+
go.etcd.io/etcd/api/v3 v3.5.10 // indirect
119+
go.etcd.io/etcd/client/pkg/v3 v3.5.10 // indirect
120+
go.etcd.io/etcd/client/v3 v3.5.10 // indirect
121+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0 // indirect
122+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.0 // indirect
123+
go.opentelemetry.io/otel v1.20.0 // indirect
124+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.20.0 // indirect
125+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.20.0 // indirect
126+
go.opentelemetry.io/otel/metric v1.20.0 // indirect
127+
go.opentelemetry.io/otel/sdk v1.20.0 // indirect
128+
go.opentelemetry.io/otel/trace v1.20.0 // indirect
129+
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
130+
go.uber.org/multierr v1.11.0 // indirect
131+
go.uber.org/zap v1.26.0 // indirect
132+
golang.org/x/crypto v0.15.0 // indirect
133+
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
134+
golang.org/x/net v0.18.0 // indirect
135+
golang.org/x/oauth2 v0.14.0 // indirect
136+
golang.org/x/sync v0.5.0 // indirect
137+
golang.org/x/term v0.14.0 // indirect
138+
golang.org/x/text v0.14.0 // indirect
115139
golang.org/x/time v0.3.0 // indirect
116-
gomodules.xyz/jsonpatch/v2 v2.3.0 // indirect
140+
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
117141
google.golang.org/appengine v1.6.7 // indirect
118-
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
142+
google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f // indirect
143+
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
144+
google.golang.org/genproto/googleapis/rpc v0.0.0-20231127180814-3a041ad873d4 // indirect
145+
google.golang.org/grpc v1.59.0 // indirect
119146
google.golang.org/protobuf v1.31.0 // indirect
120147
gopkg.in/inf.v0 v0.9.1 // indirect
121148
gopkg.in/ini.v1 v1.67.0 // indirect
149+
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
122150
gopkg.in/yaml.v3 v3.0.1 // indirect
123-
k8s.io/apiserver v0.27.2 // indirect
124-
k8s.io/cluster-bootstrap v0.27.2 // indirect
125-
k8s.io/component-base v0.27.2 // indirect
126-
k8s.io/klog/v2 v2.90.1 // indirect
127-
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
128-
k8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect
151+
k8s.io/apiserver v0.28.4 // indirect
152+
k8s.io/cluster-bootstrap v0.28.4 // indirect
153+
k8s.io/klog/v2 v2.100.1 // indirect
154+
k8s.io/kms v0.28.4 // indirect
155+
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
156+
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
157+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2 // indirect
129158
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
130159
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
131-
sigs.k8s.io/yaml v1.3.0 // indirect
160+
sigs.k8s.io/yaml v1.4.0 // indirect
132161
)

0 commit comments

Comments
 (0)