You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,27 @@ E.g.
28
28
curl -L $TARBALL_URL | tar -C $(helm home)/plugins -xzv
29
29
```
30
30
31
+
### From Source
32
+
#### Prerequisites
33
+
- GoLang `>= 1.14`
34
+
35
+
Make sure you do not have a verison of `helm-diff` installed. You can remove it by running `helm plugin uninstall diff`
36
+
37
+
#### Installation Steps
38
+
The first step is to download the repository and enter the directory. You can do this via `git clone` or downloaing and extracting the release. If you clone via git, remember to checkout the latest tag for the latest release.
39
+
40
+
Next, depending on which helm version you have, install the plugin into helm.
41
+
42
+
##### Helm 2
43
+
```bash
44
+
make install
45
+
```
46
+
47
+
##### Helm 3
48
+
```bash
49
+
make install/helm3
50
+
```
51
+
31
52
32
53
## Usage
33
54
@@ -103,6 +124,7 @@ Flags:
103
124
--post-renderer string the path to an executable to be used for post rendering. If it exists in $PATH, the binary will be used, otherwise it will try to look for the executable at the given path
104
125
--reset-values reset the values to the ones built into the chart and merge in any new values
105
126
--reuse-values reuse the last release's values and merge in any new values
127
+
--strip-trailing-cr strip trailing carriage return on input
106
128
--set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)
107
129
--suppress stringArray allows suppression of the values listed in the diff output
108
130
-q, --suppress-secrets suppress secrets in the output
@@ -135,6 +157,7 @@ Flags:
135
157
-h, --help help for release
136
158
--home string location of your Helm config. Overrides $HELM_HOME (default "/home/aananth/.helm")
137
159
--include-tests enable the diffing of the helm test hooks
160
+
--strip-trailing-cr strip trailing carriage return on input
138
161
--suppress stringArray allows suppression of the values listed in the diff output
139
162
-q, --suppress-secrets suppress secrets in the output
140
163
--tls enable TLS for request
@@ -157,7 +180,7 @@ This command compares the manifests details of a named release.
157
180
158
181
It can be used to compare the manifests of
159
182
160
-
- lastest REVISION with specified REVISION
183
+
- latest REVISION with specified REVISION
161
184
$ helm diff revision [flags] RELEASE REVISION1
162
185
Example:
163
186
$ helm diff revision my-release 2
@@ -172,6 +195,7 @@ Usage:
172
195
173
196
Flags:
174
197
-h, --help help for revision
198
+
--strip-trailing-cr strip trailing carriage return on input
175
199
--suppress stringArray allows suppression of the values listed in the diff output
176
200
-q, --suppress-secrets suppress secrets in the output
177
201
@@ -197,6 +221,7 @@ Examples:
197
221
198
222
Flags:
199
223
-h, --help help for rollback
224
+
--strip-trailing-cr strip trailing carriage return on input
200
225
--suppress stringArray allows suppression of the values listed in the diff output
201
226
-q, --suppress-secrets suppress secrets in the output
releaseCmd.Flags().IntVarP(&diff.outputContext, "context", "C", -1, "output NUM lines of context around changes")
80
82
releaseCmd.Flags().BoolVar(&diff.includeTests, "include-tests", false, "enable the diffing of the helm test hooks")
81
83
releaseCmd.Flags().StringVar(&diff.output, "output", "diff", "Possible values: diff, simple, template. When set to \"template\", use the env var HELM_DIFF_TPL to specify the template.")
84
+
releaseCmd.Flags().BoolVar(&diff.stripTrailingCR, "strip-trailing-cr", false, "strip trailing carriage return on input")
85
+
releaseCmd.Flags().BoolVar(&diff.normalizeManifests, "normalize-manifests", false, "normalize manifests before running diff to exclude style differences from the output")
revisionCmd.Flags().IntVarP(&diff.outputContext, "context", "C", -1, "output NUM lines of context around changes")
90
92
revisionCmd.Flags().BoolVar(&diff.includeTests, "include-tests", false, "enable the diffing of the helm test hooks")
91
93
revisionCmd.Flags().StringVar(&diff.output, "output", "diff", "Possible values: diff, simple, template. When set to \"template\", use the env var HELM_DIFF_TPL to specify the template.")
94
+
revisionCmd.Flags().BoolVar(&diff.stripTrailingCR, "strip-trailing-cr", false, "strip trailing carriage return on input")
95
+
revisionCmd.Flags().BoolVar(&diff.normalizeManifests, "normalize-manifests", false, "normalize manifests before running diff to exclude style differences from the output")
rollbackCmd.Flags().IntVarP(&diff.outputContext, "context", "C", -1, "output NUM lines of context around changes")
82
84
rollbackCmd.Flags().BoolVar(&diff.includeTests, "include-tests", false, "enable the diffing of the helm test hooks")
83
85
rollbackCmd.Flags().StringVar(&diff.output, "output", "diff", "Possible values: diff, simple, template. When set to \"template\", use the env var HELM_DIFF_TPL to specify the template.")
86
+
rollbackCmd.Flags().BoolVar(&diff.stripTrailingCR, "strip-trailing-cr", false, "strip trailing carriage return on input")
87
+
rollbackCmd.Flags().BoolVar(&diff.normalizeManifests, "normalize-manifests", false, "normalize manifests before running diff to exclude style differences from the output")
0 commit comments