renamed controller to operator

This commit is contained in:
ston1th 2019-08-10 21:59:44 +02:00
commit 3a61942646
11 changed files with 45 additions and 45 deletions

View file

@ -0,0 +1,12 @@
#!/bin/bash
source /hooks/common/functions.sh
if [[ $1 == "--config" ]]; then
config add
else
json=${BINDING_CONTEXT_PATH}
ns=$(jq -r '.[0].resourceNamespace' ${json})
res=$(jq -r '.[0].resourceName' ${json})
add "${res}" "${ns}"
fi