Destroy External services of MOSIP using Helmsman (external DSF) #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Destroy External services of MOSIP using Helmsman (external DSF) | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| confirmation: | |
| description: "Type 'destroy' to confirm destruction of external services" | |
| required: true | |
| type: string | |
| namespace_selection: | |
| description: "Namespace selection" | |
| required: true | |
| type: choice | |
| default: "all" | |
| options: | |
| - all | |
| - specific | |
| specific_namespaces: | |
| description: "Specific namespaces (comma-separated, e.g., keycloak,kafka,minio). Only used if 'specific' is selected above." | |
| required: false | |
| type: string | |
| destroy_option: | |
| description: "Destroy option" | |
| required: false | |
| type: choice | |
| default: "full" | |
| options: | |
| - full | |
| - helm_only | |
| specific_releases: | |
| description: "Specific helm releases (comma-separated). Only used with helm_only option." | |
| required: false | |
| type: string | |
| jobs: | |
| validate-confirmation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Validate destruction confirmation | |
| run: | | |
| if [ "${{ github.event.inputs.confirmation }}" != "destroy" ]; then | |
| echo "❌ Destruction cancelled. You must type 'destroy' to confirm." | |
| exit 1 | |
| fi | |
| echo "✅ Destruction confirmed. Proceeding..." | |
| destroy: | |
| needs: validate-confirmation | |
| uses: ./.github/workflows/destroy-resources.yml | |
| with: | |
| namespace_selection: ${{ github.event.inputs.namespace_selection }} | |
| specific_namespaces: ${{ github.event.inputs.specific_namespaces }} | |
| all_namespaces: "keycloak kafka minio softhsm clamav activemq landing-page captcha s3 msg-gateways" | |
| dsf_label: "external-dsf" | |
| wireguard_secret_name: "CLUSTER_WIREGUARD_WG0" | |
| deployment_type: "External" | |
| destroy_option: ${{ github.event.inputs.destroy_option }} | |
| specific_releases: ${{ github.event.inputs.specific_releases }} | |
| secrets: inherit |