From bd5b9c96e2563249a5633433703493b292b83ee9 Mon Sep 17 00:00:00 2001 From: Artem Chernyshev Date: Wed, 1 Sep 2021 19:05:55 +0300 Subject: [PATCH] fix: correctly define example for `extraMounts` The type was changed, but the example wasn't updated accordingly. Signed-off-by: Artem Chernyshev --- hack/release.toml | 2 +- .../config/types/v1alpha1/v1alpha1_types.go | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hack/release.toml b/hack/release.toml index 283b79931..ccc8d7fc8 100644 --- a/hack/release.toml +++ b/hack/release.toml @@ -6,7 +6,7 @@ github_repo = "talos-systems/talos" match_deps = "^github.com/(talos-systems/[a-zA-Z0-9-]+)$" # previous release -previous = "v0.11.0" +previous = "v0.12.0" pre_release = true diff --git a/pkg/machinery/config/types/v1alpha1/v1alpha1_types.go b/pkg/machinery/config/types/v1alpha1/v1alpha1_types.go index 5588ed042..77861e690 100644 --- a/pkg/machinery/config/types/v1alpha1/v1alpha1_types.go +++ b/pkg/machinery/config/types/v1alpha1/v1alpha1_types.go @@ -356,14 +356,16 @@ var ( mustParseURL("https://cluster1.internal:6443"), } - kubeletExtraMountsExample = []specs.Mount{ + kubeletExtraMountsExample = []ExtraMount{ { - Source: "/var/lib/example", - Destination: "/var/lib/example", - Type: "bind", - Options: []string{ - "rshared", - "rw", + specs.Mount{ + Source: "/var/lib/example", + Destination: "/var/lib/example", + Type: "bind", + Options: []string{ + "rshared", + "rw", + }, }, }, }