Skip to content

Commit

Permalink
Merge pull request #235 from opokornyy/deprecate-task
Browse files Browse the repository at this point in the history
Add deprecation annotations
  • Loading branch information
ksimon1 authored Mar 30, 2023
2 parents eb1c772 + 159ce61 commit b06402a
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Visit [RBAC permissions for running the tasks](docs/tasks-rbac-permissions.md) i

## Usage

#### copy-template, modify-vm-template and create-vm-from-template tasks are deprecated and will be removed in future versions. These tasks based on templates will be replaced with create-vm task with enhancements related to instance types.

#### Create Virtual Machines

- [create-vm-from-manifest](tasks/create-vm-from-manifest)
Expand Down
3 changes: 3 additions & 0 deletions manifests/okd/kubevirt-tekton-tasks-okd.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tasks/copy-template/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tasks/copy-template/manifests/copy-template.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tasks/create-vm-from-template/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tasks/modify-vm-template/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tasks/modify-vm-template/manifests/modify-vm-template.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions templates/copy-template/manifests/copy-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: tekton.dev/v1beta1
kind: ClusterTask
metadata:
annotations:
tekton.dev/deprecated: "true"
task.kubevirt.io/associatedServiceAccount: {{ sa_name }}
sourceTemplateName.params.task.kubevirt.io/kind: {{ task_param_types.template_kind }}
sourceTemplateName.params.task.kubevirt.io/apiVersion: {{ task_param_types.template_version }}
Expand Down
2 changes: 2 additions & 0 deletions templates/copy-template/readmes/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Copy okd template Task

#### Task is deprecated and will be removed in future versions.

This task copies a template.
A bundle of predefined templates to use can be found in [Common Templates](https://github.com/kubevirt/common-templates) project.

Expand Down
1 change: 1 addition & 0 deletions templates/create-vm-from-manifest/manifests/create-vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ metadata:
manifest.params.task.kubevirt.io/apiVersion: {{ task_param_types.vm_version }}
namespace.params.task.kubevirt.io/type: {{ task_param_types.namespace }}
{% elif task_name == "create-vm-from-template" %}
tekton.dev/deprecated: "true"
templateName.params.task.kubevirt.io/type: {{ task_param_types.vm_template_name }}
templateName.params.task.kubevirt.io/kind: {{ task_param_types.template_kind }}
templateName.params.task.kubevirt.io/apiVersion: {{ task_param_types.template_version }}
Expand Down
2 changes: 2 additions & 0 deletions templates/create-vm-from-template/readmes/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Create VirtualMachine from OKD Template Task

#### Task is deprecated and will be removed in future versions.

This task creates a VirtualMachine from OKD Template.
Virtual machines can be described and parametrized in a generic form with these templates.
A bundle of predefined templates to use can be found in [Common Templates](https://github.com/kubevirt/common-templates) project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: tekton.dev/v1beta1
kind: ClusterTask
metadata:
annotations:
tekton.dev/deprecated: "true"
task.kubevirt.io/associatedServiceAccount: {{ sa_name }}
templateName.params.task.kubevirt.io/kind: {{ task_param_types.template_kind }}
templateName.params.task.kubevirt.io/apiVersion: {{ task_param_types.template_version }}
Expand Down
2 changes: 2 additions & 0 deletions templates/modify-vm-template/readmes/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Modify OpenShift template Task

#### Task is deprecated and will be removed in future versions.

This task modifies template.
A bundle of predefined templates to use can be found in [Common Templates](https://github.com/kubevirt/common-templates) project.

Expand Down

0 comments on commit b06402a

Please sign in to comment.