1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-26 06:23:37 +00:00

Modifies kubectl task according to the new reorg proposal

Changes include:
  - adds version label
  - adds a minimum pipeline versions supported by the task
  - adds tags for task
  - modified description to add a summary

This patch moves the kubectl files to the task directory and
renames the yaml file and the directory
  - The yaml filename and the directory is changed to match the resource name
  - Modifies the path for install task command in readme file

Issue: #386

Signed-off-by: Shiv Verma <shverma@redhat.com>
This commit is contained in:
pratap0007 2020-06-30 23:26:05 +05:30 committed by tekton-robot
parent f22c4d97c9
commit 149d291f64
6 changed files with 10 additions and 1 deletions

View File

@ -6,7 +6,7 @@ This Task deploys (or delete) a Kubernates resource (pod). It uses
## Install the Task
```
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/v1beta1/kubectl/kubectl-deploy.yaml
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/v1beta1/task/kubectl-deploy-pod/0.1/kubectl-deploy-pod.yaml
```
## Install ClusterRole

View File

@ -2,8 +2,17 @@ apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: kubectl-deploy-pod
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: deploy, delete
namespace: default
spec:
description: >-
This Task deploys (or delete) a Kubernates resource (pod). It uses
kubectl for that.
params:
- name: action
description: Action on the resource