New 🌊 wave for @helm

Commit e67f8d3c

e67f8d3c6641Merged

zhilyaev <[email protected]> Β· 5 years ago Β· 1 file Β· ~1 modified

Description

update readme

Details

Commit
e67f8d3c6641
Parent
9723791ea33d

README.mdmodifiedView file

@@ -39,9 +39,6 @@
3939 Planfile|βœ…|❌
4040 Sprig | βœ…|βœ…
4141 Call helm | via Golang Module | Shell Executor
42-Speed of deploy <sup>[*]</sup> | 10 sec | 2 min
43-
44-`*` - WIP
4542
4643 ## Todo:
4744 - buy a domain
@@ -130,6 +127,59 @@
130127
131128 ## [Documentation](https://zhilyaev.github.io/helmwave/)
132129
130+### Annotations
131+
132+> inspired by [werf annotations](https://werf.io/documentation/reference/deploy_annotations.html)
133+
134+```yaml
135+ template:
136+ metadata:
137+ {{- with .Values.podAnnotations }}
138+ annotations:
139+ helmwave.dev/show-service-messages: "true"
140+ {{- toYaml . | nindent 8 }}
141+ {{- end }}
142+```
143+
144+#### `helmwave.dev/track-termination-mode`
145+
146+Defines a condition when helmwave should stop tracking of the resource:
147+
148+- `WaitUntilResourceReady` (default) β€” the entire deployment process would monitor and wait for the readiness of the resource having this annotation. Since this mode is enabled by default, the deployment process would wait for all resources to be ready.
149+- `NonBlocking` β€” the resource is tracked only if there are other resources that are not yet ready.
150+
151+#### helmwave.dev/fail-mode
152+
153+Defines how werf will handle a resource failure condition which occured after failures threshold has been reached for the resource during deploy process:
154+
155+- `FailWholeDeployProcessImmediately` (default) β€” the entire deploy process will fail with an error if an error occurs for some resource.
156+- `HopeUntilEndOfDeployProcess` β€” when an error occurred for the resource, set this resource into the β€œhope” mode, and continue tracking other resources. If all remained resources are ready or in the β€œhope” mode, transit the resource back to β€œnormal” and fail the whole deploy process if an error for this resource occurs once again.
157+- `IgnoreAndContinueDeployProcess` β€” resource errors do not affect the deployment process.
158+
159+
160+#### helmwave.dev/failures-allowed-per-replica
161+
162+By default, one error per replica is allowed before considering the whole deployment process unsuccessful. This setting defines a threshold of failures after which resource will be considered as failed and werf will handle this situation using fail mode.
163+
164+- NUMBER
165+
166+#### helmwave.dev/log-regex
167+
168+Defines a Re2 regex template that applies to all logs of all containers of all Pods owned by a resource with this annotation. werf would show only those log lines that fit the specified regex template. By default, werf shows all log lines.
169+
170+- RE2_REGEX
171+
172+#### helmwave.dev/skip-logs
173+
174+Set to "true" to turn off printing logs of all containers of all Pods owned by a resource with this annotation. This annotation is disabled by default.
175+
176+- "true"|"false"
177+
178+#### helmwave.dev/show-service-messages
179+
180+Set to "true" to enable additional real-time debugging info (including Kubernetes events) for a resource during tracking. By default, werf would show these service messages only if the resource has failed the entire deploy process.
181+
182+- "true"|"false"
133183
134184 ### Examples
135185 - [How to pass `image.tag` to release?](docs/examples/CI_COMMIT_TAG/README.md)