wget https://github.com/SomeBlackMagic/kube-resource-cleanup/releases/latest/download/kube-resource-cleanup-linux-amd64
chmod +x kube-resource-cleanup-linux-amd64
mv kube-resource-cleanup-linux-amd64 /usr/local/bin/kube-resource-cleanup
export KUBE_NAMESPACE=deafult
Also set access credentials for helm and kubectl if needed
export HELM_CMD_ARGS="--kubeconfig /root/.kube/some-cluster.yaml"
export KUBECTL_CMD_ARGS="--kubeconfig /root/.kube/some-cluster.yaml"
kube-resource-cleanup remove-by-args ${CI_PROJECT_PATH} ${CI_COMMIT_REF_NAME}