-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
guide: CI/CD with Tekton #59
guide: CI/CD with Tekton #59
Conversation
e380ec0
to
11ac9a8
Compare
@david-martin draft. I need to do an e2e spin through |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got the task to run, which some changes suggested above.
The task is failing at the moment. I haven't looked into why, but here's the status:
kubectl get taskrun -A
NAMESPACE NAME SUCCEEDED REASON STARTTIME COMPLETIONTIME
kuadrantctl-ci-example run-kuadrantctl-taskrun False TaskRunResolutionFailed 76s 76s
message: 'error when listing tasks for taskRun run-kuadrantctl-taskrun: tasks.tekton.dev
"run-kuadrantctl" not found'
events
kubectl -n kuadrantctl-ci-example get ev
LAST SEEN TYPE REASON OBJECT MESSAGE
109s Normal Started taskrun/run-kuadrantctl-taskrun
109s Warning Failed taskrun/run-kuadrantctl-taskrun error when listing tasks for taskRun run-kuadrantctl-taskrun: tasks.tekton.dev "run-kuadrantctl" not found
109s Warning InternalError taskrun/run-kuadrantctl-taskrun 1 error occurred:...
2m11s Normal WaitForFirstConsumer persistentvolumeclaim/tekton-kuadrantctl-pvc waiting for first consumer to be created before binding
b0270a1
to
ad286cc
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #59 +/- ##
=====================================
Coverage 0.38% 0.38%
=====================================
Files 17 17
Lines 783 783
=====================================
Hits 3 3
Misses 780 780 ☔ View full report in Codecov by Sentry. |
1b16019
to
0ce2b39
Compare
@david-martin this is actually runnable now. Added some steps to test. |
0ce2b39
to
ff0e978
Compare
ff0e978
to
6219b31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestion for pre-reqs, otherwise all good.
tkn tr list -n petstore
NAME STARTED DURATION STATUS
run-kuadrantctl-taskrun 32 seconds ago 17s Succeeded
tkn tr logs run-kuadrantctl-taskrun -f -n petstore
[clone] Cloning into '/workspace/source'...
[clone] Already on 'main'
[clone] Your branch is up to date with 'origin/main'.
[download-kuadrantctl] % Total % Received % Xferd Average Speed Time Time Time Current
[download-kuadrantctl] Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 21.4M 100 21.4M 0 0 12.7M 0 0:00:01 0:00:01 --:--:-- 21.2M
[run-kuadrantctl] kind: AuthPolicy
[run-kuadrantctl] apiVersion: kuadrant.io/v1beta2
[run-kuadrantctl] metadata:
[run-kuadrantctl] name: petstore
[run-kuadrantctl] namespace: petstore
[run-kuadrantctl] creationTimestamp: null
[run-kuadrantctl] labels:
[run-kuadrantctl] deployment: petstore
[run-kuadrantctl] owner: jbloggs
[run-kuadrantctl] spec:
[run-kuadrantctl] targetRef:
[run-kuadrantctl] group: gateway.networking.k8s.io
[run-kuadrantctl] kind: HTTPRoute
[run-kuadrantctl] name: petstore
[run-kuadrantctl] namespace: petstore
[run-kuadrantctl] routeSelectors:
[run-kuadrantctl] - matches:
[run-kuadrantctl] - path:
[run-kuadrantctl] type: Exact
[run-kuadrantctl] value: /api/v3/store/admin
[run-kuadrantctl] method: GET
[run-kuadrantctl] rules:
[run-kuadrantctl] authentication:
[run-kuadrantctl] storeAdmin_api_key:
[run-kuadrantctl] credentials:
[run-kuadrantctl] customHeader:
[run-kuadrantctl] name: api_key
[run-kuadrantctl] apiKey:
[run-kuadrantctl] selector:
[run-kuadrantctl] matchLabels:
[run-kuadrantctl] kuadrant.io/apikeys-by: api_key
[run-kuadrantctl] routeSelectors:
[run-kuadrantctl] - matches:
[run-kuadrantctl] - path:
[run-kuadrantctl] type: Exact
[run-kuadrantctl] value: /api/v3/store/admin
[run-kuadrantctl] method: GET
[run-kuadrantctl] status: {}
[run-kuadrantctl] kind: RateLimitPolicy
[run-kuadrantctl] apiVersion: kuadrant.io/v1beta2
[run-kuadrantctl] metadata:
[run-kuadrantctl] name: petstore
[run-kuadrantctl] namespace: petstore
[run-kuadrantctl] creationTimestamp: null
[run-kuadrantctl] labels:
[run-kuadrantctl] deployment: petstore
[run-kuadrantctl] owner: jbloggs
[run-kuadrantctl] spec:
[run-kuadrantctl] targetRef:
[run-kuadrantctl] group: gateway.networking.k8s.io
[run-kuadrantctl] kind: HTTPRoute
[run-kuadrantctl] name: petstore
[run-kuadrantctl] namespace: petstore
[run-kuadrantctl] limits:
[run-kuadrantctl] getInventory:
[run-kuadrantctl] routeSelectors:
[run-kuadrantctl] - matches:
[run-kuadrantctl] - path:
[run-kuadrantctl] type: Exact
[run-kuadrantctl] value: /api/v3/store/inventory
[run-kuadrantctl] method: GET
[run-kuadrantctl] rates:
[run-kuadrantctl] - limit: 10
[run-kuadrantctl] duration: 10
[run-kuadrantctl] unit: second
[run-kuadrantctl] loginUser:
[run-kuadrantctl] routeSelectors:
[run-kuadrantctl] - matches:
[run-kuadrantctl] - path:
[run-kuadrantctl] type: Exact
[run-kuadrantctl] value: /api/v3/user/login
[run-kuadrantctl] method: GET
[run-kuadrantctl] rates:
[run-kuadrantctl] - limit: 2
[run-kuadrantctl] duration: 10
[run-kuadrantctl] unit: second
[run-kuadrantctl] status: {}
[run-kuadrantctl] kind: HTTPRoute
[run-kuadrantctl] apiVersion: gateway.networking.k8s.io/v1beta1
[run-kuadrantctl] metadata:
[run-kuadrantctl] name: petstore
[run-kuadrantctl] namespace: petstore
[run-kuadrantctl] creationTimestamp: null
[run-kuadrantctl] labels:
[run-kuadrantctl] deployment: petstore
[run-kuadrantctl] owner: jbloggs
[run-kuadrantctl] spec:
[run-kuadrantctl] parentRefs:
[run-kuadrantctl] - kind: Gateway
[run-kuadrantctl] namespace: kuadrant-multi-cluster-gateways
[run-kuadrantctl] name: prod-web
[run-kuadrantctl] hostnames:
[run-kuadrantctl] - petstore.${KUADRANT_ZONE_ROOT_DOMAIN}
[run-kuadrantctl] rules:
[run-kuadrantctl] - matches:
[run-kuadrantctl] - path:
[run-kuadrantctl] type: Exact
[run-kuadrantctl] value: /api/v3/store/admin
[run-kuadrantctl] method: GET
[run-kuadrantctl] backendRefs:
[run-kuadrantctl] - name: petstore
[run-kuadrantctl] namespace: petstore
[run-kuadrantctl] port: 8080
[run-kuadrantctl] - matches:
[run-kuadrantctl] - path:
[run-kuadrantctl] type: Exact
[run-kuadrantctl] value: /api/v3/store/inventory
[run-kuadrantctl] method: GET
[run-kuadrantctl] backendRefs:
[run-kuadrantctl] - name: petstore
[run-kuadrantctl] namespace: petstore
[run-kuadrantctl] port: 8080
[run-kuadrantctl] - matches:
[run-kuadrantctl] - path:
[run-kuadrantctl] type: Exact
[run-kuadrantctl] value: /api/v3/user/login
[run-kuadrantctl] method: GET
[run-kuadrantctl] backendRefs:
[run-kuadrantctl] - name: petstore
[run-kuadrantctl] namespace: petstore
[run-kuadrantctl] port: 8080
[run-kuadrantctl] status:
[run-kuadrantctl] parents: null
[apply-resources] authpolicy.kuadrant.io/petstore unchanged
[apply-resources] httproute.gateway.networking.k8s.io/petstore created
[apply-resources] ratelimitpolicy.kuadrant.io/petstore created
Re: Kuadrant/docs.kuadrant.io#64
Steps to Run:
kuadrant-operator
running)Sample output: