-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.13.0
-
Low
-
No
-
ODC Sprint 238
-
1
-
False
-
This is a clone of issue OCPBUGS-11844. The following is the description of the original issue:
—
This is a clone of issue OCPBUGS-5548. The following is the description of the original issue:
—
Description of problem:
This is a follow-up on https://bugzilla.redhat.com/show_bug.cgi?id=2083087 and https://github.com/openshift/console/pull/12390
When creating a Deployment, DeploymentConfig, or Knative Service with enabled Pipeline, and then deleting it again with the enabled option "Delete other resources created by console" (only available on 4.13+ with the PR above) the automatically created Pipeline is not deleted.
When the user tries to create the same resource with a Pipeline again this fails with an error:
An error occurred
secrets "nodeinfo-generic-webhook-secret" already exists
Version-Release number of selected component (if applicable):
4.13
(we might want to backport this together with https://github.com/openshift/console/pull/12390 and OCPBUGS-5547)
How reproducible:
Always
Steps to Reproduce:
- Install OpenShift Pipelines operator (tested with 1.8.2)
- Create a new project
- Navigate to Add > Import from git and create an application
- Case 1: In the topology select the new resource and delete it
- Case 2: In the topology select the application group and delete the complete app
Actual results:
Case 1: Delete resources:
- Deployment (tries it twice!) $name
- Service $name
- Route $name
- ImageStream $name
Case 2: Delete application:
- Deployment (just once) $name
- Service $name
- Route $name
- ImageStream $name
Expected results:
Case 1: Delete resource:
- Delete Deployment $name should be called just once
- (Keep this deletion) Service $name
- (Keep this deletion) Route $name
- (Keep this deletion) ImageStream $name
- Missing deletion of the Tekton Pipeline $name
- Missing deletion of the Tekton TriggerTemplate with generated name trigger-template-$name-$random
- Missing deletion of the Secret $name-generic-webhook-secret
- Missing deletion of the Secret $name-github-webhook-secret
Case 2: Delete application:
- (Keep this deletion) Deployment $name
- (Keep this deletion) Service $name
- (Keep this deletion) Route $name
- (Keep this deletion) ImageStream $name
- Missing deletion of the Tekton Pipeline $name
- Missing deletion of the Tekton TriggerTemplate with generated name trigger-template-$name-$random
- Missing deletion of the Secret $name-generic-webhook-secret
- Missing deletion of the Secret $name-github-webhook-secret
Additional info:
- clones
-
OCPBUGS-11844 Pipeline is not removed when Deployment/DC/Knative Service or Application is deleted
- Closed
- is blocked by
-
OCPBUGS-11844 Pipeline is not removed when Deployment/DC/Knative Service or Application is deleted
- Closed
- links to