# sentry-infra-tools **Repository Path**: mirrors_getsentry/sentry-infra-tools ## Basic Information - **Project Name**: sentry-infra-tools - **Description**: Standalone repo for sentry-kube and other related tools - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-11 - **Last Updated**: 2026-03-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # `sentry-kube` ``` __ __ / | / | $$ | __ __ __ $$ |____ ______ $$ | / |/ | / |$$ \ / \ $$ |_/$$/ $$ | $$ |$$$$$$$ |/$$$$$$ | $$ $$< $$ | $$ |$$ | $$ |$$ $$ | $$$$$$ \ $$ \__$$ |$$ |__$$ |$$$$$$$$/ $$ | $$ |$$ $$/ $$ $$/ $$ | $$/ $$/ $$$$$$/ $$$$$$$/ $$$$$$$/ Get kubed. ``` ## Installation Run `./install.sh` to install sentry-kube. ## Releasing a new version Versioning note: When cutting a new release we should try to follow [SemVer](https://semver.org/). To cut a new release, we use the `Release` Github Actions Workflow. This can be triggered manually using the [UI](https://github.com/getsentry/sentry-infra-tools/actions/workflows/release.yml) ![image](https://github.com/user-attachments/assets/96fc8c19-4855-4258-8565-c959317d9723) Or with the [`gh`](https://cli.github.com) CLI: ``` gh workflow run Release --field version=0.0.33 ``` ## Help All commands support `--help`, so please reference this. ```shell sentry-kube --help ``` ## Environment Variables `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`: Set `SENTRY_KUBE_ENABLE_NOTIFICATIONS=1` to enable MacOS notifications for things like `sentry-kube connect` bastion connections * `SENTRY_KUBE_KUBECTL_DIFF_CONCURRENCY`: Set `SENTRY_KUBE_KUBECTL_DIFF_CONCURRENCY` to make `kubectl diff` process objects in parallel * `SENTRY_KUBE_KUBECTL_VERSION`: Set `SENTRY_KUBE_KUBECTL_VERSION=1.22.17` to configure the kubectl version to use * `SENTRY_KUBE_NO_CONTEXT`: Set `SENTRY_KUBE_NO_CONTEXT=1` to skip checking for a functional kube context * `SENTRY_KUBE_ROOT`: Sets the workspace root. It defaults to the git root directory. ## How to use sentry-infra-tools in editable mode (for development) in another environment Lets assume you have a local working copy of sentry-infra-tools in `/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: 1. Remove the existing sentry-infra-tools package from the environment where you want to test it out. ```shell pip uninstall sentry-infra-tools ``` 2. Install the local working copy of sentry-infra-tools in editable mode. You can do this either manually as shown below. ```shell pip install -e /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. ```shell # Edit python/requirements.txt # Remove any existing reference to sentry-infra-tools # Add the following reference to local working copy -e /sentry-infra-tools ``` and then run `pip install -r requirements.txt`. 3. Done. You should now be able to use the local working copy of sentry-infra-tools in the other environment.