Move test job and friends to j7s-ci namespace.

This commit is contained in:
James Pace 2023-01-29 19:41:26 -05:00
parent 738acb5d33
commit 7154cddcec
9 changed files with 20 additions and 13 deletions

View File

@ -1,7 +1,11 @@
# Keeping this as an example, but the test pipeline was changed
# at one point to show interoperability with PRs.
---
apiVersion: batch/v1
kind: Job
metadata:
name: test-trigger-check
namespace: j7s-ci
spec:
template:
spec:
@ -12,6 +16,6 @@ spec:
args:
- "-c"
- >-
curl -X POST http://el-test-pipeline-listener.default.svc.cluster.local:8080 -H 'Content-Type: application/json' -d '{}'
curl -X POST http://el-test-pipeline-listener.j7s-ci.svc.cluster.local:8080 -H 'Content-Type: application/json' -d '{}'
restartPolicy: Never
backoffLimit: 0

4
namespaces/j7s-ci.yaml Normal file
View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: j7s-ci

View File

@ -1,10 +0,0 @@
{
"apiVersion": "v1",
"kind": "Namespace",
"metadata": {
"name": "j7s-dev",
"labels": {
"name": "j7s-dev"
}
}
}

View File

@ -4,6 +4,7 @@ apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: test-pipeline
namespace: j7s-ci
spec:
description: "A test pipeline."
workspaces:
@ -23,7 +24,7 @@ spec:
workspace: git-credentials
params:
- name: url
value: ssh://git.jpace121.net:2222/job-test
value: ssh://git.jpace121.net:2222/tests/job-test
- name: branch
value: master
taskRef:

View File

@ -2,6 +2,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: tekton-bot
namespace: j7s-ci
secrets:
- name: git-credentials
---
@ -9,6 +10,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: tekton-bot-eventlistener-binding
namespace: j7s-ci
subjects:
- kind: ServiceAccount
name: tekton-bot
@ -24,7 +26,7 @@ metadata:
subjects:
- kind: ServiceAccount
name: tekton-bot
namespace: default
namespace: j7s-ci
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole

View File

@ -2,6 +2,7 @@ apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: j7s-git-clone
namespace: j7s-ci
spec:
workspaces:
- name: output

View File

@ -2,6 +2,7 @@ apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: j7s-onedev-file-bug
namespace: j7s-ci
spec:
params:
- name: tekton-login-secret-name

View File

@ -2,6 +2,7 @@ apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: j7s-onedev-pr-review
namespace: j7s-ci
spec:
params:
- name: tekton-login-secret-name

View File

@ -3,6 +3,7 @@ apiVersion: triggers.tekton.dev/v1beta1
kind: EventListener
metadata:
name: test-pipeline-listener
namespace: j7s-ci
spec:
serviceAccountName: tekton-bot
triggers:
@ -19,6 +20,7 @@ apiVersion: triggers.tekton.dev/v1beta1
kind: TriggerBinding
metadata:
name: test-pipeline-binding
namespace: j7s-ci
spec:
params:
- name: pr-id
@ -28,6 +30,7 @@ apiVersion: triggers.tekton.dev/v1beta1
kind: TriggerTemplate
metadata:
name: test-pipeline-template
namespace: j7s-ci
spec:
params:
- name: pr-id