Skip to content

Commit

Permalink
Update default branch name to 'main' in ARM template and Bicep files
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassem committed Aug 14, 2024
1 parent 9fd9e9b commit 399357b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions azure_jumpstart_arcbox/ARM/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "13913810108142988750"
"templateHash": "2738768575994422412"
}
},
"parameters": {
Expand Down Expand Up @@ -78,7 +78,7 @@
},
"githubBranch": {
"type": "string",
"defaultValue": "arcbox_3.0",
"defaultValue": "main",
"metadata": {
"description": "Target GitHub branch"
}
Expand Down Expand Up @@ -511,7 +511,7 @@
"name": "ubuntuRancherK3sDataSvcNodesDeployment",
"count": "[length(range(0, variables('k3sClusterNodesCount')))]"
},
"condition": "[or(or(equals(parameters('flavor'), 'Full'), equals(parameters('flavor'), 'DataOps')), equals(parameters('flavor'), 'DevOps'))]",
"condition": "[or(equals(parameters('flavor'), 'DataOps'), equals(parameters('flavor'), 'DevOps'))]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"name": "[format('ubuntuRancherK3sDataSvcNodesDeployment-{0}', range(0, variables('k3sClusterNodesCount'))[copyIndex()])]",
Expand Down Expand Up @@ -1704,6 +1704,8 @@
"dependsOn": [
"[resourceId('Microsoft.Resources/deployments', 'mgmtArtifactsAndPolicyDeployment')]",
"[resourceId('Microsoft.Resources/deployments', 'stagingStorageAccountDeployment')]",
"[resourceId('Microsoft.Resources/deployments', 'ubuntuRancherK3sDataSvcDeployment')]",
"[resourceId('Microsoft.Resources/deployments', 'ubuntuRancherK3sDeployment')]",
"[resourceId('Microsoft.Resources/deployments', 'updateVNetDNSServers')]"
]
},
Expand Down
6 changes: 4 additions & 2 deletions azure_jumpstart_arcbox/bicep/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ param flavor string = 'ITPro'
param githubAccount string = 'microsoft'

@description('Target GitHub branch')
param githubBranch string = 'arcbox_3.0'
param githubBranch string = 'main'

@description('Choice to deploy Bastion to connect to the client VM')
param deployBastion bool = false
Expand Down Expand Up @@ -103,7 +103,7 @@ module ubuntuRancherK3sDataSvcDeployment 'kubernetes/ubuntuRancher.bicep' = if (
}
}

module ubuntuRancherK3sDataSvcNodesDeployment 'kubernetes/ubuntuRancherNodes.bicep' = [for i in range(0, k3sClusterNodesCount): if (flavor == 'Full' || flavor == 'DataOps' || flavor == 'DevOps') {
module ubuntuRancherK3sDataSvcNodesDeployment 'kubernetes/ubuntuRancherNodes.bicep' = [for i in range(0, k3sClusterNodesCount): if (flavor == 'DataOps' || flavor == 'DevOps') {
name: 'ubuntuRancherK3sDataSvcNodesDeployment-${i}'
params: {
sshRSAPublicKey: sshRSAPublicKey
Expand Down Expand Up @@ -171,6 +171,8 @@ module clientVmDeployment 'clientVm/clientVm.bicep' = {
}
dependsOn: [
updateVNetDNSServers
ubuntuRancherK3sDataSvcDeployment
ubuntuRancherK3sDeployment
]
}

Expand Down

0 comments on commit 399357b

Please sign in to comment.