Skip to content

Commit

Permalink
feat: Make it possible to deploy cache as shared component (epam#74)
Browse files Browse the repository at this point in the history
Change-Id: I9a6eab92492fa9af0f2bbeca6ac0c8a0897904ea
  • Loading branch information
Mykola Serdiuk committed Dec 8, 2023
1 parent 007a911 commit 213e37b
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
20 changes: 20 additions & 0 deletions add-ons/tekton-cache/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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"
14 changes: 14 additions & 0 deletions add-ons/tekton-cache/README.md
Original file line number Diff line number Diff line change
@@ -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)
Empty file.
34 changes: 34 additions & 0 deletions chart/templates/tekton-cache.yaml
Original file line number Diff line number Diff line change
@@ -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 -}}
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ sonar-operator:
storage-class:
enable: false

tekton-cache:
createNamespace: true
enable: true

tekton:
createNamespace: false
enable: false
Expand Down

0 comments on commit 213e37b

Please sign in to comment.