a simple cli tool to add notes to deployments in case you want to access some info fast
- Go: Version 1.16 or higher.
- Kubernetes: A working Kubernetes cluster with
kubectlinstalled and configured. - Sudo Privileges: Required for system-wide installation.
Follow these steps to install DeploymentNote system-wide:
-
Clone the Repository:
git clone https://github.com/yourusername/deploymentnote.git cd deploymentnote -
Build the Binary:
go build -o deploymentnote
-
Make the Binary Executable:
chmod +x deploymentnote
-
Move the Binary to
/usr/local/bin(requires sudo):sudo mv deploymentnote /usr/local/bin/
-
Generate the Bash Completion Script:
go run ./ completion > deploymentnote_completion -
Install the Completion Script (requires sudo):
sudo mv deploymentnote_completion /etc/bash_completion.d/deploymentnote
-
Reload Bash Completions:
source /etc/bash_completion.d/deploymentnote
Once installed, simply run deploymentnote
Both adding and deleting notes supports autocompletion of deployment name
-
Show Deployments:
Running
deploymentnotewithout any subcommands displays a table of deployments with available custom notes:deploymentnote
-
Add a Note:
deploymentnote add deployment_name "write note here" -
Delete a Note:
deploymentnote delete deployment_name
-
Custom Data File:
DeploymentNote uses a JSON file at
/tmp/custom_values.jsonto store and retrieve custom notes. You may edit this file manually if needed. -
Kubernetes Integration:
Deployment data is fetched via the command
kubectl get deployments. Ensure yourkubectlcontext is correctly set for your target cluster.
