-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathversions.mk
More file actions
66 lines (52 loc) · 2.09 KB
/
versions.mk
File metadata and controls
66 lines (52 loc) · 2.09 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
# 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 ?= 34
# K0S Versions
K0S_VERSION_1_34 = v1.34.6+k0s.0
K0S_VERSION_1_33 = v1.33.10+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.127.1
# Helm Version
HELM_VERSION = v4.1.4
# FIO Version (for performance testing)
FIO_VERSION = 3.42
# Kubernetes Development Tool Versions
CONTROLLER_TOOLS_VERSION = v0.20.1
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