Skip to content

Commit f6383df

Browse files
authored
Resource recommendation plugin enhancements (#3306)
* Update resource-recommendations plugin to support namespaces * Added cronjobs to resource-recommendations plugin
1 parent 920bab5 commit f6383df

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

plugins/resource-recommendations.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ plugins:
1111
- deployments
1212
- daemonsets
1313
- statefulsets
14+
- cronjobs
1415
command: bash
1516
background: false
1617
confirm: false
@@ -25,4 +26,23 @@ plugins:
2526
if [[ $k = q ]] ; then
2627
break
2728
fi
29+
done
30+
krr-ns:
31+
shortCut: Shift-K
32+
description: Get krr
33+
scopes:
34+
- namespaces
35+
command: bash
36+
background: false
37+
confirm: false
38+
args:
39+
- -c
40+
- |
41+
krr simple --cluster $CONTEXT -n $RESOURCE_NAME
42+
echo "Press 'q' to exit"
43+
while : ; do
44+
read -n 1 k <&1
45+
if [[ $k = q ]] ; then
46+
break
47+
fi
2848
done

0 commit comments

Comments
 (0)