-
Notifications
You must be signed in to change notification settings - Fork 38
Description
currently when defining context "*" in the SYSTEM_VIEWS env var it will override all predefined views as in removing them.
with continued development and new predefined views this could possibly cause loss of information/features when the user defines "global" views using context "*" and does not track the changed defaults in https://github.com/gimlet-io/capacitor/blob/main/cli/pkg/server/server.go#L124 to backport them into their own config.
to prevent this configured system views should either be merged against the predefined defaults (only overriding matching IDs - preferred) or the defaults should use a reserved context seperated from "*", which would still allow defining a global context without overriding defaults.
having only "named" contexts for global views is impractical with inconsistent naming schemes across clusters (e.g. no k3d prefix). the current workaround is to either include all predefined defaults in my env var or duplicating all system views for each cluster in their own context.