Skip to content

Commit 785bbe7

Browse files
committed
feat: Changed to use watch for wait rollout
Signed-off-by: Steve Hipwell <[email protected]>
1 parent 6ba4fdf commit 785bbe7

File tree

3 files changed

+409
-92
lines changed

3 files changed

+409
-92
lines changed

docs/resources/kubectl_manifest.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ YAML
8888
* `override_namespace` - Optional. Override the namespace to apply the kubernetes resource to, ignoring any declared namespace in the `yaml_body`.
8989
* `validate_schema` - Optional. Setting to `false` will mimic `kubectl apply --validate=false` mode. Default `true`.
9090
* `wait` - Optional. Set this flag to wait or not for finalized to complete for deleted objects. Default `false`.
91-
* `wait_for_rollout` - Optional. Set this flag to wait or not for Deployments and APIService to complete rollout. Default `true`.
91+
* `wait_for_rollout` - Optional. Set this flag to wait or not for `Deployment`, `DaemonSet`, `StatefulSet` & `APIService` resources to complete rollout. Default `true`.
9292
* `wait_for` - Optional. If set, will wait until either all conditions are satisfied, or until timeout is reached (see [below for nested schema](#wait_for)). Under the hood [gojsonq](https://github.com/thedevsaddam/gojsonq) is used for querying, see the related syntax and examples.
9393
* `delete_cascade` - Optional; `Background` or `Foreground` are valid options. If set this overrides the default provider behaviour which is to use `Background` unless `wait` is `true` when `Foreground` will be used. To duplicate the default behaviour of `kubectl` this should be explicitly set to `Background`.
9494

@@ -210,7 +210,7 @@ More examples can be found in the provider tests.
210210

211211
## Waiting for Rollout
212212

213-
By default, this resource will wait for Deployments and APIServices to complete their rollout before proceeding.
213+
By default, this resource will wait for `Deployment`, `DaemonSet`, `StatefulSet` & `APIService` to complete their rollout before proceeding.
214214
You can disable this behavior by setting the `wait_for_rollout` field to `false`.
215215

216216
## Import

0 commit comments

Comments
 (0)