This branch makes a number of improvements to the scripts for the
lifecycle example, primarily based on changes I found useful while
using this example for testing.
In particular:
bin/deploy now takes an optional --ctrl-prefix flag to
configure the prefix added to the name of the Linkerd control
plane namespace. This is sometimes valuable when running multiple
lifecycle tests in the same cluster.
bin/deploy, bin/scale, and bin/teardown all take an optional
--ns-prefix flag that configures the prefix added to the Linkerd
namespaces created or modified by the script.
bin/teardown now deletes all namespaces with one kubectl delete
command. This is because kubectl was recently changed so that the
delete command will block until the resource is deleted, so running
multiple kubectl deletes in parallel takes much longer than it did
previously. The script now tries to delete the namespaces in parallel.
bin/deploy now allows arbitrary arguments to be passed to the
linkerd inject command. This is valuable when testing a version of
the Linkerd proxy other than the one that inject uses by default,
when a more verbose proxy log level is desired for debugging, and
so on.
All scripts now print usage messages when provided with unrecognizable
arguments.
This branch makes a number of improvements to the scripts for the lifecycle example, primarily based on changes I found useful while using this example for testing.
In particular:
bin/deploy
now takes an optional--ctrl-prefix
flag to configure the prefix added to the name of the Linkerd control plane namespace. This is sometimes valuable when running multiple lifecycle tests in the same cluster.bin/deploy
,bin/scale
, andbin/teardown
all take an optional--ns-prefix
flag that configures the prefix added to the Linkerd namespaces created or modified by the script.bin/teardown
now deletes all namespaces with onekubectl delete
command. This is becausekubectl
was recently changed so that the delete command will block until the resource is deleted, so running multiplekubectl delete
s in parallel takes much longer than it did previously. The script now tries to delete the namespaces in parallel.bin/deploy
now allows arbitrary arguments to be passed to thelinkerd inject
command. This is valuable when testing a version of the Linkerd proxy other than the one thatinject
uses by default, when a more verbose proxy log level is desired for debugging, and so on.shellcheck
lints.Signed-off-by: Eliza Weisman eliza@buoyant.io