$ export CREDENTIALS_NAME="replace-me"
export SERVICE_ID="replace-me"
export deployment="replace-me"
patch="$(oc get deployment "${deployment}"
patch="$(oc get deployment "${deployment}" --template='{"spec":{"template":{"metadata":{"labels":{ {{ range $k,$v := .spec.template.metadata.labels }}"{{ $k }}":"{{ $v }}",{{ end }}"service-mesh.3scale.net/service-id":"'"${SERVICE_ID}"'","service-mesh.3scale.net/credentials":"'"${CREDENTIALS_NAME}"'"}}}}}' )"
oc patch deployment "${deployment}" --patch ''"${patch}"''