Skip to content

chore(kubernetes/EKS): bump apiVersion from v1beta1 to v1 - #1394

Open
gferreir wants to merge 10 commits into
tektoncd:mainfrom
gferreir:chore/kubernetes-api-v1-bump
Open

gferreir wants to merge 10 commits into
tektoncd:mainfrom
gferreir:chore/kubernetes-api-v1-bump

Conversation

@gferreir

Copy link
Copy Markdown
Contributor

Changes

Mechanical API version bump for the kubernetes/EKS task family, as part of the
v1beta1 → v1 migration tracked in #1381.

Tasks updated

Task Old → New Changes
eks-cluster-create 0.1 → 0.2 apiVersion v1, minVersion 0.50.0, samples bumped
eks-cluster-teardown 0.1 → 0.2 apiVersion v1, minVersion 0.50.0, samples bumped
kind 0.1 → 0.2 apiVersion v1, minVersion 0.50.0, tests bumped
kubectl-deploy-pod 0.1 → 0.2 apiVersion v1, minVersion 0.50.0, samples bumped, ClusterRoleBinding bumped to rbac.authorization.k8s.io/v1
kubernetes-actions 0.2 → 0.3 apiVersion v1, minVersion 0.50.0, tests/samples bumped

Each task was created using copy-then-modify per CONTRIBUTING.md: one commit
copies the previous version directory, a second commit applies the version bump.
None of these tasks use PipelineResources or other v1beta1-only constructs.

Additional fix

kubectl-deploy-pod/0.2/support/clusterrolebinding.yaml was using
rbac.authorization.k8s.io/v1beta1, which has been removed since Kubernetes 1.22.
Bumped to rbac.authorization.k8s.io/v1.

Image pinning

All images in these tasks are either already pinned by digest (eksctl:0.35.0@sha256:...,
busybox:1.32.0@sha256:...) or referenced via $(params.image) (user-controlled).
No additional pinning was needed.

Validation

  • yamllint passes for all modified files (two pre-existing comment-spacing warnings inherited from upstream)
  • No remaining tekton.dev/v1beta1 references in any of the new version directories

Note on pre-existing conditions

eks-cluster-create and eks-cluster-teardown interpolate $(params.*) directly in
script: blocks. kubernetes-actions takes its entire script via $(params.script).
Those patterns are inherited from the previous versions and not introduced by this PR.
Script injection hardening will be addressed in follow-up PRs as part of #1381.

Ref: #1381

/kind cleanup

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Follows the authoring recommendations
  • Includes docs (if user facing)
  • Includes tests (for new tasks or changed functionality)
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Commit messages follow commit message best practices
  • Has a kind label. You can add one by adding a comment on this PR that
    contains /kind <type>. Valid types are bug, cleanup, design, documentation,
    feature, flake, misc, question, tep
  • Complies with Catalog Organization TEP, see example. Note An issue has been filed to automate this validation
    • File path follows <kind>/<name>/<version>/name.yaml

    • Has README.md at <kind>/<name>/<version>/README.md

    • Has mandatory metadata.labels - app.kubernetes.io/version the same as the <version> of the resource

    • Has mandatory metadata.annotations tekton.dev/pipelines.minVersion

    • mandatory spec.description follows the convention

        ```
        spec:
          description: >-
            one line summary of the resource
      
            Paragraph(s) to describe the resource.
        ```
      

See the contribution guide for more details.

Signed-off-by: gferreir <guilherme.nmf@gmail.com>
Ref: tektoncd#1381

Signed-off-by: gferreir <guilherme.nmf@gmail.com>
Signed-off-by: gferreir <guilherme.nmf@gmail.com>
Ref: tektoncd#1381

Signed-off-by: gferreir <guilherme.nmf@gmail.com>
Signed-off-by: gferreir <guilherme.nmf@gmail.com>
Ref: tektoncd#1381

Signed-off-by: gferreir <guilherme.nmf@gmail.com>
Signed-off-by: gferreir <guilherme.nmf@gmail.com>
Ref: tektoncd#1381

Signed-off-by: gferreir <guilherme.nmf@gmail.com>
Signed-off-by: gferreir <guilherme.nmf@gmail.com>
Ref: tektoncd#1381

Signed-off-by: gferreir <guilherme.nmf@gmail.com>
@tekton-robot tekton-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Sep 18, 2026
@tekton-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign vinamra28 after the PR has been reviewed.
You can assign the PR to them by writing /assign @vinamra28 in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Sep 18, 2026
@tekton-robot

Copy link
Copy Markdown
Diff between version 0.2 and 0.3
diff --git a/task/kubernetes-actions/0.2/README.md b/task/kubernetes-actions/0.3/README.md
index f194c33..0c5b8a0 100644
--- a/task/kubernetes-actions/0.2/README.md
+++ b/task/kubernetes-actions/0.3/README.md
@@ -5,7 +5,7 @@ This is a generic task used to perform kubernetes actions such as `kubectl get d
 ## Install the task
 
 ```
-kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/kubernetes-actions/0.2/kubernetes-actions.yaml
+kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/kubernetes-actions/0.3/kubernetes-actions.yaml
 ```
 
 ## Inputs
@@ -34,7 +34,7 @@ The Task can be run on `linux/amd64` platform.
 In case no manifests are mounted
 
 ```yaml
-apiVersion: tekton.dev/v1beta1
+apiVersion: tekton.dev/v1
 kind: TaskRun
 metadata:
   name: kubectl-run
@@ -52,7 +52,7 @@ spec:
 In case manifest is present on `GitHub` :
 
 ```yaml
-apiVersion: tekton.dev/v1beta1
+apiVersion: tekton.dev/v1
 kind: TaskRun
 metadata:
   name: kubectl-run
@@ -77,7 +77,7 @@ Running `kubectl` commands on other cluster
 
 2. Create the `TaskRun`
    ```yaml
-   apiVersion: tekton.dev/v1beta1
+   apiVersion: tekton.dev/v1
    kind: TaskRun
    metadata:
      name: kubectl-run
diff --git a/task/kubernetes-actions/0.2/kubernetes-actions.yaml b/task/kubernetes-actions/0.3/kubernetes-actions.yaml
index 10cde71..01d68d6 100644
--- a/task/kubernetes-actions/0.2/kubernetes-actions.yaml
+++ b/task/kubernetes-actions/0.3/kubernetes-actions.yaml
@@ -1,11 +1,11 @@
-apiVersion: tekton.dev/v1beta1
+apiVersion: tekton.dev/v1
 kind: Task
 metadata:
   name: kubernetes-actions
   labels:
-    app.kubernetes.io/version: "0.2"
+    app.kubernetes.io/version: "0.3"
   annotations:
-    tekton.dev/pipelines.minVersion: "0.17.0"
+    tekton.dev/pipelines.minVersion: "0.50.0"
     tekton.dev/categories: Kubernetes
     tekton.dev/tags: CLI, kubectl
     tekton.dev/displayName: "kubernetes actions"
diff --git a/task/kubernetes-actions/0.2/samples/kubectl-actions-run.yaml b/task/kubernetes-actions/0.3/samples/kubectl-actions-run.yaml
index 977d53e..07acbb8 100644
--- a/task/kubernetes-actions/0.2/samples/kubectl-actions-run.yaml
+++ b/task/kubernetes-actions/0.3/samples/kubectl-actions-run.yaml
@@ -1,4 +1,4 @@
-apiVersion: tekton.dev/v1beta1
+apiVersion: tekton.dev/v1
 kind: TaskRun
 metadata:
   name: kubectl-run
diff --git a/task/kubernetes-actions/0.2/samples/update-deployment-image-taskrun.yaml b/task/kubernetes-actions/0.3/samples/update-deployment-image-taskrun.yaml
index 07ca3e6..5f05a73 100644
--- a/task/kubernetes-actions/0.2/samples/update-deployment-image-taskrun.yaml
+++ b/task/kubernetes-actions/0.3/samples/update-deployment-image-taskrun.yaml
@@ -1,5 +1,5 @@
 ---
-apiVersion: tekton.dev/v1beta1
+apiVersion: tekton.dev/v1
 kind: TaskRun
 metadata:
   name: update-deployment-image-taskrun
diff --git a/task/kubernetes-actions/0.2/tests/resources.yaml b/task/kubernetes-actions/0.3/tests/resources.yaml
index 97fac20..cca0ad9 100644
--- a/task/kubernetes-actions/0.2/tests/resources.yaml
+++ b/task/kubernetes-actions/0.3/tests/resources.yaml
@@ -3,7 +3,7 @@ apiVersion: v1
 kind: ServiceAccount
 metadata:
   name: kubernetes-actions-account
-  namespace: kubernetes-actions-0-2
+  namespace: kubernetes-actions-0-3
 ---
 kind: ClusterRole
 apiVersion: rbac.authorization.k8s.io/v1
@@ -30,7 +30,7 @@ metadata:
 subjects:
   - kind: ServiceAccount
     name: kubernetes-actions-account
-    namespace: kubernetes-actions-0-2
+    namespace: kubernetes-actions-0-3
 roleRef:
   kind: ClusterRole
   name: kubernetes-actions-role
diff --git a/task/kubernetes-actions/0.2/tests/run.yaml b/task/kubernetes-actions/0.3/tests/run.yaml
index 29bb4b7..4d72452 100644
--- a/task/kubernetes-actions/0.2/tests/run.yaml
+++ b/task/kubernetes-actions/0.3/tests/run.yaml
@@ -1,4 +1,4 @@
-apiVersion: tekton.dev/v1beta1
+apiVersion: tekton.dev/v1
 kind: TaskRun
 metadata:
   name: kubernetes-actions-run

@gferreir

Copy link
Copy Markdown
Contributor Author

/assign @vinamra28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants