From 4a0049d6f781137fda237452fdd26d60a699b8e1 Mon Sep 17 00:00:00 2001 From: Shivam Mukhade Date: Tue, 30 Jun 2020 20:06:19 +0530 Subject: [PATCH] Modifies gcloud 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 also moves the gcloud files to the task directory and modifies the path for install task command in readme file Issue: #386 Signed-off-by: Shivam Mukhade --- {gcloud => task/gcloud/0.1}/README.md | 2 +- {gcloud => task/gcloud/0.1}/gcloud.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) rename {gcloud => task/gcloud/0.1}/README.md (99%) rename {gcloud => task/gcloud/0.1}/gcloud.yaml (64%) diff --git a/gcloud/README.md b/task/gcloud/0.1/README.md similarity index 99% rename from gcloud/README.md rename to task/gcloud/0.1/README.md index 2760bd70..6e2c6932 100644 --- a/gcloud/README.md +++ b/task/gcloud/0.1/README.md @@ -5,7 +5,7 @@ This task performs operations on Google Cloud Platform resources using `gcloud`. ## Install the Task ``` -kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/gcloud/gcloud.yaml +kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/task/gcloud/0.1/gcloud.yaml ``` ## Parameters diff --git a/gcloud/gcloud.yaml b/task/gcloud/0.1/gcloud.yaml similarity index 64% rename from gcloud/gcloud.yaml rename to task/gcloud/0.1/gcloud.yaml index 3dd68aaa..38280c75 100644 --- a/gcloud/gcloud.yaml +++ b/task/gcloud/0.1/gcloud.yaml @@ -2,7 +2,15 @@ apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: gcloud + labels: + app.kubernetes.io/version: "0.1" + annotations: + tekton.dev/pipelines.minVersion: "0.12.1" + tekton.dev/tags: gcp spec: + description: >- + This task performs operations on Google Cloud Platform resources using gcloud. + params: - name: gcloud-image description: gcloud CLI container image to run this task