diff --git a/main.go b/main.go index 3eac5b0..9200886 100644 --- a/main.go +++ b/main.go @@ -66,6 +66,9 @@ var ( // dryRun Defaults to false dryRun bool + // skipChecks Defaults to false + skipChecks bool + // deleteReources bool deleteResources bool @@ -120,6 +123,11 @@ func main() { Usage: "if true, the server's certificate will not be checked for validity", EnvVar: "INSECURE_SKIP_TLS_VERIFY,PLUGIN_INSECURE_SKIP_TLS_VERIFY", }, + cli.BoolFlag{ + Name: "skip-checks", + Usage: "if true, the resources will be deployed without a subsequent healthcheck", + Destination: &skipChecks, + }, cli.StringFlag{ Name: FlagKubeConfigData, Usage: "Kubernetes config file data", @@ -641,7 +649,7 @@ func deploy(c *cli.Context, r *ObjectResource) error { r.Name = strings.Split(resourceName, "/")[1] } - if !c.Bool(FlagDelete) && isWatchableResouce(r) { + if !c.Bool(FlagDelete) && isWatchableResouce(r) && !skipChecks { return watchResource(c, r) } return nil