diff --git a/e2e-tests/functions b/e2e-tests/functions index c63a1dc72..caa2b1bff 100755 --- a/e2e-tests/functions +++ b/e2e-tests/functions @@ -1596,11 +1596,11 @@ renew_certificate() { } deploy_cmctl() { - local temp_cr="$(mktemp)" - - $sed -e "s/percona-server-mongodb-operator/cmctl/g" "${src_dir}/deploy/rbac.yaml" \ - | yq '(select(.rules).rules[] | select(contains({"apiGroups": ["cert-manager.io"]}))).resources += "certificates/status"' > $temp_cr + local service_account="cmctl" + $sed -e "s/percona-server-mongodb-operator/$service_account/g" "${src_dir}/deploy/rbac.yaml" \ + | yq '(select(.rules).rules[] | select(contains({"apiGroups": ["cert-manager.io"]}))).resources += "certificates/status"' \ + | kubectl_bin apply -f - kubectl_bin apply -f "$conf_dir/cmctl.yml" }