mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 18:29:53 +00:00
* 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>
22 lines
505 B
YAML
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
|