Skip to content

Commit

Permalink
Merge pull request #75 from enterprise-contract/issue/EC-29
Browse files Browse the repository at this point in the history
Use v1 Tekton API
  • Loading branch information
zregvart authored Oct 26, 2023
2 parents 4985f33 + 5221a21 commit 16b3657
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
5 changes: 1 addition & 4 deletions tasks/verify-definition/0.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This TaskRun runs the Task to verify the JSON string '{"kind": "Task"}'.

```yaml
---
apiVersion: tekton.dev/v1beta1
apiVersion: tekton.dev/v1
kind: TaskRun
metadata:
generateName: verify-definition-run-
Expand All @@ -48,6 +48,3 @@ spec:
value: task
timeout: 10m
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# SPDX-License-Identifier: Apache-2.0
---
apiVersion: tekton.dev/v1beta1
apiVersion: tekton.dev/v1
kind: TaskRun
metadata:
generateName: verify-definition-run-
Expand Down
2 changes: 1 addition & 1 deletion tasks/verify-definition/0.1/verify-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# SPDX-License-Identifier: Apache-2.0

---
apiVersion: tekton.dev/v1beta1
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: verify-definition
Expand Down
5 changes: 1 addition & 4 deletions tasks/verify-enterprise-contract/0.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ kubectl apply -f https://raw.githubusercontent.com/enterprise-contract/ec-cli/ma
This TaskRun runs the Task to verify an image. This assumes a policy is created and stored on the cluster with hte namespaced name of `enterprise-contract-service/default`. For more information on creating a policy, refer to the Enterprise Contract [documentation](https://enterprise-contract.github.io/ecc/main/index.html).

```yaml
apiVersion: tekton.dev/v1beta1
apiVersion: tekton.dev/v1
kind: TaskRun
metadata:
name: verify-enterprise-contract
Expand All @@ -38,6 +38,3 @@ spec:
- name: IMAGES
value: '{"components": ["containerImage": "quay.io/example/repo:latest"]}'
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# SPDX-License-Identifier: Apache-2.0
---
apiVersion: tekton.dev/v1beta1
apiVersion: tekton.dev/v1
kind: TaskRun
metadata:
generateName: verify-enterprise-contract-run-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# SPDX-License-Identifier: Apache-2.0

---
apiVersion: tekton.dev/v1beta1
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: verify-enterprise-contract
Expand Down

0 comments on commit 16b3657

Please sign in to comment.