From da644af32092e83420349214d474acbbaee4f6d0 Mon Sep 17 00:00:00 2001 From: Stefan Schwarz Date: Mon, 11 Jul 2022 16:14:43 +0200 Subject: [PATCH] add documentation for post_kustomization --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 30df509..91d74eb 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,29 @@ will be marked as failed. See the [Helm documentation][2]. In addition you can set the `test_rollback` setting to run `helm rollback` if the tests fail. +## `post_kustomization` + +The `post_kustomization` allows to modify helm charts with customize. +See [here][3] for the official documentation. The `resources` field is +set via the plugin. + +Example: + +```yaml +post_kustomization: | + patches: + - patch: | + - op: remove + path: /spec/template/spec/securityContext + - op: remove + path: /spec/template/spec/containers/0/securityContext + target: + kind: StatefulSet + labelSelector: + app.kubernetes.io/name=opensearch +``` + [1]: https://github.com/bitsbeats/drone-helm3/blob/master/main.go#L22 [2]: https://helm.sh/docs/topics/chart_tests/ +[3]: https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/