Added tekton pipelines
This commit is contained in:
11
tekton/2-Setup/docker-creds.yaml
Normal file
11
tekton/2-Setup/docker-creds.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: docker-creds
|
||||
namespace: tekton-pipelines
|
||||
annotations:
|
||||
kube-1password: kgpbumszi4stqgyzg4kqrttxam
|
||||
kube-1password/vault: Kubernetes
|
||||
tekton.dev/docker-0: https://docker.cloud.cluster.fun/averagemarcus
|
||||
type: kubernetes.io/basic-auth
|
||||
|
39
tekton/2-Setup/eventlistener-rbac.yaml
Normal file
39
tekton/2-Setup/eventlistener-rbac.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: eventlistener
|
||||
namespace: tekton-pipelines
|
||||
|
||||
---
|
||||
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: eventlistener
|
||||
namespace: tekton-pipelines
|
||||
rules:
|
||||
- apiGroups: ["triggers.tekton.dev"]
|
||||
resources: ["eventlisteners", "triggerbindings", "triggertemplates"]
|
||||
verbs: ["get"]
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps", "secrets", "serviceaccounts"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["tekton.dev"]
|
||||
resources: ["pipelineruns", "pipelineresources", "taskruns"]
|
||||
verbs: ["create"]
|
||||
|
||||
---
|
||||
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: eventlistener
|
||||
namespace: tekton-pipelines
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: eventlistener
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: eventlistener
|
||||
namespace: tekton-pipelines
|
22
tekton/2-Setup/gitea-creds.yaml
Normal file
22
tekton/2-Setup/gitea-creds.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: gitea-access-token
|
||||
namespace: tekton-pipelines
|
||||
annotations:
|
||||
kube-1password: u45tpgj33bnxl6iz3kwgaf44va
|
||||
kube-1password/vault: Kubernetes
|
||||
kube-1password/password-key: access-token
|
||||
type: Opaque
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: gitea-creds
|
||||
annotations:
|
||||
kube-1password: 3jgo56jlsrdxilf2vdp5zsw6lq
|
||||
kube-1password/vault: Kubernetes
|
||||
tekton.dev/git-0: https://git.cloud.cluster.fun
|
||||
type: kubernetes.io/basic-auth
|
19
tekton/2-Setup/serviceaccounts.yaml
Normal file
19
tekton/2-Setup/serviceaccounts.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: deploy-project
|
||||
namespace: tekton-pipelines
|
||||
secrets:
|
||||
- name: docker-creds
|
||||
- name: gitea-creds
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: pr-project
|
||||
namespace: tekton-pipelines
|
||||
secrets:
|
||||
- name: docker-creds
|
||||
- name: gitea-creds
|
Reference in New Issue
Block a user