-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add helm diff plugin * feat: Add helm-diff to plugin readme and sort items alphabetically * chore: Adjust plugin README format
- Loading branch information
1 parent
356a09d
commit 520e96a
Showing
2 changed files
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Requires helm-diff plugin installed: https://github.com/databus23/helm-diff | ||
# In helm view: <Shift-D> Diff with Previous Revision | ||
# In helm-history view: <Shift-Q> Diff with Current Revision | ||
plugins: | ||
helm-diff-previous: | ||
shortCut: Shift-D | ||
confirm: false | ||
description: Diff with Previous Revision | ||
scopes: | ||
- helm | ||
command: bash | ||
background: false | ||
args: | ||
- -c | ||
- >- | ||
LAST_REVISION=$(($COL-REVISION-1)); | ||
helm diff revision $COL-NAME $COL-REVISION $LAST_REVISION --kube-context $CONTEXT --namespace $NAMESPACE --color | less -RK | ||
helm-diff-current: | ||
shortCut: Shift-Q | ||
confirm: false | ||
description: Diff with Current Revision | ||
scopes: | ||
- history | ||
command: bash | ||
background: false | ||
args: | ||
- -c | ||
- >- | ||
RELEASE_NAME=$(echo $NAME | cut -d':' -f1); | ||
LATEST_REVISION=$(helm history -n $NAMESPACE --kube-context $CONTEXT $RELEASE_NAME | grep deployed | cut -d$'\t' -f1 | tr -d ' \t'); | ||
helm diff revision $RELEASE_NAME $LATEST_REVISION $COL-REVISION --kube-context $CONTEXT --namespace $NAMESPACE --color | less -RK |