From faf6612f5492c2db98712307fd2aee4f2a235af2 Mon Sep 17 00:00:00 2001 From: vathakur Date: Wed, 21 May 2025 21:50:34 +0530 Subject: [PATCH] created_procedure_module --- modules/virt-deprecated-tasks-web.adoc | 25 +++++++++++++++++++ ...virt-managing-vms-openshift-pipelines.adoc | 4 +++ 2 files changed, 29 insertions(+) create mode 100644 modules/virt-deprecated-tasks-web.adoc diff --git a/modules/virt-deprecated-tasks-web.adoc b/modules/virt-deprecated-tasks-web.adoc new file mode 100644 index 0000000000..4674b203c3 --- /dev/null +++ b/modules/virt-deprecated-tasks-web.adoc @@ -0,0 +1,25 @@ +// Module included in the following assemblies: +// +// * virt/virtual_machines/virt-deprecated-tasks.adoc + +:_mod-docs-content-type: PROCEDURE +[id="virt-deprecated-tasks.web.adoc_{context}"] += Removing deprecated or unused resources + +You can clean up deprecated or unused resources associated with the {pipelines-title} Operator. + +.Procedure + +* Remove any remaining {pipelines-shortname} resources from the cluster by running the following command: ++ +[source,terminal] +---- +$ oc delete clusterroles,rolebindings,serviceaccounts,configmaps,pipelines,tasks \ + --selector 'app.kubernetes.io/managed-by=ssp-operator' \ + --selector 'app.kubernetes.io/component in (tektonPipelines,tektonTasks)' \ + --selector 'app.kubernetes.io/name in (tekton-pipelines,tekton-tasks)' \ + --ignore-not-found \ + --all-namespaces +---- ++ +If the {pipelines-title} Operator custom resource definitions (CRDs) have already been removed, the command may return an error. You can safely ignore this, as all other matching resources will still be deleted. \ No newline at end of file diff --git a/virt/managing_vms/virt-managing-vms-openshift-pipelines.adoc b/virt/managing_vms/virt-managing-vms-openshift-pipelines.adoc index 379a2e3766..034e03e2ba 100644 --- a/virt/managing_vms/virt-managing-vms-openshift-pipelines.adoc +++ b/virt/managing_vms/virt-managing-vms-openshift-pipelines.adoc @@ -6,6 +6,7 @@ include::_attributes/common-attributes.adoc[] toc::[] + link:https://docs.openshift.com/pipelines/latest/about/understanding-openshift-pipelines.html[{pipelines-title}] is a Kubernetes-native CI/CD framework that allows developers to design and run each step of the CI/CD pipeline in its own container. By using {pipelines-shortname} tasks and the example pipeline, you can do the following: @@ -43,6 +44,9 @@ include::modules/virt-running-ssp-pipeline-web.adoc[leveloffset=+2] include::modules/virt-running-ssp-pipeline-cli.adoc[leveloffset=+2] +include::modules/virt-deprecated-tasks-web.adoc[leveloffset=+1] + + [role="_additional-resources"] [id="additional-resources_virt-managing-vms-openshift-pipelines"] == Additional resources