Skip to content

Commit

Permalink
added kubectl explain
Browse files Browse the repository at this point in the history
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
  • Loading branch information
ivankatliarchuk committed Sep 2, 2023
1 parent fba6140 commit 56554f9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions shell/aliase/kube
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,13 @@ function k.kinds {
}

function k.explain {
# Example: k.explain providerconfig aws.crossplane.io/v1beta1
kubectl explain $1 --api-version="$2"
# Example: k.explain aws.crossplane.io/v1beta1 providerconfig
kubectl explain $2 --api-version="$1"
}

function k.apig {
# Example: k.apig crossplane
kubectl api-resources | grep $1
}

function k.getnames {
Expand Down

0 comments on commit 56554f9

Please sign in to comment.