Skip to content

Commit

Permalink
Merge 7816b6f into 5ecd3d5
Browse files Browse the repository at this point in the history
  • Loading branch information
vktr-brlv authored Nov 22, 2022
2 parents 5ecd3d5 + 7816b6f commit edb6da1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
pull_request:

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion charts/kanister-actionset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions charts/kanister-actionset/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 4 additions & 0 deletions charts/kanister-actionset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down Expand Up @@ -32,6 +35,7 @@ secret:
cronJob:
create: true
name: ""
schedule: "@daily"
annotations: {}

actionSet:
Expand Down

0 comments on commit edb6da1

Please sign in to comment.