Skip to content

Commit

Permalink
Add support for CSI Blob drivers (#396)
Browse files Browse the repository at this point in the history
* Add support for CSI drivers. Implements #342

* Azure Blob CSI Driver addon - reduce text

* Removed en-gb and added CSI blob to preview params

* Added Blob CSI driver to preview params

* bumped stack up to group with CSI
  • Loading branch information
melzayet committed Sep 14, 2022
1 parent 8f0dae4 commit 1aca413
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bicep/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,9 @@ param kedaAddon bool = false
@description('Enables Open Service Mesh')
param openServiceMeshAddon bool = false

@description('Enables the Blob CSI extension')
param blobCSIAddon bool = false

@allowed([
'none'
'patch'
Expand Down Expand Up @@ -1100,6 +1103,11 @@ var aksProperties = union({
enabled: warIngressNginx
}
}
storageProfile: {
blobCSIDriver: {
enabled: blobCSIAddon
}
}
},
aksOutboundTrafficType == 'managedNATGateway' ? managedNATGatewayProfile : {},
defenderForContainers && createLaw ? azureDefenderSecurityProfile : {}
Expand Down Expand Up @@ -1228,7 +1236,6 @@ resource daprExtension 'Microsoft.KubernetesConfiguration/extensions@2022-04-02-

output daprReleaseNamespace string = daprAddon ? daprExtension.properties.scope.cluster.releaseNamespace : ''


/*__ ___. ______ .__ __. __ .___________. ______ .______ __ .__ __. _______
| \/ | / __ \ | \ | | | | | | / __ \ | _ \ | | | \ | | / _____|
| \ / | | | | | | \| | | | `---| |----`| | | | | |_) | | | | \| | | | __
Expand Down
15 changes: 15 additions & 0 deletions helper/src/components/addonsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,20 @@ export default function ({ tabValues, updateFn, featureFlag, invalidArray }) {
</Stack.Item>
}

<Stack.Item align="start">
<Label required={true}>
CSI Blob storage: Enable BlobFuse or NFS v3 access to Azure Blob Storage
(<a target="_new" href="https://docs.microsoft.com/azure/aks/azure-blob-csi">docs</a>)
</Label>
<Checkbox
styles={{ root: { marginLeft: "50px" } }}
inputProps={{ "data-testid": "addons-blob-csi-checkbox" }}
checked={addons.blobCSIAddon}
onChange={(ev, v) => updateFn("blobCSIAddon", v)}
label="Install the Azure Blob CSI AddOn"
/>
</Stack.Item>

<Separator className="notopmargin" />

<Stack.Item align="start">
Expand Down Expand Up @@ -422,6 +436,7 @@ export default function ({ tabValues, updateFn, featureFlag, invalidArray }) {
label="Enable high availability mode"
/>
</Stack.Item>

</Stack>
);
}
1 change: 1 addition & 0 deletions helper/src/components/deployTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default function DeployTab({ defaults, updateFn, tabValues, invalidArray,
...(addons.ingress !== defaults.addons.ingress && {warIngressNginx: true})
}),
...(defaults.addons.kedaAddon !== addons.kedaAddon && {kedaAddon: addons.kedaAddon }),
...(defaults.addons.blobCSIAddon !== addons.blobCSIAddon && {blobCSIAddon: addons.blobCSIAddon }),
...(defaults.addons.workloadIdentity !== addons.workloadIdentity && {workloadIdentity: addons.workloadIdentity }),
...(urlParams.getAll('feature').includes('defender') && cluster.DefenderForContainers !== defaults.cluster.DefenderForContainers && { DefenderForContainers: cluster.DefenderForContainers })
}
Expand Down
1 change: 1 addition & 0 deletions helper/src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"networkPolicy": "none",
"kedaAddon": false,
"openServiceMeshAddon": false,
"blobCSIAddon": false,
"workloadIdentity": false,
"denydefaultNetworkPolicy": false,
"azurepolicy": "none",
Expand Down

0 comments on commit 1aca413

Please sign in to comment.