-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (40 loc) · 1.65 KB
/
azure-virtual-network-dispatch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "azure-03-dispatch-virtual-network"
on:
workflow_dispatch:
inputs:
resourceGroupName:
description: "The name of an existing resource group"
required: true
virtualNetworkCidr:
description: "The Virtual Network CIDR block (e.g., 10.1.0.0/16)"
required: true
operatorSubnetCidr:
description: "The Subnet CIDR block for operator resources (e.g., 10.1.0.0/24)"
required: true
aksSubnetCidr:
description: "The Subnet CIDR block hosting AKS cluster (e.g., 10.1.128.0/18)"
required: true
action:
required: true
type: choice
description: "Create (new) or destroy (existing)"
options:
- create
- destroy
jobs:
manage-vnet:
uses: ./.github/workflows/azure-virtual-network.yml
with:
virtualNetworkCidr: ${{ github.event.inputs.virtualNetworkCidr }}
resourceGroupName: ${{ github.event.inputs.resourceGroupName }}
operatorSubnetCidr: ${{ github.event.inputs.operatorSubnetCidr }}
aksSubnetCidr: ${{ github.event.inputs.aksSubnetCidr }}
action: ${{ github.event.inputs.action }}
secrets:
AZURE_AD_CLIENT_ID: ${{ secrets.AZURE_AD_CLIENT_ID }}
AZURE_AD_CLIENT_SECRET: ${{ secrets.AZURE_AD_CLIENT_SECRET }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_AD_TENANT_ID: ${{ secrets.AZURE_AD_TENANT_ID }}
TF_BACKEND_RESOURCE_GROUP_NAME: ${{ secrets.TF_BACKEND_RESOURCE_GROUP_NAME }}
TF_BACKEND_STORAGE_ACCOUNT_NAME: ${{ secrets.TF_BACKEND_STORAGE_ACCOUNT_NAME }}
TF_BACKEND_STORAGE_CONTAINER_NAME: ${{ secrets.TF_BACKEND_STORAGE_CONTAINER_NAME }}