Cleaned up GS leftovers

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2025-09-07 06:36:53 +01:00
parent 1d34f433ef
commit c6a9a90dde
3 changed files with 7 additions and 77 deletions

View File

@@ -1,66 +1,4 @@
plugins:
sshnode:
shortCut: s
description: SSH via Teleport
dangerous: false
scopes:
- nodes
background: false
command: bash
args:
- -c
- tsh ssh root@cluster=$(echo "$CONTEXT" | rev | cut -d'-' -f1 | rev),node=$(echo "$NAME" | cut -d '.' -f 1)
aws:
shortCut: w
description: Open AWS Console
dangerous: false
scopes:
- clusters
- awsclusters
background: false
command: bash
args:
- -c
- open "https://signin.aws.amazon.com/switchrole?account=$(kubectl --context ${CONTEXT} get awsclusterroleidentity $(kubectl --context ${CONTEXT} get awsclusters -n ${NAMESPACE} ${NAME} -o json | jq -r '.spec.identityRef.name') -o json | jq -r '.spec.roleARN | split(":")[4]')&roleName=GiantSwarmAdmin&displayName=${CONTEXT}+-+${NAME}"
clusterapps:
shortCut: a
description: List Apps
dangerous: false
scopes:
- clusters
background: false
command: sh
args:
- -c
- "viddy -n 5s 'kubectl get apps -n $NAMESPACE | grep $NAME'"
tree:
shortCut: t
description: Show Tree
dangerous: false
scopes:
- clusters
background: false
command: sh
args:
- -c
- "viddy -n 15s 'kubectl tree -n $NAMESPACE clusters.v1beta1.cluster.x-k8s.io $NAME'"
values:
shortCut: v
description: Show Values
dangerous: false
scopes:
- clusters
- apps
background: false
command: sh
args:
- -c
- "kubectl get -o yaml cm ${NAME}-chart-values -n giantswarm | less"
# kubectl-blame by knight42
# Annotate each line in the given resource's YAML with information from the managedFields to show who last modified the field.
# Source: https://github.com/knight42/kubectl-blame