Skip to content

Commit

Permalink
ci: use hull as helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
rgeraskin committed Nov 26, 2024
1 parent 2b91dd9 commit 3faa8f3
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 42 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ jobs:
run: |
echo "${{ secrets.DOCKERHUB_TOKEN }}" | helm registry login registry-1.docker.io -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
tag=$(echo ${{ github.ref_name }} | sed 's/helm-//')
helm repo add hull https://vidispine.github.io/hull
helm dependency build helm
helm package --version "$tag" helm
helm push "helm-dogoncall-$tag.tgz" oci://registry-1.docker.io/${{ secrets.DOCKERHUB_USERNAME }}
2 changes: 1 addition & 1 deletion helm/.helmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
values-private.yaml
*.tgz
./*.tgz
6 changes: 6 additions & 0 deletions helm/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: hull
repository: https://vidispine.github.io/hull
version: 1.25.14
digest: sha256:cf0a2ada811a1f5da2789790a4fc996bb43ccd2a8c92f096d1ce950b65f19452
generated: "2024-11-26T03:16:25.50443+03:00"
8 changes: 6 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ apiVersion: v2
name: helm-dogoncall
description: dogoncall helm chart
type: application
# versions are overrided in CI
version: 0.1.0
appVersion: 0.1.0
# version will be overrided in CI
version: 1.0.0
dependencies:
- name: hull
version: "1.25"
repository: https://vidispine.github.io/hull
18 changes: 0 additions & 18 deletions helm/templates/cronjob.yaml

This file was deleted.

1 change: 1 addition & 0 deletions helm/templates/hull.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- include "hull.objects.prepare.all" (dict "HULL_ROOT_KEY" "hull" "ROOT_CONTEXT" $) }}
6 changes: 0 additions & 6 deletions helm/templates/namespace.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions helm/templates/secret.yaml

This file was deleted.

42 changes: 38 additions & 4 deletions helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
image:
repository: rgeraskin/dogoncall
# tag: latest
schedule: "*/1 * * * *"
hull:
config:
general:
noObjectNamePrefixes: true
rbac: false
objects:
secret:
dogoncall:
data:
ENDPOINT_SLACK:
inline: _HT*hull.config.specific.secret.endpointSlack
DD_APP_KEY:
inline: _HT*hull.config.specific.secret.ddAppKey
DD_API_KEY:
inline: _HT*hull.config.specific.secret.ddApiKey
SCHEDULE_NAME:
inline: _HT*hull.config.specific.secret.scheduleName
cronjob:
dogoncall:
schedule: "*/1 * * * *"
job:
pod:
containers:
dogoncall:
image:
repository: rgeraskin/dogoncall
tag: latest
imagePullPolicy: Always
envFrom:
dogoncall:
secretRef:
name: dogoncall
namespace:
dogoncall:
enabled: false
serviceaccount:
default:
enabled: false

0 comments on commit 3faa8f3

Please sign in to comment.