From 67e97c5e04df97efe3b45f2694a2bb755d657620 Mon Sep 17 00:00:00 2001 From: Jan Schlicht Date: Mon, 13 Jul 2020 11:27:44 +0200 Subject: [PATCH] Support update calls without arguments. In automated environments, the list of operators to update could be empty (think CI/CD). This case shouldn't be considered an error. Signed-off-by: Jan Schlicht --- pkg/cmd/update.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/cmd/update.go b/pkg/cmd/update.go index 56ab057..6b5fd05 100644 --- a/pkg/cmd/update.go +++ b/pkg/cmd/update.go @@ -9,7 +9,6 @@ import ( func updateCmd() *cobra.Command { cmd := &cobra.Command{ Use: "update [operator.yaml...]", - Args: cobra.MinimumNArgs(1), Short: "Update a repository with operators", Long: `KUDO repositories consist of a collection of indexed operator package tarballs. kitt creates or updates such a repository by resolving a list of operator