Aditya Aswani
Aditya Aswani

Reputation: 121

Unable to edit configmap in kubernetes

I have a already running kubernetes application(eclipse che) I am editing a configmap with the following command kubectl edit cm/che -n che When I edit and save it, I get a message saying that the configmap is saved. But when I again issue the same command I cannot find my changes. Am I missing some basic step?

Upvotes: 1

Views: 3053

Answers (3)

yashkapoor112
yashkapoor112

Reputation: 86

In case you deployed devfile registry with helm and you only need only your devfile registry and not the one provided by che try the following -

  1. Remove the helm chart by helm delete che-devfile-registry -n che

  2. kubectl edit checluster eclipse-che -n che

  3. Add devfileRegistryImage: 'Your devfile Image' under spec: server:

  4. Save

After that go to the default che url you should be able to see your custom stack in the list.

Upvotes: 2

sunix
sunix

Reputation: 353

If you have installed Che with operator (through chectl or not), you should change the settings editing the CheCluster custom resource:

kubectl edit CheCluster/eclipse-che -n che

Upvotes: 0

Emre Odabaş
Emre Odabaş

Reputation: 499

use kubectl verbose mode for tracing the problem

kubectl edit cm/che -n che -v9

I guess it could be related to permissions, admission controls, or operator frameworks.

Upvotes: 0

Related Questions