-
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.
- Loading branch information
1 parent
a656b4f
commit 16a9d0c
Showing
17 changed files
with
240 additions
and
14 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
8 changes: 8 additions & 0 deletions
8
charts/tekton-pipelines/templates/buildpacks/tasks/post-deploy.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,8 @@ | ||
{{- range $pipeline := $.Values.buildpacks.generate }} | ||
{{ $data := dict "steps" $pipeline.postDeployTaskSteps | ||
"namespace" $.Release.Namespace | ||
"namePrefix" $pipeline.name }} | ||
{{ if and (and $.Values.buildpacks.enabled $pipeline.enabled) $pipeline.postDeployTaskSteps }} | ||
{{ include "task.postDeploy" $data }} | ||
{{ end }} | ||
{{- 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
42 changes: 42 additions & 0 deletions
42
charts/tekton-pipelines/templates/common/tasks/_post-deploy.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,42 @@ | ||
{{- define "task.postDeploy" -}} | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: {{ .namePrefix }}-post-deploy | ||
namespace: {{ .namespace }} | ||
|
||
spec: | ||
description: >- | ||
Task performs custom post deploy actions, which are set from values.yaml | ||
(for ex. run selenium tests or etc) | ||
params: | ||
|
||
- name: application | ||
type: string | ||
description: name of the argocd application we're going to deploy/sync | ||
|
||
- name: project | ||
type: string | ||
description: name of the project, which component is deployed | ||
|
||
- name: sha | ||
type: string | ||
description: sha commit ID of the image deployed in cluster | ||
|
||
- name: environment | ||
type: string | ||
description: environment name of the app being built, i.e. dev/staging/prod | ||
|
||
stepTemplate: | ||
envFrom: | ||
- configMapRef: | ||
name: $(params.application)-build-pipeline-config # project specific values | ||
|
||
# insert customized steps as defined in the values.yaml of the helm chart | ||
{{ if .steps }} | ||
steps: | ||
{{ .steps | toYaml | nindent 4}} | ||
{{ end }} | ||
--- | ||
{{- 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
6 changes: 6 additions & 0 deletions
6
charts/tekton-pipelines/templates/kaniko/tasks/post-deploy.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,6 @@ | ||
{{ if and .Values.kaniko.enabled .Values.kaniko.postDeployTaskSteps }} | ||
{{ $data := dict "steps" .Values.kaniko.postDeployTaskSteps | ||
"namespace" $.Release.Namespace | ||
"namePrefix" "kaniko" }} | ||
{{ include "task.postDeploy" $data }} | ||
{{ 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
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
Oops, something went wrong.