Bug 1342606 - oc delete all --all does not delete configmaps
Summary: oc delete all --all does not delete configmaps
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-03 16:15 UTC by Erik M Jacobs
Modified: 2016-07-22 18:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-22 18:46:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1354475 0 low CLOSED ConfigMap not seen in oc get all and oc export all 2021-02-22 00:41:40 UTC

Internal Links: 1354475

Description Erik M Jacobs 2016-06-03 16:15:22 UTC
oc v3.2.0.20
kubernetes v1.2.0-36-g4a3f9c5

Comment 1 Xingxing Xia 2016-06-06 06:36:01 UTC
Bug 1298846

Comment 2 Fabiano Franz 2016-06-28 19:15:48 UTC
Clayton, do we want to fix this? There are also other resources that are not part of 'all' in `delete` and `get`, like pvcs and templates.

Comment 3 Clayton Coleman 2016-07-05 18:14:56 UTC
pvcs and templates are intentionally not part of all.  secrets are intentionally not part of all.  Configmaps being part of all is probably ok, but we'd need to clarify why it's ok to delete configmaps but not secrets.

Comment 4 Erik M Jacobs 2016-07-05 19:07:45 UTC
Why is anything intentionally not part of all?

The only reason to not make something part of all is because we are silly and don't have a confirm dialogue for --all.

--all should delete ALL, otherwise we need to clearly, painfully and explicitly document what is NOT deleted by --all and then we should probably additionally provide --really-all or some flag that can actually delete all the things.

Comment 5 Fabiano Franz 2016-07-22 18:46:24 UTC
As per the following upstream discussion, ConfigMaps are not going to be added to 'all' because if deleted it's potentially unrecoverable:

https://github.com/kubernetes/kubernetes/pull/28955#issuecomment-232737113

Adding Clayton here to further comments if needed.


Note You need to log in before you can comment on or make changes to this bug.