Files
troubleshoot/testdata/supportbundle/configmaps.yaml
ada mancini 03c53cabd6 make ConfigMap collector namespace-optional (#1212)
* try to load default namespace from kubectl current context

* use  ns from kubectl context when no ns is given in the spec

* remove test prints

* Update pkg/collect/configmap.go

Co-authored-by: Diamon Wiggins <38189728+diamonwiggins@users.noreply.github.com>

---------

Co-authored-by: Diamon Wiggins <38189728+diamonwiggins@users.noreply.github.com>
2023-06-13 13:12:17 -04:00

22 lines
505 B
YAML

apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
name: example-collect-all-configmap-data
spec:
collectors:
- configMap:
name: kube-root-ca.crt
# expected in default namespace
- configMap:
name: cluster-info
# missing namespace parameter
- configMap:
name: does-not-exist
- configMap:
selector:
- app=kube-proxy
# only selector set
- configMap:
name: coredns
namespace: kube-system