refactor: use TaskRun directly, drop Pipeline wrapper
CI / CI (pull_request) Successful in 3m13s

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:
Admin Bot
2026-09-14 07:43:35 +09:00
parent f47fecc589
commit 819ea346b9
4 changed files with 13 additions and 46 deletions
+1 -4
View File
@@ -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"]
-1
View File
@@ -6,7 +6,6 @@ namespace: api
resources:
- ci-rbac.yaml
- task-integration-test.yaml
- pipeline-integration-test.yaml
generatorOptions:
disableNameSuffixHash: true
-30
View File
@@ -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)