forked from epam/edp-cluster-add-ons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Make it possible to deploy cache as shared component (epam#74)
Change-Id: I9a6eab92492fa9af0f2bbeca6ac0c8a0897904ea
- Loading branch information
Mykola Serdiuk
committed
Dec 8, 2023
1 parent
007a911
commit 213e37b
Showing
5 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters