diff --git a/.github/workflows/restart_qa_gw.yml b/.github/workflows/restart_gw.yml similarity index 64% rename from .github/workflows/restart_qa_gw.yml rename to .github/workflows/restart_gw.yml index 6d927b8c7..d76764e37 100644 --- a/.github/workflows/restart_qa_gw.yml +++ b/.github/workflows/restart_gw.yml @@ -1,4 +1,4 @@ -name: Restart OWGW on QA +name: Restart OWGW defaults: run: @@ -13,8 +13,12 @@ env: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CLIENT_KEY }} on: - workflow_dispatch: {} - + workflow_dispatch: + inputs: + environment: + default: 'qa01' + description: 'In which environment OWGW must be restarted (qa01 will restart OWGW in openwifi-qa01)' + required: true jobs: restart-owgw: @@ -29,5 +33,5 @@ jobs: curl -LO "https://dl.k8s.io/release/v1.23.6/bin/linux/amd64/kubectl" sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - - name: Restart OWGW in QA01 - run: kubectl delete pod -n openwifi-qa01 -l app.kubernetes.io/name=owgw + - name: Restart OWGW in defined namespace + run: kubectl delete pod -n openwifi-${{ github.event.inputs.environment }} -l app.kubernetes.io/name=owgw