Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose information from the downward API to wasmCloud hosts #30

Open
protochron opened this issue Apr 30, 2024 · 0 comments
Open

Expose information from the downward API to wasmCloud hosts #30

protochron opened this issue Apr 30, 2024 · 0 comments

Comments

@protochron
Copy link
Contributor

Right now it's impossible to expose information from the downward API either as a volume or as environment variables since we don't expose either option in the CRD. Technically we do expose the ability to define volumes, but you have no way to provide a volume mapping. We can fix this in a few ways:

  1. add a new option to the CRD (eg. downwardAPI: true) to the CRD to tell the controller to load downward API information automatically. The controller would load all available values as either env vars or through the volume mount depending on how the data is exposed
  2. add a env config option so that users can add their own environment variables to hosts. The controller would need to add those first and merge in the set of environment variables it generates for the pod template
  3. add a volumeMounts configuration option for allowing users to pass in volume mount mappings corresponding to a downward API volume. This would likely end up simply being the ability to define arbitrary volume mappings, one of which could just be a downward API volume.

Options 2 and 3 seem like things we should do anyway, but option 1 would provide us the most control over what we expose without needing to implement environment variable and volume support. However it would require the maintainers to add all available information from the downward API and keep that up to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant