Skip to content

Commit da644af

Browse files
committed
add documentation for post_kustomization
1 parent 62d0254 commit da644af

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,29 @@ will be marked as failed. See the [Helm documentation][2].
7272
In addition you can set the `test_rollback` setting to run `helm rollback` if
7373
the tests fail.
7474

75+
## `post_kustomization`
76+
77+
The `post_kustomization` allows to modify helm charts with customize.
78+
See [here][3] for the official documentation. The `resources` field is
79+
set via the plugin.
80+
81+
Example:
82+
83+
```yaml
84+
post_kustomization: |
85+
patches:
86+
- patch: |
87+
- op: remove
88+
path: /spec/template/spec/securityContext
89+
- op: remove
90+
path: /spec/template/spec/containers/0/securityContext
91+
target:
92+
kind: StatefulSet
93+
labelSelector:
94+
app.kubernetes.io/name=opensearch
95+
```
96+
7597
7698
[1]: https://github.com/bitsbeats/drone-helm3/blob/master/main.go#L22
7799
[2]: https://helm.sh/docs/topics/chart_tests/
100+
[3]: https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/

0 commit comments

Comments
 (0)