Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Investigate updating app-config' ConfigMap and extra files' ConfigMap and Secret #125

Closed
Tracked by #124
gazarenkov opened this issue Jan 10, 2024 · 2 comments
Closed
Tracked by #124
Assignees

Comments

@gazarenkov
Copy link
Member

gazarenkov commented Jan 10, 2024

Investigate the cases and understand / document limitations (what is supported by K8s and what we need to take care in the Operator) for the case when user change ConfigMap or Secret mounted to Backstage Container, i.e. app-config and extra files
Context:
https://kubernetes.io/docs/concepts/configuration/configmap/#mounted-configmaps-are-updated-automatically says it will be refreshed, but not for env variables and "A container using a ConfigMap as a subPath volume mount will not receive ConfigMap updates."

Related to #74

@gazarenkov gazarenkov mentioned this issue Jan 10, 2024
4 tasks
@gazarenkov gazarenkov changed the title Updating app-config' ConfigMap and extra files' ConfigMap and Secret Investigate updating app-config' ConfigMap and extra files' ConfigMap and Secret Jan 10, 2024
@gazarenkov
Copy link
Member Author

Another aspect of this problem (mostly for document it), as @rm3l mentioned, is that even if the extra-file is changed, Backstage server does not respect it (unlike app-config).

@gazarenkov gazarenkov self-assigned this Jan 31, 2024
@gazarenkov
Copy link
Member Author

The conclusion is:

  • We do not rely on Kubernets re-mounting as it will not work for all the cases anyway
  • So, we consider restarting container (manual or triggered by reconciliation)
  • Issue for automatic reconsiciliation created and prioritized

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

No branches or pull requests

1 participant