-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathversions.mk
More file actions
82 lines (67 loc) · 3.05 KB
/
Copy pathversions.mk
File metadata and controls
82 lines (67 loc) · 3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# External Dependency Versions
# This file contains version definitions for external dependencies used in the build process
# The versions are kept up to date by the .github/workflows/dependencies.yaml github actions workflow
# K0S Kubernetes Distribution Versions
K0S_MINOR_VERSION ?= 36
# K0S Versions
K0S_VERSION_1_36 = v1.36.2+k0s.0
K0S_VERSION_1_35 = v1.35.6+k0s.0
K0S_VERSION_1_34 = v1.34.9+k0s.0
K0S_VERSION_1_33 = v1.33.13+k0s.0
K0S_VERSION_1_32 = v1.32.13+k0s.0
K0S_VERSION_1_31 = v1.31.14+k0s.0
K0S_VERSION_1_30 = v1.30.14+k0s.0
K0S_VERSION_1_29 = v1.29.15+k0s.0
# Dynamic version selection
K0S_VERSION = $(K0S_VERSION_1_$(K0S_MINOR_VERSION))
K0S_GO_VERSION = $(K0S_VERSION_1_$(K0S_MINOR_VERSION))
# Troubleshoot Version
TROUBLESHOOT_VERSION = v0.131.1
# Helm Version
HELM_VERSION = v4.2.3
# FIO Version (for performance testing)
FIO_VERSION = 3.42
# Kubernetes Development Tool Versions
CONTROLLER_TOOLS_VERSION = v0.21.0
KUSTOMIZE_VERSION = v5.8.1
### Overrides ###
# KOTS Version Overrides
# If KOTS_BINARY_URL_OVERRIDE is set to a ttl.sh artifact, KOTS_VERSION will be dynamically generated
KOTS_BINARY_URL_OVERRIDE =
# If KOTS_BINARY_FILE_OVERRIDE is set, KOTS_VERSION will be dynamically generated
# For dev env, build the kots binary in the kots repo with "make kots-linux-arm64" and set this to "../kots/bin/kots"
KOTS_BINARY_FILE_OVERRIDE =
# k0s version overrides go here
ifeq ($(K0S_VERSION),v1.31.14+k0s.0)
K0S_VERSION = v1.31.14+k0s.0-ec.0
endif
# K0S go version overrides go here
# K0S binary source overrides go here
K0S_BINARY_SOURCE_OVERRIDE =
ifeq ($(K0S_VERSION),v1.31.14+k0s.0-ec.0)
K0S_BINARY_SOURCE_OVERRIDE = https://tf-staging-embedded-cluster-bin.s3.amazonaws.com/custom-k0s-binaries/k0s-v1.31.14%2Bk0s.0-ec.0-$(ARCH)
endif
# Require a new build be released if the patched k0s version changes
.PHONY: check-k0s-version
check-k0s-version:
@if echo "$(K0S_VERSION)" | grep -q "^v1\.31"; then \
if [ "$(K0S_VERSION)" != "v1.31.14+k0s.0-ec.0" ]; then \
echo "Error: K0S_VERSION starts with v1.31 but does not equal v1.31.14+k0s.0-ec.0"; \
echo "Current K0S_VERSION: $(K0S_VERSION)"; \
echo "Expected: v1.31.14+k0s.0-ec.0"; \
exit 1; \
fi; \
fi
# The k0s airgap.GetImageURIs signature changed in k0s 1.36 (it takes a TargetEnv).
# Code compiled against a k0s module < 1.36 uses the old signature and must select
# the legacy ListK0sImages via the k0s_legacy_airgap build tag (see pkg/config/images.go).
# Defined here, not just the root Makefile, so the operator and local-artifact-mirror
# sub-builds (which include this file) pick it up. K0S_MINOR_VERSION is the source of
# truth: the build re-pins go.mod to K0S_GO_VERSION for the selected minor.
# Assumes common.mk (which defines GO_BUILD_TAGS) is included before this file.
# TODO(k0s-1.37-oldest): drop this gate when the oldest supported minor is >= 1.37.
GO_INSTALLER_BUILD_TAGS := osusergo,netgo
ifeq ($(shell [ "$(K0S_MINOR_VERSION)" -lt 36 ] && echo legacy),legacy)
GO_BUILD_TAGS := $(GO_BUILD_TAGS),k0s_legacy_airgap
GO_INSTALLER_BUILD_TAGS := $(GO_INSTALLER_BUILD_TAGS),k0s_legacy_airgap
endif