-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
95 changed files
with
1,936 additions
and
469 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,42 @@ | ||
# | ||
# Reference: https://github.com/helm/chart-testing-action | ||
# | ||
name: Linting and Testing | ||
on: pull_request | ||
jobs: | ||
chart-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v1 | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Setup Chart Linting | ||
id: lint | ||
uses: helm/[email protected] | ||
|
||
- name: Install Plugins | ||
run: | | ||
helm plugin install https://github.com/quintush/helm-unittest > /dev/null 2>&1 | ||
- name: Run chart-testing (lint) Helmize | ||
run: ct lint --config ./charts/ct.yaml --lint-conf ./charts/lint.yaml | ||
|
||
- name: Run chart-testing (lint) Examples | ||
run: ct lint --config ./examples/ct.yaml | ||
|
||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
if: steps.list-changed.outputs.changed == 'true' | ||
|
||
- name: Run chart-testing (install) Examples | ||
run: ct install --config ./ct.yaml | ||
if: steps.list-changed.outputs.changed == '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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,32 @@ on: | |
branches: | ||
- main # Set a branch to deploy | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v1 | ||
|
||
- name: Add dependency chart repos | ||
run: | | ||
helm repo add buttahtoast https://buttahtoast.github.io/helm-charts/ | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
with: | ||
charts_dir: charts | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
deploy: | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
|
@@ -34,4 +60,5 @@ jobs: | |
if: ${{ github.ref == 'refs/heads/main' }} | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./hugo/public | ||
publish_dir: ./hugo/public | ||
keep_files: true |
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
## Reference: https://github.com/helm/chart-testing/blob/master/doc/ct_lint-and-install.md | ||
## | ||
remote: origin | ||
target-branch: main | ||
chart-dirs: | ||
- charts/ | ||
chart-repos: | ||
- buttahtoast=https://buttahtoast.github.io/helm-charts/ | ||
validate-chart-schema: true | ||
validate-maintainers: true | ||
validate-yaml: true | ||
helm-extra-args: "--timeout 600s" | ||
exclude-deprecated: true | ||
debug: 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
File renamed without changes.
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 @@ | ||
|
||
|
||
{{- define "inventory.entrypoint.templates.render" -}} | ||
{{- if $.deploy.files -}} | ||
{{- range $file, $prop := $.deploy.files -}} | ||
{{- if $prop.render -}} | ||
{{- if $prop.content -}} | ||
{{- printf "---\n# File: %s\n# Checksum %s\n%s\n" .id $prop.checksum (toYaml $prop.content) -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} |
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,3 @@ | ||
{{- define "inventory.helpers.ts" -}} | ||
{{- $_ := set $.ctx "timestamps" (append $.ctx.timestamps (dict "point" $.msg "time" now)) -}} | ||
{{- end -}} |
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,30 @@ | ||
{{/* Identifier <Template> | ||
Calls Identifier Template | ||
*/}} | ||
{{- define "inventory.render.func.identifier" -}} | ||
{{- if and $.wagon $.ctx -}} | ||
|
||
{{/* Run Identifiert Template */}} | ||
{{- $identifier_tpl_name := (fromYaml (include "inventory.config.func.resolve" (dict "path" (include "inventory.render.defaults.files.identifier_template" $.ctx) "ctx" $.ctx))).res -}} | ||
{{- if $identifier_tpl_name -}} | ||
|
||
{{/* included evaluated Template with current Root context */}} | ||
{{- include $identifier_tpl_name $ -}} | ||
|
||
{{/* Handle ID */}} | ||
{{- if not ($.wagon.id) -}} | ||
{{/* Set Filename as default, if nothing set */}} | ||
{{- $_ := set $.wagon "id" (list $.wagon.file_id.filename) -}} | ||
{{- else -}} | ||
{{/* Convert to List */}} | ||
{{- if not (kindIs "slice" $.wagon.id) -}} | ||
{{- $_ := set $.wagon "id" (list $.wagon.id) -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- end -}} | ||
{{- else -}} | ||
{{- include "lib.utils.errors.params" (dict "tpl" "inventory.render.files.multi_yaml" "params" (list "content " "ctx")) -}} | ||
{{- end -}} | ||
{{- end -}} |
Oops, something went wrong.