some improvements

This commit is contained in:
ston1th 2019-08-11 22:16:06 +02:00
commit bae55a54f4
5 changed files with 4 additions and 2 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