Add tekton pipelines
This commit is contained in:
26
charts/tekton-pipelines/templates/shell-operator/deploy.yaml
Normal file
26
charts/tekton-pipelines/templates/shell-operator/deploy.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: shell-operator
|
||||
namespace: {{ .Values.pipelineRunNamespace }}
|
||||
labels:
|
||||
{{- include "tekton-pipelines.labels" . | nindent 4 }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "tekton-pipelines.selectorLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "tekton-pipelines.labels" . | nindent 8 }}
|
||||
spec:
|
||||
serviceAccountName: shell-operator
|
||||
containers:
|
||||
- name: shell-operator
|
||||
env:
|
||||
- name: SP_TEKTON_RUNTIME_NS
|
||||
value: {{ .Values.pipelineRunNamespace }}
|
||||
imagePullPolicy: Always
|
||||
image: git.badhouseplants.net/softplayer/softplayer-controller:latest
|
39
charts/tekton-pipelines/templates/shell-operator/rbac.yaml
Normal file
39
charts/tekton-pipelines/templates/shell-operator/rbac.yaml
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
namespace: {{ .Values.pipelineRunNamespace }}
|
||||
name: shell-operator
|
||||
labels:
|
||||
{{- include "tekton-pipelines.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["tekton.dev"]
|
||||
resources: ["pipelineruns"]
|
||||
verbs: ["*"]
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: shell-operator
|
||||
namespace: {{ .Values.pipelineRunNamespace }}
|
||||
labels:
|
||||
{{- include "tekton-pipelines.labels" . | nindent 4 }}
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: shell-operator
|
||||
namespace: {{ .Values.pipelineRunNamespace }}
|
||||
labels:
|
||||
{{- include "tekton-pipelines.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: shell-operator
|
||||
namespace: {{ .Values.pipelineRunNamespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: shell-operator
|
||||
apiGroup: rbac.authorization.k8s.io
|
Reference in New Issue
Block a user