feat: bring in install-cni & pod-checkpointer from extras packages
This introduces newly built multi-arch images from `talos-systems/extras`. Also fixed default installer image if config is missing. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
parent
dc6ea74c35
commit
1572966686
48
Dockerfile
48
Dockerfile
@ -121,9 +121,10 @@ FROM base AS init-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
WORKDIR /src/internal/app/init
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Talos -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS}" -o /init
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Talos -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS}" -o /init
|
||||
RUN chmod +x /init
|
||||
|
||||
FROM scratch AS init
|
||||
@ -135,12 +136,13 @@ FROM base AS machined-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG USERNAME
|
||||
ARG REGISTRY
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
ARG IMAGES_PKGS="github.com/talos-systems/talos/pkg/images"
|
||||
WORKDIR /src/internal/app/machined
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Talos -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY}" -o /machined
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Talos -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY}" -o /machined
|
||||
RUN chmod +x /machined
|
||||
|
||||
FROM scratch AS machined
|
||||
@ -152,9 +154,10 @@ FROM base AS timed-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
WORKDIR /src/internal/app/timed
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS}" -o /timed
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS}" -o /timed
|
||||
RUN chmod +x /timed
|
||||
|
||||
FROM base AS timed-image
|
||||
@ -171,9 +174,10 @@ FROM base AS apid-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
WORKDIR /src/internal/app/apid
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS}" -o /apid
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS}" -o /apid
|
||||
RUN chmod +x /apid
|
||||
|
||||
FROM base AS apid-image
|
||||
@ -190,9 +194,10 @@ FROM base AS trustd-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
WORKDIR /src/internal/app/trustd
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS}" -o /trustd
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS}" -o /trustd
|
||||
RUN chmod +x /trustd
|
||||
|
||||
FROM base AS trustd-image
|
||||
@ -209,9 +214,10 @@ FROM base AS networkd-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
WORKDIR /src/internal/app/networkd
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS}" -o /networkd
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS}" -o /networkd
|
||||
RUN chmod +x /networkd
|
||||
|
||||
FROM base AS networkd-image
|
||||
@ -228,9 +234,10 @@ FROM base AS routerd-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
WORKDIR /src/internal/app/routerd
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS}" -o /routerd
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS}" -o /routerd
|
||||
RUN chmod +x /routerd
|
||||
|
||||
FROM base AS routerd-image
|
||||
@ -248,9 +255,10 @@ FROM base AS bootkube-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
WORKDIR /src/internal/app/bootkube
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS}" -o /bootkube
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Server -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS}" -o /bootkube
|
||||
RUN chmod +x /bootkube
|
||||
|
||||
FROM base AS bootkube-image
|
||||
@ -268,6 +276,7 @@ FROM base AS talosctl-linux-amd64-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG ARTIFACTS
|
||||
ARG USERNAME
|
||||
ARG REGISTRY
|
||||
@ -275,13 +284,14 @@ ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
ARG IMAGES_PKGS="github.com/talos-systems/talos/pkg/images"
|
||||
ARG MGMT_HELPERS_PKG="github.com/talos-systems/talos/cmd/talosctl/pkg/mgmt/helpers"
|
||||
WORKDIR /src/cmd/talosctl
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY} -X ${MGMT_HELPERS_PKG}.ArtifactsPath=${ARTIFACTS}" -o /talosctl-linux-amd64
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY} -X ${MGMT_HELPERS_PKG}.ArtifactsPath=${ARTIFACTS}" -o /talosctl-linux-amd64
|
||||
RUN chmod +x /talosctl-linux-amd64
|
||||
|
||||
FROM base AS talosctl-linux-arm64-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG ARTIFACTS
|
||||
ARG USERNAME
|
||||
ARG REGISTRY
|
||||
@ -289,13 +299,14 @@ ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
ARG IMAGES_PKGS="github.com/talos-systems/talos/pkg/images"
|
||||
ARG MGMT_HELPERS_PKG="github.com/talos-systems/talos/cmd/talosctl/pkg/mgmt/helpers"
|
||||
WORKDIR /src/cmd/talosctl
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY} -X ${MGMT_HELPERS_PKG}.ArtifactsPath=${ARTIFACTS}" -o /talosctl-linux-arm64
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY} -X ${MGMT_HELPERS_PKG}.ArtifactsPath=${ARTIFACTS}" -o /talosctl-linux-arm64
|
||||
RUN chmod +x /talosctl-linux-arm64
|
||||
|
||||
FROM base AS talosctl-linux-armv7-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG ARTIFACTS
|
||||
ARG USERNAME
|
||||
ARG REGISTRY
|
||||
@ -303,7 +314,7 @@ ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
ARG IMAGES_PKGS="github.com/talos-systems/talos/pkg/images"
|
||||
ARG MGMT_HELPERS_PKG="github.com/talos-systems/talos/cmd/talosctl/pkg/mgmt/helpers"
|
||||
WORKDIR /src/cmd/talosctl
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=linux GOARCH=arm GOARM=7 go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY} -X ${MGMT_HELPERS_PKG}.ArtifactsPath=${ARTIFACTS}" -o /talosctl-linux-armv7
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=linux GOARCH=arm GOARM=7 go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY} -X ${MGMT_HELPERS_PKG}.ArtifactsPath=${ARTIFACTS}" -o /talosctl-linux-armv7
|
||||
RUN chmod +x /talosctl-linux-armv7
|
||||
|
||||
FROM scratch AS talosctl-linux
|
||||
@ -315,6 +326,7 @@ FROM base AS talosctl-darwin-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG ARTIFACTS
|
||||
ARG USERNAME
|
||||
ARG REGISTRY
|
||||
@ -322,7 +334,7 @@ ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
ARG IMAGES_PKGS="github.com/talos-systems/talos/pkg/images"
|
||||
ARG MGMT_HELPERS_PKG="github.com/talos-systems/talos/cmd/talosctl/pkg/mgmt/helpers"
|
||||
WORKDIR /src/cmd/talosctl
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY} -X ${MGMT_HELPERS_PKG}.ArtifactsPath=${ARTIFACTS}" -o /talosctl-darwin-amd64
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY} -X ${MGMT_HELPERS_PKG}.ArtifactsPath=${ARTIFACTS}" -o /talosctl-darwin-amd64
|
||||
RUN chmod +x /talosctl-darwin-amd64
|
||||
|
||||
FROM scratch AS talosctl-darwin
|
||||
@ -417,12 +429,13 @@ FROM base AS installer-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG USERNAME
|
||||
ARG REGISTRY
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
ARG IMAGES_PKGS="github.com/talos-systems/talos/pkg/images"
|
||||
WORKDIR /src/cmd/installer
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Talos -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY}" -o /installer
|
||||
RUN --mount=type=cache,target=/.cache/go-build go build -ldflags "-s -w -X ${VERSION_PKG}.Name=Talos -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY}" -o /installer
|
||||
RUN chmod +x /installer
|
||||
|
||||
FROM alpine:3.11 AS installer
|
||||
@ -490,12 +503,13 @@ FROM base AS integration-test-linux-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG USERNAME
|
||||
ARG REGISTRY
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
ARG IMAGES_PKGS="github.com/talos-systems/talos/pkg/images"
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=linux GOARCH=amd64 go test -c \
|
||||
-ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${IMAGES_PKGS}.Registry=${REGISTRY}" \
|
||||
-ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS} -X ${IMAGES_PKGS}.Registry=${REGISTRY}" \
|
||||
-tags integration,integration_api,integration_cli,integration_k8s \
|
||||
./internal/integration
|
||||
|
||||
@ -506,12 +520,13 @@ FROM base AS integration-test-darwin-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG USERNAME
|
||||
ARG REGISTRY
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
ARG IMAGES_PKGS="github.com/talos-systems/talos/pkg/images"
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=darwin GOARCH=amd64 go test -c \
|
||||
-ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${IMAGES_PKGS}.Registry=${REGISTRY}" \
|
||||
-ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS} -X ${IMAGES_PKGS}.Registry=${REGISTRY}" \
|
||||
-tags integration,integration_api,integration_cli,integration_k8s \
|
||||
./internal/integration
|
||||
|
||||
@ -524,6 +539,7 @@ FROM base AS integration-test-provision-linux-build
|
||||
ARG SHA
|
||||
ARG TAG
|
||||
ARG PKGS
|
||||
ARG EXTRAS
|
||||
ARG USERNAME
|
||||
ARG REGISTRY
|
||||
ARG VERSION_PKG="github.com/talos-systems/talos/pkg/version"
|
||||
@ -531,7 +547,7 @@ ARG IMAGES_PKGS="github.com/talos-systems/talos/pkg/images"
|
||||
ARG MGMT_HELPERS_PKG="github.com/talos-systems/talos/cmd/talosctl/pkg/mgmt/helpers"
|
||||
ARG ARTIFACTS
|
||||
RUN --mount=type=cache,target=/.cache/go-build GOOS=linux GOARCH=amd64 go test -c \
|
||||
-ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY} -X ${MGMT_HELPERS_PKG}.ArtifactsPath=${ARTIFACTS}" \
|
||||
-ldflags "-s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG} -X ${VERSION_PKG}.PkgsVersion=${PKGS} -X ${VERSION_PKG}.ExtrasVersion=${EXTRAS} -X ${IMAGES_PKGS}.Username=${USERNAME} -X ${IMAGES_PKGS}.Registry=${REGISTRY} -X ${MGMT_HELPERS_PKG}.ArtifactsPath=${ARTIFACTS}" \
|
||||
-tags integration,integration_provision \
|
||||
./internal/integration
|
||||
|
||||
|
2
Makefile
2
Makefile
@ -9,6 +9,7 @@ DOCKER_LOGIN_ENABLED ?= true
|
||||
ARTIFACTS := _out
|
||||
TOOLS ?= ghcr.io/talos-systems/tools:v0.3.0-6-g7b00e69
|
||||
PKGS ?= v0.3.0-14-g5f4cff9
|
||||
EXTRAS ?= v0.1.0
|
||||
GO_VERSION ?= 1.15
|
||||
GOFUMPT_VERSION ?= abc0db2c416aca0f60ea33c23c76665f6e7ba0b6
|
||||
IMPORTVET ?= autonomy/importvet:f6b07d9
|
||||
@ -38,6 +39,7 @@ COMMON_ARGS += --platform=$(PLATFORM)
|
||||
COMMON_ARGS += --push=$(PUSH)
|
||||
COMMON_ARGS += --build-arg=TOOLS=$(TOOLS)
|
||||
COMMON_ARGS += --build-arg=PKGS=$(PKGS)
|
||||
COMMON_ARGS += --build-arg=EXTRAS=$(EXTRAS)
|
||||
COMMON_ARGS += --build-arg=GOFUMPT_VERSION=$(GOFUMPT_VERSION)
|
||||
COMMON_ARGS += --build-arg=SHA=$(SHA)
|
||||
COMMON_ARGS += --build-arg=TAG=$(TAG)
|
||||
|
@ -44,6 +44,7 @@ var imagesCmd = &cobra.Command{
|
||||
fmt.Printf("%s\n", images.KubeScheduler)
|
||||
fmt.Printf("%s\n", images.KubeProxy)
|
||||
fmt.Printf("%s\n", images.Kubelet)
|
||||
fmt.Printf("%s\n", images.PodCheckpointer)
|
||||
fmt.Printf("%s\n", imagespkg.DefaultInstallerImage)
|
||||
|
||||
return nil
|
||||
|
@ -20,7 +20,8 @@ func List(config config.Provider) asset.ImageVersions {
|
||||
|
||||
// Override all kube-related images with default val or specified image locations
|
||||
images.Flannel = fmt.Sprintf("quay.io/coreos/flannel:v0.12.0-%s", runtime.GOARCH)
|
||||
images.FlannelCNI = fmt.Sprintf("ghcr.io/talos-systems/install-cni:%s", version.PkgsVersion)
|
||||
images.FlannelCNI = fmt.Sprintf("ghcr.io/talos-systems/install-cni:%s", version.ExtrasVersion)
|
||||
images.PodCheckpointer = fmt.Sprintf("ghcr.io/talos-systems/pod-checkpointer:%s", version.ExtrasVersion)
|
||||
images.Kubelet = config.Machine().Kubelet().Image()
|
||||
images.KubeAPIServer = config.Cluster().APIServer().Image()
|
||||
images.KubeControllerManager = config.Cluster().ControllerManager().Image()
|
||||
@ -30,7 +31,10 @@ func List(config config.Provider) asset.ImageVersions {
|
||||
|
||||
// Allow for overriding by users via config data
|
||||
images.CoreDNS = config.Cluster().CoreDNS().Image()
|
||||
images.PodCheckpointer = config.Cluster().PodCheckpointer().Image()
|
||||
|
||||
if config.Cluster().PodCheckpointer().Image() != "" {
|
||||
images.PodCheckpointer = config.Cluster().PodCheckpointer().Image()
|
||||
}
|
||||
|
||||
return images
|
||||
}
|
||||
|
@ -53,6 +53,7 @@ import (
|
||||
"github.com/talos-systems/talos/internal/pkg/mount"
|
||||
"github.com/talos-systems/talos/pkg/cmd"
|
||||
"github.com/talos-systems/talos/pkg/conditions"
|
||||
"github.com/talos-systems/talos/pkg/images"
|
||||
"github.com/talos-systems/talos/pkg/kubernetes"
|
||||
machineapi "github.com/talos-systems/talos/pkg/machinery/api/machine"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/configloader"
|
||||
@ -1541,10 +1542,15 @@ func unmountSystemPartition(label string) (err error) {
|
||||
// Install mounts or installs the system partitions.
|
||||
func Install(seq runtime.Sequence, data interface{}) (runtime.TaskExecutionFunc, string) {
|
||||
return func(ctx context.Context, logger *log.Logger, r runtime.Runtime) (err error) {
|
||||
installerImage := r.Config().Machine().Install().Image()
|
||||
if installerImage == "" {
|
||||
installerImage = images.DefaultInstallerImage
|
||||
}
|
||||
|
||||
err = install.RunInstallerContainer(
|
||||
r.Config().Machine().Install().Disk(),
|
||||
r.State().Platform().Name(),
|
||||
r.Config().Machine().Install().Image(),
|
||||
installerImage,
|
||||
r.Config().Machine().Registries(),
|
||||
install.WithForce(r.Config().Machine().Install().Force()),
|
||||
install.WithZero(r.Config().Machine().Install().Zero()),
|
||||
|
@ -981,13 +981,7 @@ func (c *CoreDNS) Image() string {
|
||||
|
||||
// Image implements the config.Provider interface.
|
||||
func (p *PodCheckpointer) Image() string {
|
||||
checkpointerImage := constants.PodCheckpointerImage
|
||||
|
||||
if p.PodCheckpointerImage != "" {
|
||||
checkpointerImage = p.PodCheckpointerImage
|
||||
}
|
||||
|
||||
return checkpointerImage
|
||||
return p.PodCheckpointerImage
|
||||
}
|
||||
|
||||
// CertLifetime implements the config.Provider interface.
|
||||
|
@ -180,11 +180,6 @@ const (
|
||||
// KubernetesSchedulerImage is the enforced scheduler image to use for the control plane.
|
||||
KubernetesSchedulerImage = "k8s.gcr.io/kube-scheduler"
|
||||
|
||||
// PodCheckpointerImage is the enforced pod checkpointer for bootkube to use
|
||||
// TODO(andrewrynhard): This is a hack workaround for now. Update this once
|
||||
// there is an official image.
|
||||
PodCheckpointerImage = "docker.io/autonomy/pod-checkpointer:51fba9528e96d3be488562574c288b2fb82a1e3b"
|
||||
|
||||
// RecoveryKubeconfig is the path to kubeconfig used temporarily while recovering control plane.
|
||||
RecoveryKubeconfig = "/etc/kubernetes/kubeconfig"
|
||||
|
||||
|
@ -22,8 +22,10 @@ var (
|
||||
SHA string
|
||||
// Built is set at build time.
|
||||
Built string
|
||||
// PkgsVersion is set at build time
|
||||
// PkgsVersion is set at build time.
|
||||
PkgsVersion string
|
||||
// ExtrasVersion is set at build time.
|
||||
ExtrasVersion string
|
||||
)
|
||||
|
||||
const versionTemplate = ` Tag: {{ .Tag }}
|
||||
|
Loading…
Reference in New Issue
Block a user