-
Notifications
You must be signed in to change notification settings - Fork 497
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
adding kube-lock
plugin
#3409
Merged
Merged
adding kube-lock
plugin
#3409
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5564f89
adding kube-lock plugin
ChaosInTheCRD 8b5b12b
updating manifest to shorten long description
ChaosInTheCRD d5ae1f6
fixed the caveat
ChaosInTheCRD fdfe555
updated description
ChaosInTheCRD c386686
updated the description
ChaosInTheCRD File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: lock | ||
spec: | ||
version: v0.0.4 | ||
homepage: https://github.com/chaosinthecrd/kube-lock | ||
shortDescription: A client-side lock for kubernetes contexts to prevent kubectl misfires. | ||
description: | | ||
This tool allows you to `lock` and `unlock` contexts to prevent accidentally | ||
issuing destructive commands to the wrong contexts. You can also set `profiles`, | ||
which let you lock the context while keeping certain verb/resource combinations | ||
available. It achieves by acting as a wrapper around `kubectl` and assessing | ||
the command executed against a configuration file (at `~./kube-lock.yaml`). | ||
caveats: must alias `kubectl` to kubectl-lock kubectl in `.bashrc`/`.zshrc` (e.g., alias kubectl='kubectl-lock kubectl --') | ||
platforms: | ||
- selector: | ||
matchLabels: | ||
os: darwin | ||
arch: amd64 | ||
uri: https://github.com/chaosinthecrd/kube-lock/releases/download/v0.0.4/kube-lock_v0.0.4_darwin_amd64.tar.gz | ||
sha256: d9e87d41876ea0bbbb33deac37589877c81f17e5dea820c605e6d636a6267e9e | ||
bin: kubectl-lock | ||
- selector: | ||
matchLabels: | ||
os: darwin | ||
arch: arm64 | ||
uri: https://github.com/chaosinthecrd/kube-lock/releases/download/v0.0.4/kube-lock_v0.0.4_darwin_arm64.tar.gz | ||
sha256: c6498479a52cbfcfb303ea06b9c12fd0e4d05aac2035f505c0db4e8fd54a9e23 | ||
bin: kubectl-lock | ||
- selector: | ||
matchLabels: | ||
os: linux | ||
arch: amd64 | ||
uri: https://github.com/chaosinthecrd/kube-lock/releases/download/v0.0.4/kube-lock_v0.0.4_linux_amd64.tar.gz | ||
sha256: b8b7c140eff6c983d2d22127ea0617a333bdd88728782647b787e793e95bf346 | ||
bin: kubectl-lock | ||
- selector: | ||
matchLabels: | ||
os: windows | ||
arch: amd64 | ||
uri: https://github.com/chaosinthecrd/kube-lock/releases/download/v0.0.4/kube-lock_v0.0.4_windows_amd64.tar.gz | ||
sha256: cac8d24f8fe430b59327b98ba0181e2dc0f3a9b6bb8433a29144314501220e20 | ||
bin: kubectl-lock.exe |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider shortening to 50 chars in a followup PR.