linkerd2/cli/cmd
Andrew Seigner 3b3dfa701c
Faster `linkerd install --ignore-cluster` (#3568)
The `linkerd install` `--ignore-cluster` and `--skip-checks` flags
enable generating install manifests without a connection to a k8s
cluster. Unfortunately these flags were only checked after attempted
connections to a k8s cluster were made. This satisfied the use case of
`linkerd install` "ignoring" the state of the cluster, but for
environments not connected to a cluster, the user would have to wait for
30s timeouts before getting the manifests.

Modify `linkerd install` and its subcommands to pre-emptively check for
`--ignore-cluster` and `--skip-checks`. This decreases `linkerd install
--ignore-cluster` from ~30s to ~1s, and `linkerd install control-plane
--ignore-cluster --skip-checks` from ~60s to ~1s.

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
2019-10-21 11:05:16 -07:00
..
testdata Re-add the destination container to the controller spec (#3540) 2019-10-08 10:49:40 -07:00
check.go Add a flag to install-cni command to configure iptables wait flag (#3066) 2019-08-15 12:58:18 -07:00
check_test.go Output check result as json (#2666) 2019-05-20 09:04:28 -07:00
completion.go CLI help updates: non-experimental auto-inject; unhide install-cni (#2319) 2019-02-18 15:32:46 -08:00
completion_test.go Bump proxy-init to 1.2.0 (#3397) 2019-09-09 09:06:14 -07:00
dashboard.go Add '--address' flag to 'linkerd dashboard'. (#3274) 2019-09-05 10:56:10 -07:00
doc.go Generate CLI docs for usage by the website (#2296) 2019-02-15 13:28:31 -08:00
edges.go Introduce -A as a shorthand for --all-namespaces (#3125) 2019-07-24 07:50:22 -07:00
edges_test.go Add unit test for edges API endpoint (#3306) 2019-08-23 09:28:02 -07:00
endpoints.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
endpoints_test.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
get.go Introduce -A as a shorthand for --all-namespaces (#3125) 2019-07-24 07:50:22 -07:00
get_test.go Fix most golint issues that are not comment related (#1982) 2018-12-20 10:37:47 -08:00
inject.go remove the duplicate word (#3385) 2019-09-04 20:13:55 -07:00
inject_test.go Update install and upgrade code to use the new helm charts (#3229) 2019-08-13 14:16:24 -07:00
inject_util.go Fix inject with path and add tests (#3038) 2019-07-05 09:26:25 -05:00
install-cni-plugin.go Add a flag to install-cni command to configure iptables wait flag (#3066) 2019-08-15 12:58:18 -07:00
install-cni-plugin_test.go proxy: Upgrade to identity-capable proxy (#2524) 2019-03-19 14:20:39 -07:00
install-sp.go Add cluster domain cli flag (#3360) 2019-09-19 16:08:50 -07:00
install-sp_test.go Add cluster domain cli flag (#3360) 2019-09-19 16:08:50 -07:00
install.go Faster `linkerd install --ignore-cluster` (#3568) 2019-10-21 11:05:16 -07:00
install_helm_test.go Revert "Trace Control Plane components using OC (#3461)" (#3484) 2019-09-26 11:56:44 -07:00
install_test.go Add missing nodeSelector in Destination deployment (#3527) 2019-10-04 12:47:55 -05:00
logs.go Update to client-go v12.0.0, forked stern (#3387) 2019-09-10 11:04:29 -07:00
logs_test.go Introduce inject integration tests (#2616) 2019-04-05 11:42:49 -07:00
main_test.go Introduce inject integration tests (#2616) 2019-04-05 11:42:49 -07:00
metrics.go Correct definition of Less function in CLI's metrics command(#3533) (#3534) 2019-10-15 14:21:10 -07:00
profile.go Add LINKERD2_PROXY_DESTINATION_GET_SUFFIXES (#3277) 2019-08-21 14:28:30 -07:00
profile_test.go Allow setting custom cluster domain in service profiles (#3148) 2019-08-07 09:49:54 -07:00
public_api.go Introduce `linkerd --as` flag for impersonation (#3173) 2019-07-31 16:05:33 -07:00
root.go Introduce `linkerd --as` flag for impersonation (#3173) 2019-07-31 16:05:33 -07:00
routes.go add service profile integration tests for service profile metrics (#2685) 2019-04-18 11:01:49 -07:00
routes_test.go lint: Enable goconst (#2365) 2019-02-25 12:00:03 -08:00
stat.go Add trafficsplit metrics to CLI (#3176) 2019-08-14 10:30:57 -07:00
stat_test.go Add trafficsplit metrics to CLI (#3176) 2019-08-14 10:30:57 -07:00
tap.go Add TapEvent headers and trailers to the tap protobuf (#3410) 2019-09-29 09:54:37 -07:00
tap_test.go Add TapEvent headers and trailers to the tap protobuf (#3410) 2019-09-29 09:54:37 -07:00
top.go Update `linkerd profile --tap` to Tap APIService (#3187) 2019-08-02 12:44:58 -07:00
uninject.go Promote the shared injection check to the CLI and webhook (#2555) 2019-03-27 14:51:05 -07:00
uninject_test.go Fix uninject (#3236) 2019-08-13 15:06:21 -05:00
upgrade.go Add --disable-heartbeat flag for linkerd install|upgrade (#3439) 2019-09-25 15:53:36 -05:00
upgrade_test.go Merge the CLI 'installValues' type with Helm 'Values' type (#3291) 2019-08-20 19:26:38 -07:00
version.go Use port-forwarding for linkerd CLIs (#2757) 2019-05-02 14:41:26 +02:00
version_test.go Use port-forwarding for linkerd CLIs (#2757) 2019-05-02 14:41:26 +02:00