Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

[question] How to provide custom configuration for an operator ? #367

Open
2 tasks done
eshepelyuk opened this issue May 14, 2020 · 0 comments
Open
2 tasks done

[question] How to provide custom configuration for an operator ? #367

eshepelyuk opened this issue May 14, 2020 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@eshepelyuk
Copy link

eshepelyuk commented May 14, 2020

Question

Somehow related to discussion from #280

I wan't to pass some configuration to an operator with quite complex nested structure, eg. JSON, YAML etc. Currently I haven't found any standard way of providing and injecting such config into operator handler.

The possible options I could use to achieve my goal is:

  • pass values as ENV vars, but this is not applicable for complex data structures
  • inject ConfigMap into operator Deployment and read the file from ConfigMap inside on.startup handler
  • embed kopf and pass through parameters to kopf, retrieving from from CLI

But all of those are requiring some custom development and boilerplate code for every new operator created with kopf.

  1. Is there recomended way of extending configuraiton ?
  2. Is there plan to provide some generic component for such uses cases ?

Checklist

Keywords

config, configuration

@eshepelyuk eshepelyuk added the question Further information is requested label May 14, 2020
@nolar nolar added the enhancement New feature or request label May 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants