-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.13.0
-
Low
-
No
-
2
-
ODC Sprint 232, ODC Sprint 234, ODC Sprint 235
-
3
-
Rejected
-
False
-
-
-
Bug Fix
-
Done
This is a clone of issue OCPBUGS-7437. The following is the description of the original issue:
—
This is a clone of issue OCPBUGS-5547. 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 Knative Service and delete it again with enabled option "Delete other resources created by console" (only available on 4.13+ with the PR above) the secret "$name-github-webhook-secret" is not deleted.
When the user tries to create the same Knative Service again this fails with an error:
An error occurred
secrets "nodeinfo-github-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-5548)
How reproducible:
Always
Steps to Reproduce:
- Install OpenShift Serverless operator (tested with 1.26.0)
- Create a new project
- Navigate to Add > Import from git and create an application
- In the topology select the Knative Service > "Delete Service" (not Delete App)
Actual results:
Deleted resources:
- Knative Service (tries it twice!) $name
- ImageStream $name
- BuildConfig $name
- Secret $name-generic-webhook-secret
Expected results:
Should also remove this resource
- Delete Knative Service should be called just once
- Secret $name-github-webhook-secret
Additional info:
When delete the whole application all the resources are deleted correctly (and just once)!
- Knative Service (just once!) $name
- ImageStream $name
- BuildConfig $name
- Secret $name-generic-webhook-secret
- Secret $name-github-webhook-secret
- clones
-
OCPBUGS-7437 Webhook Secret (1 of 2) is not removed when Knative Service is deleted
- Closed
- is blocked by
-
OCPBUGS-7437 Webhook Secret (1 of 2) is not removed when Knative Service is deleted
- Closed
- links to