Skip to content

Fetch/sync configuration from garden cluster #48

Open
@petersutter

Description

What would you like to be added:
gardenctl should be able to fetch configuration, like the target patterns (#44) or e.g. access restriction configuration from the garden cluster.

Gardenctl could then fetch ConfigMap(s) from a predefined namespace, like gardenctl-system with configuration data for gardenctl.

Gardenctl will also read the cluster-identity configmap in kube-system namespace from the garden cluster and will use this for the garden configuration, e.g. it will store the value under .gardens[].clusterIdentity. The .gardens[].name field could be dropped in favour of clusterIdentity. We could also think about duplicating the cluster-identity from the kube-system namespace to the gardenctl-system namespace so that also non-operator users are able to get this information.

A dedicated command could be introduced for this purpose, like gardenctl config sync [--garden landscape-dev | --dry-run]. If no garden cluster identity or alias is provided, all configured gardens are synced.

Why is this needed:
This is needed so that the user only needs to provide minimal configuration data and the tool fetches the rest of the configuration automatically.

Metadata

Assignees

No one assigned

    Labels

    component/gardenctlGardener CLIkind/enhancementEnhancement, improvement, extensionlifecycle/rottenNobody worked on this for 12 months (final aging stage)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions