diff --git a/add-ons/tekton-cache/Chart.yaml b/add-ons/tekton-cache/Chart.yaml new file mode 100644 index 0000000..29e67a8 --- /dev/null +++ b/add-ons/tekton-cache/Chart.yaml @@ -0,0 +1,20 @@ +apiVersion: v2 +name: tekton-cache +description: A Helm chart for EDP Tekton Cache + +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +type: application + +# The chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +version: 0.1.0 + +# Version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. +appVersion: "0.1.0" + +dependencies: + - name: tekton-cache + version: 0.1.0 + repository: "https://epam.github.io/edp-helm-charts/stable" diff --git a/add-ons/tekton-cache/README.md b/add-ons/tekton-cache/README.md new file mode 100644 index 0000000..80db7a1 --- /dev/null +++ b/add-ons/tekton-cache/README.md @@ -0,0 +1,14 @@ +# tekton-cache + +![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square) + +A Helm chart for EDP Tekton Cache + +## Requirements + +| Repository | Name | Version | +|------------|------|---------| +| https://epam.github.io/edp-helm-charts/stable | tekton-cache | 0.1.0 | + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) diff --git a/add-ons/tekton-cache/values.yaml b/add-ons/tekton-cache/values.yaml new file mode 100644 index 0000000..e69de29 diff --git a/chart/templates/tekton-cache.yaml b/chart/templates/tekton-cache.yaml new file mode 100644 index 0000000..1de2318 --- /dev/null +++ b/chart/templates/tekton-cache.yaml @@ -0,0 +1,34 @@ +{{- if and (index .Values "tekton-cache") (index .Values "tekton-cache" "enable") -}} +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: tekton-cache + namespace: {{ .Values.argoNamespace | default "argocd" }} + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: {{ .Values.repoUrl }} + path: add-ons/tekton-cache + targetRevision: {{ .Values.targetRevision }} + helm: + releaseName: tekton-cache + values: | + tekton-cache: + {{- toYaml (index .Values "tekton-cache") | nindent 10 }} + destination: + name: {{ .Values.destinationServer | default "in-cluster" }} + namespace: tekton-cache + syncPolicy: + automated: + prune: true + syncOptions: + - CreateNamespace={{ (index .Values "tekton-cache" "createNamespace") }} + retry: + limit: 1 + backoff: + duration: 5s + factor: 2 + maxDuration: 1m +{{- end -}} diff --git a/chart/values.yaml b/chart/values.yaml index cb317df..3693022 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -131,6 +131,10 @@ sonar-operator: storage-class: enable: false +tekton-cache: + createNamespace: true + enable: true + tekton: createNamespace: false enable: false