Skip to content

Commit edd8134

Browse files
committed
Update templated files to rev 1ae1fd0 (#136)
Automatically created PR based on commit 1ae1fd00f9195725a50cd158342c0ef53f827577 in stackabletech/operator-templating repo. Triggered by: Manual run triggered by: teozkr with message [Documentation versioning]
1 parent de94772 commit edd8134

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# =============
22
# 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
44
# =============
55

66
# This script requires https://github.com/mikefarah/yq (not to be confused with https://github.com/kislyuk/yq)
@@ -10,7 +10,12 @@
1010

1111
TAG := $(shell git rev-parse --short HEAD)
1212

13-
VERSION := $(shell cargo metadata --format-version 1 | jq '.packages[] | select(.name=="stackable-secret-operator") | .version')
13+
VERSION := $(shell cargo metadata --format-version 1 | jq -r '.packages[] | select(.name=="stackable-secret-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
1419

1520
SHELL=/bin/bash -euo pipefail
1621

@@ -38,7 +43,8 @@ chart-clean:
3843
rm -rf deploy/helm/secret-operator/crds
3944

4045
version:
41-
yq eval -i '.version = ${VERSION} | .appVersion = ${VERSION}' /dev/stdin < deploy/helm/secret-operator/Chart.yaml
46+
yq eval -i '.version = strenv(VERSION) | .appVersion = strenv(VERSION)' /dev/stdin < deploy/helm/secret-operator/Chart.yaml
47+
yq eval -i '.version = strenv(DOCS_VERSION) | .prerelease = strenv(IS_NIGHTLY) != ""' /dev/stdin < docs/antora.yml
4248

4349
config:
4450
if [ -d "deploy/config-spec/" ]; then\

deploy/helm/secret-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: v2
33
name: secret-operator
4-
version: 0.5.0-nightly
4+
version: "0.5.0-nightly"
55
appVersion: "0.5.0-nightly"
66
description: The Stackable Operator for Stackable Secret Operator
77
home: https://github.com/stackabletech/secret-operator

docs/antora.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ version: nightly
44
title: Stackable Secret Operator
55
nav:
66
- modules/ROOT/nav.adoc
7+
prerelease: true

0 commit comments

Comments
 (0)