Skip to content

Commit

Permalink
feat: add kustomize helm apps plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
luciano-buono committed Oct 18, 2024
1 parent 8f80f15 commit ca6f8c4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/tekton-apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ appVersion: "v0.29.0"
# 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.2.22
version: 0.2.23-dev.1

maintainers:
- url: https://www.saritasa.com/
Expand Down
2 changes: 1 addition & 1 deletion charts/tekton-apps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ saritasa-tekton-apps

## `chart.version`

![Version: 0.2.22](https://img.shields.io/badge/Version-0.2.22-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.29.0](https://img.shields.io/badge/AppVersion-v0.29.0-informational?style=flat-square)
![Version: 0.2.23-dev.1](https://img.shields.io/badge/Version-0.2.23--dev.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.29.0](https://img.shields.io/badge/AppVersion-v0.29.0-informational?style=flat-square)

## Maintainers

Expand Down
4 changes: 4 additions & 0 deletions charts/tekton-apps/templates/general/argocd_applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ spec:
path: {{ $argocdSource.path | default (printf "apps/%s/manifests/%s" $component.name $projectEnvironment) }}
repoURL: {{ $argocdSource.repoUrl | default ($project.kubernetesRepository).url }}
targetRevision: {{ $argocdSource.targetRevision | default ($project.kubernetesRepository).branch }}
{{ if (ternary $argocdSource.kustomizeHelmChart false (hasKey $argocdSource "kustomizeHelmChart")) -}}
plugin:
name: kustomize-build-with-helm
{{- end }}
{{ if (ternary $argocd.ignoreDeploymentReplicasDiff false (hasKey $argocd "ignoreDeploymentReplicasDiff")) }}
ignoreDifferences:
- group: apps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
path: {{ $extraApp.path }}
repoURL: {{ $extraApp.repoUrl | default ($project.kubernetesRepository).url }}
targetRevision: {{ $extraApp.targetRevision | default ($project.kubernetesRepository).branch }}
{{ if (ternary $extraApp.kustomizeHelmChart false (hasKey $extraApp "kustomizeHelmChart")) -}}
plugin:
name: kustomize-build-with-helm
{{- end }}
ignoreDifferences:
- group: apps
kind: Deployment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ spec:
repoURL: {{ $argocd.source.repoUrl | default "https://charts.bitnami.com/bitnami" }}
targetRevision: {{ $argocd.source.targetRevision | default "15.2.40" }}
{{ if (ternary $argocd.source.kustomizeHelmChart false (hasKey $argocd.source "kustomizeHelmChart")) -}}
plugin:
name: kustomize-build-with-helm
{{- end }}

syncPolicy:
automated:
Expand Down
4 changes: 4 additions & 0 deletions charts/tekton-apps/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ apps:
path: dev/argocd/apps
repoUrl: [email protected]:saritasa-nest/nmbl-kubernetes-aws.git
targetRevision: feature/sync-boilerplate
kustomizeHelmChart: true
argocd:
notifications:
annotations:
Expand All @@ -65,6 +66,8 @@ apps:
pipeline: buildpack-django-build-pipeline
applicationURL: https://api.proxylegalstaging.com
argocd:
source:
kustomizeHelmChart: true
syncWave: 210
notifications:
annotations:
Expand Down Expand Up @@ -118,6 +121,7 @@ apps:
# ignoreDeploymentReplicasDiff: true
source:
targetRevision: 15.2.4
# kustomizeHelmChart: true
notifications:
annotations:
notifications.argoproj.io/subscribe.on-sync-status-unknown.slack: project-nmbl; project-nmbl-alarms
Expand Down

0 comments on commit ca6f8c4

Please sign in to comment.