support core group resources in k9s/plugins/watch-events.yaml (#3487)
The watch-events plugin fails when the resource group is empty. Fix it by using the alternate value expansion of shell variables: https://pubs.opengroup.org/onlinepubs/009604499/utilities/xcu_chap02.html#tag_02_06mine
parent
40cf6a151f
commit
687e094bc1
|
|
@ -12,4 +12,4 @@ plugins:
|
||||||
background: false
|
background: false
|
||||||
args:
|
args:
|
||||||
- -c
|
- -c
|
||||||
- "kubectl events --context $CONTEXT --namespace $NAMESPACE --for $RESOURCE_NAME.$RESOURCE_GROUP/$NAME --watch"
|
- "kubectl events --context $CONTEXT --namespace $NAMESPACE --for $RESOURCE_NAME.${RESOURCE_GROUP:+.RESOURCE_GROUP}/$NAME --watch"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue