Initial commit
This commit is contained in:
10
functions/kseal.fish
Normal file
10
functions/kseal.fish
Normal file
@@ -0,0 +1,10 @@
|
||||
function kseal
|
||||
echo "Enter the key to seal, end input with Ctrl-D on an empty line"
|
||||
set key (cat /dev/stdin | string split0)
|
||||
|
||||
set context $argv[1]
|
||||
set namespace $argv[2]
|
||||
set name $argv[3]
|
||||
|
||||
echo -n $key | kubeseal --context=$context --namespace=$namespace --name=$name --raw
|
||||
end
|
Reference in New Issue
Block a user