Link to home
Start Free TrialLog in
Avatar of gp
gpFlag for United States of America

asked on

Modify ConfigMap, Secrets Names without changing key value pair content

I have to modify configmaps, secrets names in openshift without modifying content of lot of key, value pairs inside. I tried to edit config map or secret in openshift 4 console. I do not see option to modify name. I do not want to delete and recreate these big config maps, secrets and test all. Is there is a work around for this. Please advise

ASKER CERTIFIED SOLUTION
Avatar of Noah
Noah
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gp

ASKER

Looks like oc path is more complicated.


I copied old config map/ secret yaml content and created new config map/secret with some dummy key value and then delete and then paste old yaml content and save.

I see, glad to help. Cheers! :)