diff --git a/plugins/watch-events.yaml b/plugins/watch-events.yaml index 31a47f1c..46a4d807 100644 --- a/plugins/watch-events.yaml +++ b/plugins/watch-events.yaml @@ -12,4 +12,4 @@ plugins: background: false args: - -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"