Skip to content

Commit

Permalink
fix: fix sync and sa [tekton-apps]
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-saritasa committed Oct 31, 2021
1 parent 231f17a commit d6c2cbb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/tekton-apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ triggersVersions: "v0.16.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.1.2
version: 0.1.3


maintainers:
Expand Down
4 changes: 3 additions & 1 deletion charts/tekton-apps/templates/_snippets.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ kind: ServiceAccount
metadata:
name: {{ include "tekton-apps.resourceName" $ }}
namespace: {{ .namespace }}
annotations:
argocd.argoproj.io/sync-wave: "1"
secrets:
{{- if .secret }}
- name: {{ .secret }}
Expand All @@ -170,7 +172,7 @@ metadata:
name: {{ include "tekton-apps.resourceName" $ }}
namespace: {{ .namespace }}
annotations:
argocd.argoproj.io/sync-wave: "11"
argocd.argoproj.io/sync-wave: "100"
spec:
accessModes:
- ReadWriteOnce
Expand Down
4 changes: 2 additions & 2 deletions charts/tekton-apps/templates/eventlistener.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
name: build-pipeline-event-listener
namespace: {{ .Release.Namespace }}
annotations:
argocd.argoproj.io/sync-wave: "1000"
argocd.argoproj.io/sync-wave: "10"
spec:
serviceAccountName: trigger-sa
serviceAccountName: build-bot-sa
triggers:
{{- range $project := .Values.apps }}
{{- if $project.enabled }}
Expand Down
9 changes: 9 additions & 0 deletions charts/tekton-apps/templates/serviceaccounts.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{{ if .Values.apps }}
# this is default sa under which we run our EventListener
apiVersion: v1
kind: ServiceAccount
metadata:
name: build-bot-sa
namespace: {{ .Release.Namespace }}
secrets: []
---

{{- range $project := .Values.apps }}

{{- if $project.enabled }}
Expand Down

0 comments on commit d6c2cbb

Please sign in to comment.