File tree 3 files changed +12
-5
lines changed
deploy/helm/spark-k8s-operator 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
# =============
2
2
# This file is automatically generated from the templates in stackabletech/operator-templating
3
- # DON'T MANUALLY EDIT THIS FILE
3
+ # DO NOT MANUALLY EDIT THIS FILE
4
4
# =============
5
5
6
6
# This script requires https://github.com/mikefarah/yq (not to be confused with https://github.com/kislyuk/yq)
10
10
11
11
TAG := $(shell git rev-parse --short HEAD)
12
12
13
- VERSION := $(shell cargo metadata --format-version 1 | jq '.packages[] | select(.name=="stackable-spark-k8s-operator") | .version')
13
+ VERSION := $(shell cargo metadata --format-version 1 | jq -r '.packages[] | select(.name=="stackable-spark-k8s-operator") | .version')
14
+ IS_NIGHTLY := $(shell echo "${VERSION}" | grep -- '-nightly$$')
15
+ # When rendering docs we want to simplify the version number slightly, only rendering "nightly" for nightly branches
16
+ # (since we only render nightlies for the active development trunk anyway) and chopping off the semver patch version otherwise
17
+ DOCS_VERSION := $(if ${IS_NIGHTLY},nightly,$(shell echo "${VERSION}" | sed 's/^\([0-9]\+\.[0-9]\+\) \..* $$/\1/') )
18
+ export VERSION IS_NIGHTLY DOCS_VERSION
14
19
15
20
SHELL =/bin/bash -euo pipefail
16
21
@@ -38,7 +43,8 @@ chart-clean:
38
43
rm -rf deploy/helm/spark-k8s-operator/crds
39
44
40
45
version :
41
- yq eval -i ' .version = ${VERSION} | .appVersion = ${VERSION}' /dev/stdin < deploy/helm/spark-k8s-operator/Chart.yaml
46
+ yq eval -i ' .version = strenv(VERSION) | .appVersion = strenv(VERSION)' /dev/stdin < deploy/helm/spark-k8s-operator/Chart.yaml
47
+ yq eval -i ' .version = strenv(DOCS_VERSION) | .prerelease = strenv(IS_NIGHTLY) != ""' /dev/stdin < docs/antora.yml
42
48
43
49
config :
44
50
if [ -d " deploy/config-spec/" ]; then\
Original file line number Diff line number Diff line change 1
1
---
2
2
apiVersion : v2
3
3
name : spark-k8s-operator
4
- version : 0.1.0
4
+ version : " 0.1.0"
5
5
appVersion : " 0.1.0"
6
6
description : The Stackable Operator for Apache Spark-on-Kubernetes
7
7
home : https://github.com/stackabletech/spark-k8s-operator
Original file line number Diff line number Diff line change 1
1
---
2
2
name : spark-k8s
3
- version : master
3
+ version : " 0.1 "
4
4
title : Stackable Operator for Apache Spark on Kubernetes
5
5
nav :
6
6
- modules/ROOT/nav.adoc
7
+ prerelease : false
You can’t perform that action at this time.
0 commit comments