-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: publish plain manifests, auto-generate docs from CRD
- Loading branch information
Andreas Bleuler
committed
Sep 20, 2021
1 parent
c88cfa4
commit 176301f
Showing
13 changed files
with
527 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
# | ||
# Generate the full manifests by rendering the chart. | ||
|
||
repo_root=$(git rev-parse --show-toplevel) | ||
current_directory=$(pwd) | ||
|
||
cd $repo_root | ||
pipenv run python ./utils/render-chart-manifests.py | ||
git add manifests | ||
cd ${repo_root}/helm-chart | ||
pipenv run chartpress --skip-build --tag latest | ||
cd $current_directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Autogenerate the documentation for the CRD | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
- "!main" | ||
jobs: | ||
generate-crd-docs: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: SwissDataScienceCenter/renku-actions/generate-crd-docs@3d6f5abf79b61d969b0d958e42dabb4e9f15392c | ||
env: | ||
RESOURCES: ./manifests/crd.yaml | ||
OUTPUT: ./docs/crd.md | ||
- name: Push changes to branch | ||
run: | | ||
git config --global user.name 'Amalthea Bot' | ||
git config --global user.email '[email protected]' | ||
git add docs/crd.md || true | ||
git commit -m "chore(docs): update CRD docs" || true | ||
git push || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This manifest is auto-generated from the helm chart, do not modify! | ||
# Source: amalthea/templates/config.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: amalthea-config | ||
labels: | ||
helm.sh/chart: amalthea-latest | ||
app.kubernetes.io/name: amalthea | ||
app.kubernetes.io/instance: amalthea | ||
app.kubernetes.io/version: "latest" | ||
data: | ||
kopf-operator-settings.yaml: "watching:\n # This can fix a problem of a watch stream suddenly falling\n # silent, see https://github.com/nolar/kopf/issues/762#issuecomment-838423267\n client_timeout: 600\n" |
Oops, something went wrong.