This commit is contained in:
2020-03-12 07:25:45 +01:00
parent b08a76e8a5
commit f8898596f2
5 changed files with 720 additions and 337 deletions

View File

@@ -2,7 +2,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: tekton-pipeline-istio-project-1
name: stage-tekton-pipeline
labels:
istio-injection: enabled #zorgt voor auto sidecar injection
---
@@ -10,7 +10,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: service-acc
namespace: tekton-pipeline-istio-project-1
namespace: stage-tekton-pipeline
secrets:
- name: regcred
---
@@ -24,6 +24,7 @@ rules:
- "apps"
- "deploy"
- "networking.istio.io"
# deze zullen we ook moeten aanpassen elke pipeline die we maken, maar, deze pipelines zijn nu specifiek per branch, dus dit zou geen probleem leveren.
resources:
- pods
- serviceaccounts
@@ -54,13 +55,13 @@ roleRef:
subjects:
- kind: ServiceAccount
name: service-acc
namespace: tekton-pipeline-istio-project-1
namespace: stage-tekton-pipeline
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: git-master
namespace: tekton-pipeline-istio-project-1
namespace: stage-tekton-pipeline
spec:
type: git
params:
@@ -73,7 +74,7 @@ apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: git-experimental
namespace: tekton-pipeline-istio-project-1
namespace: stage-tekton-pipeline
spec:
type: git
params:
@@ -86,7 +87,7 @@ apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: build-and-push
namespace: tekton-pipeline-istio-project-1
namespace: stage-tekton-pipeline
spec:
inputs:
resources:
@@ -117,7 +118,7 @@ apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: destroy-application
namespace: tekton-pipeline-istio-project-1
namespace: stage-tekton-pipeline
spec:
inputs:
resources:
@@ -137,7 +138,7 @@ apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: deploy-application
namespace: tekton-pipeline-istio-project-1
namespace: stage-tekton-pipeline
spec:
inputs:
resources:
@@ -156,7 +157,7 @@ apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
name: application-pipeline
namespace: tekton-pipeline-istio-project-1
namespace: stage-tekton-pipeline
spec:
resources:
- name: git-master