Files
2025-05-05 16:12:33 -07:00

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