forked from kubernetes-sigs/krew-index
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prompt.yaml
33 lines (33 loc) · 1.52 KB
/
prompt.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: prompt
spec:
platforms:
- uri: https://github.com/jordanwilson230/kubectl-plugins/archive/v1.0.3-krew.zip
sha256: e0bae378c0cf049526cc8d45d3389d78f7054bc5cfc5de24bd41b184ce9e806c
bin: kubectl-prompt
files:
- from: "*/kubectl-prompt"
to: "."
- from: "**/LICENSE"
to: "."
selector:
matchExpressions:
- {key: os, operator: In, values: [darwin, linux]}
version: "v1.0.3-krew"
homepage: https://github.com/jordanwilson230/kubectl-plugins/tree/krew#kubectl-prompt
caveats: |
This plugin requires bash.
When removing this plugin, delete the line beginning with `function kubectl()` and `KUBECTL_*_PROMPT` in your ~/.bash_profile.
shortDescription: Prompts for user confirmation when executing commands in critical namespaces or clusters, i.e., production.
description: |
Protect your production environments!
When issuing certain commands inside a specified namespace/cluster, a warning prompt will appear.
This will alert the user that they are in a flagged environment and require a confirmation before executing the command.
See `https://github.com/jordanwilson230/kubectl-plugins#kubectl-prompt` for documentation.
Usage:
View description) kubectl prompt
Flag a namespace) kubectl prompt add -n production
Flag a cluster) kubectl prompt add -c my-production-cluster
View flagged environments) kubectl prompt list