mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-05 17:44:44 +00:00
Adds a watch flag to the get command
The new flag fetch and display the request ressource and then continue watching the ressource until timeout or cancellation. A single ressource/ressource type is supported. Signed-off-by: Soule BA <soule@weave.works>
This commit is contained in:
parent
d1970185b9
commit
c18d0b9217
22 changed files with 534 additions and 67 deletions
|
|
@ -34,6 +34,11 @@ var getSourceAllCmd = &cobra.Command{
|
|||
# List all sources in all namespaces
|
||||
flux get sources all --all-namespaces`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
err := validateWatchOption(cmd, "all")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
var allSourceCmd = []getCommand{
|
||||
{
|
||||
apiType: bucketType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue