linkerd2 icon indicating copy to clipboard operation
linkerd2 copied to clipboard

Custom ConfigMaps

Open tobias-nawa opened this issue 7 years ago • 3 comments

Feature Request

What problem are you trying to solve?

When running linkerd upgrade the ConfigMaps are part of the output. By using this output, all custom changes in the ConfigMaps are overwritten.

In my case I was changing the Grafana configuration to enable the login. After every upgrade the login is disabled again.

How should the problem be solved?

Maybe it's ok to not touch certain configurations, like the Grafana configuration which shouldn't change so often. But this is open for discussion.

Any alternatives you've considered?

Maybe a command like linkerd upgrade --no-configs grafana would work to exclude certain configurations.

How would users interact with this feature?

linkerd upgrade or linkerd upgrade --no-configs grafana

tobias-nawa avatar Jun 25 '19 08:06 tobias-nawa

We should be able to do this by extending the --from-manifest option of the linkerd upgrade command to read the Grafana config map from a YAML file, generated from a previous installation. (See https://github.com/linkerd/linkerd2/pull/2697). AFAICT, atm, the --from-manifest option only works for the linkerd-config config map, identity secret, and webhooks secrets.

@Bullettoothtobi Will this approach work for you?

ihcsim avatar Jun 27 '19 17:06 ihcsim

@Bullettoothtobi I just put some docs together around this, does linkerd/website#384 work for you?

grampelberg avatar Jun 27 '19 22:06 grampelberg

That's exactly what I needed! Thanks for your great work!

tobias-nawa avatar Jul 09 '19 09:07 tobias-nawa