mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
Signed-off-by: nitishfy <[email protected]> Co-authored-by: Alexandre Gaudreault <[email protected]>
18 lines
271 B
Bash
Executable File
18 lines
271 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ "$1" == "version" ]]
|
|
then
|
|
echo "1.0.0"
|
|
exit 0
|
|
fi
|
|
|
|
if [[ "$1" == "config" ]]
|
|
then
|
|
echo "$KUBECONFIG"
|
|
exit 0
|
|
fi
|
|
|
|
# Default behavior: simulate an error
|
|
echo "Error: I am a plugin named argocd-error, and I encountered an error." >&2
|
|
exit 1
|