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_06
mine
Konstantinos Koukopoulos 2025-09-02 01:40:00 +03:00 committed by GitHub
parent 40cf6a151f
commit 687e094bc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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"