Skip to content

[Merged by Bors] - Update templated files to rev 1ae1fd0 #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# =============
# This file is automatically generated from the templates in stackabletech/operator-templating
# DON'T MANUALLY EDIT THIS FILE
# DO NOT MANUALLY EDIT THIS FILE
# =============

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

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

VERSION := $(shell cargo metadata --format-version 1 | jq '.packages[] | select(.name=="stackable-spark-k8s-operator") | .version')
VERSION := $(shell cargo metadata --format-version 1 | jq -r '.packages[] | select(.name=="stackable-spark-k8s-operator") | .version')
IS_NIGHTLY := $(shell echo "${VERSION}" | grep -- '-nightly$$')
# When rendering docs we want to simplify the version number slightly, only rendering "nightly" for nightly branches
# (since we only render nightlies for the active development trunk anyway) and chopping off the semver patch version otherwise
DOCS_VERSION := $(if ${IS_NIGHTLY},nightly,$(shell echo "${VERSION}" | sed 's/^\([0-9]\+\.[0-9]\+\)\..*$$/\1/'))
export VERSION IS_NIGHTLY DOCS_VERSION

SHELL=/bin/bash -euo pipefail

Expand Down Expand Up @@ -38,7 +43,8 @@ chart-clean:
rm -rf deploy/helm/spark-k8s-operator/crds

version:
yq eval -i '.version = ${VERSION} | .appVersion = ${VERSION}' /dev/stdin < deploy/helm/spark-k8s-operator/Chart.yaml
yq eval -i '.version = strenv(VERSION) | .appVersion = strenv(VERSION)' /dev/stdin < deploy/helm/spark-k8s-operator/Chart.yaml
yq eval -i '.version = strenv(DOCS_VERSION) | .prerelease = strenv(IS_NIGHTLY) != ""' /dev/stdin < docs/antora.yml

config:
if [ -d "deploy/config-spec/" ]; then\
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/spark-k8s-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2
name: spark-k8s-operator
version: 0.1.0
version: "0.1.0"
appVersion: "0.1.0"
description: The Stackable Operator for Apache Spark-on-Kubernetes
home: https://github.com/stackabletech/spark-k8s-operator
Expand Down
3 changes: 2 additions & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: spark-k8s
version: master
version: "0.1"
title: Stackable Operator for Apache Spark on Kubernetes
nav:
- modules/ROOT/nav.adoc
prerelease: false