We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9f34f3 + b93d0d2 commit 246f28fCopy full SHA for 246f28f
bin/annotate-k8s-resource.sh
@@ -24,8 +24,8 @@ if [[ "${K8S_RESOURCE_TYPE}" == "pod" ]]; then
24
exit 0
25
fi
26
for POD in "${PODS}"; do
27
- kubectl --namespace "${K8S_NAMESPACE}" annotate --overwrite pod "${POD}" "${K8S_ANNOTATIONS[@]}"
+ kubectl --namespace "${K8S_NAMESPACE}" annotate --overwrite pod "${POD}" ${K8S_ANNOTATIONS}
28
done
29
else
30
- kubectl --namespace "${K8S_NAMESPACE}" annotate --overwrite "${K8S_RESOURCE_TYPE}" "${K8S_RESOURCE_NAME}" "${K8S_ANNOTATIONS[@]}"
+ kubectl --namespace "${K8S_NAMESPACE}" annotate --overwrite "${K8S_RESOURCE_TYPE}" "${K8S_RESOURCE_NAME}" ${K8S_ANNOTATIONS}
31
0 commit comments