mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 12:02:47 +00:00
HLEP
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user