File tree 6 files changed +49
-5
lines changed
6 files changed +49
-5
lines changed Original file line number Diff line number Diff line change 65
65
- uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
66
66
with :
67
67
submodules : recursive
68
- - uses : actions/setup-python@c4e89fac7e8767b327bbad6cb4d859eda999cf08 # tag=v4
68
+ - uses : actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 # tag=v4
69
69
- name : Install requirements for version tool
70
70
run : pip install -r python/requirements.txt
71
71
- id : prerelease
@@ -292,7 +292,7 @@ jobs:
292
292
run : git diff --exit-code
293
293
- name : Git Diff showed uncommitted changes
294
294
if : ${{ failure() }}
295
- uses : actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # tag=v6
295
+ uses : actions/github-script@d50f485531ba88479582bc2da03ff424389af5c1 # tag=v6
296
296
with :
297
297
script : |
298
298
core.setFailed('Committed charts were not up to date, please regenerate and re-commit!')
@@ -340,7 +340,7 @@ jobs:
340
340
uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
341
341
with :
342
342
submodules : recursive
343
- - uses : actions/setup-python@c4e89fac7e8767b327bbad6cb4d859eda999cf08 # tag=v4
343
+ - uses : actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 # tag=v4
344
344
if : ${{ github.event_name == 'pull_request' }}
345
345
- uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
346
346
with :
Original file line number Diff line number Diff line change 22
22
runs-on : ubuntu-latest
23
23
steps :
24
24
- uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
25
- - uses : actions/setup-python@c4e89fac7e8767b327bbad6cb4d859eda999cf08 # tag=v4
25
+ - uses : actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 # tag=v4
26
26
with :
27
27
python-version : " 3.9"
28
28
- uses : reviewdog/action-flake8@b6435e67f0cfda225b9e0c9283cfb7ea7c551bdb # tag=v3.6.0
Original file line number Diff line number Diff line change 10
10
check-keys : false
11
11
comments :
12
12
min-spaces-from-content : 1 # Needed due to https://github.com/adrienverge/yamllint/issues/443
13
+ indentation :
14
+ indent-sequences : consistent
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ IS_NIGHTLY := $(shell echo "${VERSION}" | grep -- '-nightly$$')
17
17
DOCS_VERSION := $(if ${IS_NIGHTLY},nightly,$(shell echo "${VERSION}" | sed 's/^\([0-9]\+\.[0-9]\+\) \..* $$/\1/') )
18
18
export VERSION IS_NIGHTLY DOCS_VERSION
19
19
20
- SHELL =/bin/bash -euo pipefail
20
+ SHELL =/usr/ bin/env bash -euo pipefail
21
21
22
22
# # Docker related targets
23
23
docker-build :
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ directory manually.
5
5
The following files are ok to edit:
6
6
7
7
- helm/secret-operator/templates/roles.yaml
8
+ - helm/secret-operator/values.yaml
8
9
9
10
The details are in-motion but check this repository for a few details:
10
11
< https://github.com/stackabletech/operator-templating >
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # Reads a file with variables to insert into templates, and templates all .*.j2 files
5
+ # in the 'docs' directory.
6
+ #
7
+ # dependencies
8
+ # pip install jinja2-cli
9
+
10
+ docs_dir=" $( dirname " $0 " ) /../docs"
11
+ templating_vars_file=" $docs_dir /templating_vars.yaml"
12
+
13
+ # Check if files need templating
14
+ if [[ -z $( find " $docs_dir " -name ' *.j2' ) ]];
15
+ then
16
+ echo " No files need templating, exiting."
17
+ exit
18
+ fi
19
+
20
+ # Check if jinja2 is there
21
+ if ! command -v jinja2 & > /dev/null
22
+ then
23
+ echo " jinja2 could not be found. Use 'pip install jinja2-cli' to install it."
24
+ exit
25
+ fi
26
+
27
+ # Check if templating vars file exists
28
+ if [[ ! -f " $templating_vars_file " ]];
29
+ then
30
+ echo " $templating_vars_file does not exist, cannot start templating."
31
+ fi
32
+
33
+ find " $docs_dir " -name ' *.j2' |
34
+ while read -r file
35
+ do
36
+ new_file_name=${file% .j2} # Remove .j2 suffix
37
+ echo " templating $new_file_name "
38
+ jinja2 " $file " " $templating_vars_file " -o " $new_file_name "
39
+ done
40
+
41
+ echo " done"
You can’t perform that action at this time.
0 commit comments