kubectl atlas
A kubectl
plugin to interact with MongoDB Atlas leveraging the MongoDB Atlas Operator.
Quick Start
Installation
- Install krew
- Execute:
kubectl krew index add atlas https://github.com/s-urbaniak/kube-atlas-cli.git
kubectl krew install atlas/atlas
Upgrade
To upgrade, consult the krew documentation and execute:
$ kubectl krew upgrade
Updated the local copy of plugin index "atlas".
Upgrades available for installed plugins:
* atlas/atlas v0.0.1 -> v0.0.2
Upgrading plugin: atlas/atlas
Upgraded plugin: atlas/atlas
- Invoke the
atlas
kubectl plugin:
kubectl atlas --help
Developer Notes
Architecture
This plugin builds on top of the official Kubernetes Plugin framework krew,
maintained by SIG-CLI.
An overview about the plugin architecture is available at https://github.com/kubernetes-sigs/krew/blob/master/docs/KREW_ARCHITECTURE.md.
Release
- Push a tag in the form of
vx.y.z
:
git tag vx.y.z
git push origin --tags
- Once the release GitHub action is done
and the release is available at https://github.com/s-urbaniak/kube-atlas-cli/releases, execute:
TAG_NAME=vx.y.z GITHUB_TOKEN=<REDACTED> UPSTREAM_KREW_INDEX_REPO_NAME=kube-atlas-cli UPSTREAM_KREW_INDEX_REPO_OWNER=s-urbaniak go run cmd/krew/main.go
Replace GITHUB_TOKEN
and TAG_NAME
accordingly.
- This will create a Pull Request to update the plugin index. Example: https://github.com/s-urbaniak/kube-atlas-cli/pull/4.
- Approve and merge the pull request.