You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flux2/cmd/flux/testdata
Rishikesh Nair 42607aadc3
Add support for passing multiple objects to suspend/resume commands
This change adds support for running `suspend/resume` on multiple
supported resources at the same time. This improves the user
experience by converting

```
flux suspend ks operator && \
flux suspend ks database && \
flux suspend ks app
```

to

```
flux suspend ks operator database app
```

This works for all types of resources (Kustomizations, Sources, etc.)
since it has been implemented at the `suspend.go` and `resume.go`
level.

When the `--wait` flag is passed to the `resume` command, then Flux
will wait for all resources in parallel within a goroutine each.

Each object is only processed once, even if user provided its name
more than once.

If suspension or resuming fails for one object, it is still carried
out for the remaining objects.

As a special case, the old behaviour of `resume` is retained, i.e.
when only one object name is provided, `resume` waits for the object
to become ready even if the `--wait` flag is not provided. In all
other cases the `--wait` flag is always considered.

closes #3746
closes #3793

Co-Authored-By: Max Jonas Werner <mail@makk.es>
Signed-off-by: Rishikesh Nair <alienware505@gmail.com>
Signed-off-by: Max Jonas Werner <mail@makk.es>
2 years ago
..
build-kustomization Add the possibility to ignore files with build and diff ks 2 years ago
check Set minimum supported version to Kubernetes 1.24.0 2 years ago
create_secret Create secret with bearer-token 2 years ago
create_source_git Update GitRepository Receiver, and Kustomization to v1 2 years ago
create_source_helm fix: Remove any leading and trailing whitespace from resource before 2 years ago
diff-artifact feat: diff artifact capability added 2 years ago
diff-kustomization Fix stringData Secret issue 3 years ago
export Update GitRepository Receiver, and Kustomization to v1 2 years ago
get Add label selector flag to get cmd 2 years ago
helmrelease Add support for passing multiple objects to suspend/resume commands 2 years ago
image Update image-reflector API to v1beta2 2 years ago
kustomization Add support for passing multiple objects to suspend/resume commands 2 years ago
logs Add unit tests for flux logs 2 years ago
oci Add support for passing multiple objects to suspend/resume commands 2 years ago
trace update testdata yamls 2 years ago
tree Update GitRepository Receiver, and Kustomization to v1 2 years ago