Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kube command #66

Open
wants to merge 12 commits into
base: glodo
Choose a base branch
from
Open

Add kube command #66

wants to merge 12 commits into from

Conversation

ellbristow
Copy link
Contributor

@ellbristow ellbristow commented Aug 8, 2024

New invoke command to handle kubectl commands so we don't need to keep referring to the cheatsheet

It will read the customers namespace from a .glo.yaml file in the project root, or, if one doesn't exist, you can provide one using '-n {namespace}' and it will create the .glo..yaml for you. If you provide a new namespace, it will be added to a list that you can choose from next time you run the command. You can use invoke kube removens -n {namespace} to remove one you added by mistake, or is no longer valid.

Example Commands:
invoke kube shell -n dw -d dw will create a .glo.yaml file containing the namespace dw, if it doesn't exist, then connect to their shell, connected to the dw database. -n and -d are optional where a .glo.yaml file already exists.

invoke kube shell will connect to the namespace stored in .glo.yaml and the default database. If multiple namespaces exist in .glo.yaml you will be asked to pick one.

Associated risk level low

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

theangryangel
theangryangel previously approved these changes Aug 8, 2024
src/tasks_downstream.py Outdated Show resolved Hide resolved
src/tasks_downstream.py Outdated Show resolved Hide resolved
src/tasks_downstream.py Outdated Show resolved Hide resolved
src/tasks_downstream.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants