Skip to content

List k8s resources in Shoot namespace on Seed #47

Open
@dkistner

Description

What would you like to be added:
Add an option to list all resources in a Shoot namespace on a Seed cluster.

Why is this needed:
A very common issue during operations is that some k8s resources incl. custom resources were leaked within a Shoot namespace on a Seed. Finding them can be hard, so it would be great if gardenctl could integrate a functionality to find them.

Via kubectl it can be done via something like this (simplified):

#!/bin/bash
for res in $(kubectl api-resources --namespaced=true -o=name); do
  kubectl -n <shoot-namespace> get $res
done

It would be great if an operator could trigger this operation for a targeted Shoot cluster directly via gardenctl.

cc @ScheererJ, @mliepold

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