-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: rework helm-chart * fixes as per comments Signed-off-by: Mehdi Bechiri <[email protected]> * fixing missing addresses in helper Signed-off-by: Mehdi Bechiri <[email protected]> * remove top-level value watcher Signed-off-by: Mehdi Bechiri <[email protected]> * rename sa and freeze appVersion Signed-off-by: Mehdi Bechiri <[email protected]> --------- Signed-off-by: Mehdi Bechiri <[email protected]> Co-authored-by: Mehdi Bechiri <[email protected]>
- Loading branch information
Showing
14 changed files
with
299 additions
and
273 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,83 @@ | ||
name: charts::ghcr-oci | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "charts/**" | ||
- ".github/workflows/helm-chart.yaml" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "charts/**" | ||
- ".github/workflows/helm-chart.yaml" | ||
|
||
permissions: | ||
id-token: write | ||
actions: write | ||
pull-requests: write | ||
issues: write | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
helm-lint-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch main --chart-dirs charts) | ||
if [[ -n "$changed" ]]; then | ||
echo "::set-output name=changed::true" | ||
fi | ||
- name: Run chart-testing (lint) | ||
run: ct lint --target-branch main --chart-dirs charts | ||
|
||
helm-release: | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
needs: | ||
- helm-lint-test | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.8.0 | ||
|
||
- name: 'helm:package:create' | ||
run: | | ||
helm package charts/ | ||
- name: 'helm:package:get_artifcat_name' | ||
run: | | ||
find . -name "*.tgz" | ||
echo "ARTIFACT_NAME=$(find . -name "*.tgz" -maxdepth 1)" >> $GITHUB_ENV | ||
- name: 'helm:package:upload' | ||
run: | | ||
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io --username kilnfi --password-stdin | ||
helm push ${{ env.ARTIFACT_NAME }} oci://${{ env.REGISTRY }}/kilnfi/helm-charts/ | ||
env: | ||
REGISTRY: ghcr.io |
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 |
---|---|---|
|
@@ -2,7 +2,8 @@ apiVersion: v2 | |
description: A Helm chart for running eth-validator-watcher | ||
name: eth-validator-watcher | ||
type: application | ||
version: 1.0.0 | ||
version: 1.1.0 | ||
appVersion: v0.4.2 | ||
maintainers: | ||
- name: Alluvial | ||
email: [email protected] | ||
|
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
{{- if .Values.watchedKeys }} | ||
--- | ||
{{- if .Values.config.watchedKeys }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "eth-validator-watcher.fullname" . }} | ||
name: {{ include "ethereum-validator-watcher.fullname" . }} | ||
labels: | ||
{{- include "eth-validator-watcher.labels" . | nindent 4 }} | ||
{{- include "ethereum-validator-watcher.labels" . | nindent 4 }} | ||
data: | ||
watched-keys.txt: | | ||
{{- range .Values.watchedKeys }} | ||
{{- range .Values.config.watchedKeys }} | ||
{{- . | nindent 4 }} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.