-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor Tekton Triggers components deployment (#130)
* Now GitServers are the list of objects * Remove logic from EventListener to Tekton Triggers * Consume GITLAB_HOST_URL from Event Payload and not from templating JIRA: EPMDEDP-13302 Signed-off-by: Sergiy Kulanov <[email protected]> Change-Id: Ied986df9e329a1966f0a4e3d0074087dc1699e11
- Loading branch information
Showing
45 changed files
with
583 additions
and
496 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
13 changes: 0 additions & 13 deletions
13
charts/pipelines-library/templates/resources/edpcomponents/github.yaml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
charts/pipelines-library/templates/resources/edpcomponents/gitlab.yaml
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
charts/pipelines-library/templates/resources/gitservers/eventlistener.yaml
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,37 @@ | ||
{{- range .Values.gitServers }} | ||
{{- if and (has .gitProvider $.Values.global.gitProviders) .eventListener.enabled }} | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: EventListener | ||
metadata: | ||
name: edp-{{ .gitProvider }} | ||
labels: | ||
{{- include "edp-tekton.labels" $ | nindent 4 }} | ||
spec: | ||
triggers: | ||
- triggerRef: {{ .gitProvider }}-build | ||
- triggerRef: {{ .gitProvider }}-review | ||
resources: | ||
kubernetesResource: | ||
spec: | ||
template: | ||
spec: | ||
serviceAccountName: tekton-triggers-sa-{{ $.Release.Namespace }} | ||
containers: | ||
- name: '' | ||
resources: | ||
{{- toYaml .eventListener.resources | nindent 18 }} | ||
{{- with .eventListener.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 14 }} | ||
{{- end }} | ||
{{- with .eventListener.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 14 }} | ||
{{- end }} | ||
{{- with .eventListener.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 14 }} | ||
{{- end }} | ||
{{- end }} | ||
--- | ||
{{- end }} |
Oops, something went wrong.