__ __
/ | / |
$$ | __ __ __ $$ |____ ______
$$ | / |/ | / |$$ \ / \
$$ |_/$$/ $$ | $$ |$$$$$$$ |/$$$$$$ |
$$ $$< $$ | $$ |$$ | $$ |$$ $$ |
$$$$$$ \ $$ \__$$ |$$ |__$$ |$$$$$$$$/
$$ | $$ |$$ $$/ $$ $$/ $$ |
$$/ $$/ $$$$$$/ $$$$$$$/ $$$$$$$/
Get kubed.
Follow the setup instructions in the top-level README.
All commands support --help
, so please reference this.
sentry-kube --help
sentry-kube
can be further configured by setting environment variables.
SENTRY_KUBE_CONFIG_FILE
: Set this to the full path of the configuration file that contains the clusters and customers configuration for sentry-kube. It defaults to[workspace_root]/cli_config/configuration.yaml
SENTRY_KUBE_ENABLE_NOTIFICATIONS
: SetSENTRY_KUBE_ENABLE_NOTIFICATIONS=1
to enable MacOS notifications for things likesentry-kube connect
bastion connectionsSENTRY_KUBE_KUBECTL_DIFF_CONCURRENCY
: SetSENTRY_KUBE_KUBECTL_DIFF_CONCURRENCY
to makekubectl diff
process objects in parallelSENTRY_KUBE_IAP
: Access Kubernetes API through Google Identity-Aware Proxy and a jump host instead of standard bastion and sshuttle.SENTRY_KUBE_KUBECTL_VERSION
: SetSENTRY_KUBE_KUBECTL_VERSION=1.22.17
to configure the kubectl version to useSENTRY_KUBE_NO_CONTEXT
: SetSENTRY_KUBE_NO_CONTEXT=1
to skip checking for a functional kube contextSENTRY_KUBE_ROOT
: Sets the workspace root. It defaults to the git root directory.
Lets assume you have a local working copy of sentry-infra-tools in
<path-to-local-working-copy>/sentry-infra-tools
. Lets assume that you made some change
in your local copy of sentry-infra-tools. But you would like to validate
the change in a different virtual environment. Here is how you can do it:
- Remove the existing sentry-infra-tools package from the environment where you want to test it out.
pip uninstall sentry-infra-tools
- Install the local working copy of sentry-infra-tools in editable mode. You can do this either manually as shown below.
pip install -e <path-to-local-working-copy>/sentry-infra-tools
Or if requirements.txt
is being used, you can remove the existing reference to sentry-infra-tools
and add a reference to the local working copy.
# Edit python/requirements.txt
# Remove any existing reference to sentry-infra-tools
# Add the following reference to local working copy
-e <path-to-local-working-copy>/sentry-infra-tools
and then run pip install -r requirements.txt
.
- Done. You should now be able to use the local working copy of sentry-infra-tools in the other environment.