Skip to content

Commit 33112a3

Browse files
committed
Merge branch '0.26.2' into 0.27.0
2 parents ea92313 + f41a997 commit 33112a3

File tree

4 files changed

+16
-94
lines changed

4 files changed

+16
-94
lines changed

deploy/builder/operatorhub.sh

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,9 @@ SRC_ROOT="$(realpath "${CUR_DIR}/../..")"
88

99
# 0.9.3
1010
VERSION=$(cd "${SRC_ROOT}"; cat release)
11-
PREVIOUS_VERSION="${PREVIOUS_VERSION}"
12-
13-
if [[ -z "${PREVIOUS_VERSION}" ]]; then
14-
echo "PREVIOUS_VERSION is not specified. Unable to proceed."
15-
echo "Abort."
16-
exit 1
17-
fi
18-
1911
echo "=================================================================================="
20-
echo "PREVIOUS_VERSION: ${PREVIOUS_VERSION}"
2112
echo "VERSION: ${VERSION}"
22-
echo "!!! IMPORTANT !!!"
23-
echo "Please, ensure PREVIOUS_VERSION=$PREVIOUS_VERSION is what is needed"
2413
echo "=================================================================================="
25-
read -n 1 -r -s -p $'Press enter to continue...\n'
2614

2715
OPERATORHUB_DIR="${SRC_ROOT}/deploy/operatorhub"
2816
MANIFESTS_DIR="${OPERATORHUB_DIR}/${VERSION}"
@@ -79,11 +67,20 @@ rm "${EXAMPLES_FILE}"
7967
cat "${CVV_FILE_TEMPLATE}" | \
8068
OPERATOR_VERSION="${VERSION}" \
8169
OPERATOR_RELEASE_DATE=$(date +'%Y-%m-%dT%H:%M:%SZ') \
82-
PREVIOUS_OPERATOR_VERSION="${PREVIOUS_VERSION}" \
8370
envsubst > "${CVV_FILE}"
8471

8572
rm "${CVV_FILE_TEMPLATE}"
8673

74+
# Inject spec.skips from releases file (versions that may not be in the IIB from-index)
75+
SKIPS_FILE="skips.yaml"
76+
grep -v '^$' "${SRC_ROOT}/releases" | while IFS= read -r v; do
77+
echo "- clickhouse-operator.v${v}"
78+
done > "${SKIPS_FILE}"
79+
if [[ -s "${SKIPS_FILE}" ]]; then
80+
yq -i ".spec.skips = load(\"${SKIPS_FILE}\")" "${CVV_FILE}"
81+
fi
82+
rm "${SKIPS_FILE}"
83+
8784
#$CHIT.crd.yaml
8885
#$CONF.crd.yaml
8986

deploy/builder/templates-operatorhub/clickhouse-operator.vVERSION.clusterserviceversion-template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ metadata:
2323
"{HERE WILL BE THE EXAMPLES}"
2424
spec:
2525
version: ${OPERATOR_VERSION}
26-
minKubeVersion: 1.25.0
26+
minKubeVersion: 1.16.0
2727
maturity: alpha
28-
replaces: clickhouse-operator.v${PREVIOUS_OPERATOR_VERSION}
28+
replaces: clickhouse-operator.v0.26.0
2929
maintainers:
3030
- email: support@altinity.com
3131
name: Altinity

deploy/operatorhub/0.26.2/clickhouse-operator.v0.26.2.clusterserviceversion.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,11 @@ metadata:
197197
]
198198
spec:
199199
version: 0.26.2
200-
minKubeVersion: 1.25.0
200+
minKubeVersion: 1.16.0
201201
maturity: alpha
202-
replaces: clickhouse-operator.v0.26.1
202+
replaces: clickhouse-operator.v0.26.0
203+
skips:
204+
- clickhouse-operator.v0.26.1
203205
maintainers:
204206
- email: support@altinity.com
205207
name: Altinity

releases

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,2 @@
11
0.26.2
22
0.26.1
3-
0.26.0
4-
0.25.6
5-
0.25.5
6-
0.25.4
7-
0.25.3
8-
0.25.2
9-
0.25.1
10-
0.25.0
11-
0.24.5
12-
0.24.4
13-
0.24.3
14-
0.24.2
15-
0.24.1
16-
0.24.0
17-
0.23.7
18-
0.23.6
19-
0.23.5
20-
0.23.4
21-
0.23.3
22-
0.23.2
23-
0.23.1
24-
0.23.0
25-
0.22.2
26-
0.22.1
27-
0.22.0
28-
0.21.3
29-
0.21.2
30-
0.21.1
31-
0.21.0
32-
0.20.3
33-
0.20.2
34-
0.20.1
35-
0.20.0
36-
0.19.3
37-
0.19.2
38-
0.19.1
39-
0.19.0
40-
0.18.5
41-
0.18.4
42-
0.18.3
43-
0.18.2
44-
0.18.1
45-
0.18.0
46-
0.17.0
47-
0.16.1
48-
0.16.0
49-
0.15.0
50-
0.14.0
51-
0.13.5
52-
0.13.0
53-
0.12.0
54-
0.11.0
55-
0.10.0
56-
0.9.9
57-
0.9.8
58-
0.9.7
59-
0.9.6
60-
0.9.5
61-
0.9.4
62-
0.9.3
63-
0.9.2
64-
0.9.1
65-
0.9.0
66-
0.8.0
67-
0.7.0
68-
0.6.0
69-
0.5.0
70-
0.4.4
71-
0.4.3
72-
0.4.2
73-
0.4.1
74-
0.4.0
75-
0.3.0
76-
0.2.3
77-
0.2.2
78-
0.2.1
79-
0.2.0-beta

0 commit comments

Comments
 (0)