diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80f5e31..e482bc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: branches: - main + pull_request: jobs: release: diff --git a/charts/kanister-actionset/Chart.yaml b/charts/kanister-actionset/Chart.yaml index 7069e52..44e9e8a 100644 --- a/charts/kanister-actionset/Chart.yaml +++ b/charts/kanister-actionset/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 0.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/kanister-actionset/templates/cronjob.yaml b/charts/kanister-actionset/templates/cronjob.yaml index 95c2f0e..5cbbe77 100644 --- a/charts/kanister-actionset/templates/cronjob.yaml +++ b/charts/kanister-actionset/templates/cronjob.yaml @@ -10,25 +10,27 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: - schedule: "@daily" + schedule: "{{ .Values.cronJob.schedule }}" jobTemplate: spec: template: spec: containers: - name: kanctl - image: ghcr.io/kanisterio/kanister-tools + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: IfNotPresent command: - /bin/sh - -c - | - microdnf install -y perl-Digest-SHA tar - curl https://raw.githubusercontent.com/kanisterio/kanister/master/scripts/get.sh | bash kanctl create actionset --action backup -A {{ .Values.actionsetName }} --namespace {{ .Release.Namespace }} \ - --blueprint {{ .Values.blueprintName }} --profile kanister/default-profile \ + --blueprint {{ .Values.blueprintName }} --profile {{ .Values.profileName }} \ --objects v1/secrets/{{ .Release.Namespace }}/{{ include "kanister-actionset.secretName" . }} \ --options tenant={{ .Values.tenant }},environment={{ .Values.environment }},application={{ .Values.application }} resources: {} restartPolicy: Never + {{- if .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml .Values.imagePullSecrets | nindent 12 }} + {{- end }} {{- end }} \ No newline at end of file diff --git a/charts/kanister-actionset/values.yaml b/charts/kanister-actionset/values.yaml index 6f00ae4..9c8a344 100644 --- a/charts/kanister-actionset/values.yaml +++ b/charts/kanister-actionset/values.yaml @@ -2,6 +2,9 @@ # This is a YAML-formatted file. # Declare variables to be passed into your templates. +image: + repository: ghcr.io/kanisterio/kanister-tools + tag: latest imagePullSecrets: [] nameOverride: "" fullnameOverride: "" @@ -32,6 +35,7 @@ secret: cronJob: create: true name: "" + schedule: "@daily" annotations: {} actionSet: