Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

getsentry/sentry-infra-tools

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

To cut a new release, we use the Release Github Actions Workflow. This can be triggered manually using the UI

image

Or with the gh CLI:

gh workflow run Release --field version=0.0.33

Help

All commands support --help, so please reference this.

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 <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:

  1. Remove the existing sentry-infra-tools package from the environment where you want to test it out.
pip uninstall sentry-infra-tools
  1. 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.

  1. Done. You should now be able to use the local working copy of sentry-infra-tools in the other environment.

About

Standalone repo for sentry-kube and other related tools

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 20

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.