Skip to content

feat: make systemViews mergable or seperate defaults from wildcard context #380

@xTrekStorex

Description

@xTrekStorex

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions