Pipeline was a pass-through wrapping one Task — unnecessary indirection. CI now creates TaskRun directly against the integration-test Task.
This commit is contained in:
@@ -15,12 +15,9 @@ metadata:
|
||||
name: ci-tekton-trigger
|
||||
namespace: api
|
||||
rules:
|
||||
- apiGroups: ["tekton.dev"]
|
||||
resources: ["pipelineruns"]
|
||||
verbs: ["create", "get", "list", "watch", "delete"]
|
||||
- apiGroups: ["tekton.dev"]
|
||||
resources: ["taskruns"]
|
||||
verbs: ["get", "list"]
|
||||
verbs: ["create", "get", "list", "watch", "delete"]
|
||||
- apiGroups: [""]
|
||||
resources: ["pods", "pods/log"]
|
||||
verbs: ["get", "list"]
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace: api
|
||||
resources:
|
||||
- ci-rbac.yaml
|
||||
- task-integration-test.yaml
|
||||
- pipeline-integration-test.yaml
|
||||
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
apiVersion: tekton.dev/v1
|
||||
kind: Pipeline
|
||||
metadata:
|
||||
name: integration-test-pipeline
|
||||
namespace: api
|
||||
labels:
|
||||
app: api-gateway
|
||||
component: testing
|
||||
spec:
|
||||
description: >
|
||||
Run integration tests against a gateway image.
|
||||
Spins up the image as a sidecar, tests via curl, reports pass/fail.
|
||||
params:
|
||||
- name: image
|
||||
type: string
|
||||
description: "Container image to test (repo:sha)"
|
||||
results:
|
||||
- name: test-result
|
||||
description: "pass or fail"
|
||||
value: $(tasks.integration-test.results.result)
|
||||
- name: test-summary
|
||||
description: "e.g. 8/8 passed"
|
||||
value: $(tasks.integration-test.results.summary)
|
||||
tasks:
|
||||
- name: integration-test
|
||||
taskRef:
|
||||
name: integration-test
|
||||
params:
|
||||
- name: image
|
||||
value: $(params.image)
|
||||
Reference in New Issue
Block a user