Skip to content

Commit

Permalink
Add Azure file CSI driver (kubernetes-sigs#226)
Browse files Browse the repository at this point in the history
* Add Azure file CSI driver

* Fix typo
  • Loading branch information
kahun authored Aug 9, 2023
1 parent 4e944d0 commit 6b4b53b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 0.17.0-0.2.1 (upcoming)

* Add Azure file CSI driver
* Fix wait conditions for unmanaged clusters

## 0.17.0-0.2.0 (2023-07-05)
Expand Down
1 change: 1 addition & 0 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ aws:
vpc-cni: v1.12.6-eksbuild.2
azure:
azuredisk-csi-driver: v1.27.1
azurefile-csi-driver: v1.27.1
cluster-api-azure: v1.9.3
cluster-api-azure-templates: v1.9.3
gcp:
Expand Down
8 changes: 8 additions & 0 deletions pkg/cluster/internal/create/actions/createworker/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ func (b *AzureBuilder) installCSI(n nodes.Node, k string) error {
return errors.Wrap(err, "failed to deploy Azure Disk CSI driver Helm Chart")
}

c = "helm install azurefile-csi-driver /stratio/helm/azurefile-csi-driver " +
" --kubeconfig " + k +
" --namespace " + b.csiNamespace
_, err = commons.ExecuteCommand(n, c)
if err != nil {
return errors.Wrap(err, "failed to deploy Azure File CSI driver Helm Chart")
}

cmd = n.Command("kubectl", "--kubeconfig", k, "apply", "-f", "-")
if err := cmd.SetStdin(strings.NewReader(azureStorageClasses)).Run(); err != nil {
return errors.Wrap(err, "failed to create Azure Storage Classes")
Expand Down
2 changes: 2 additions & 0 deletions pkg/cluster/internal/providers/docker/stratio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ENV HELM=v3.11.3

# Helm charts
ENV AZUREDISK_CSI_DRIVER_CHART=v1.27.1
ENV AZUREFILE_CSI_DRIVER_CHART=v1.27.1
ENV CLOUD_PROVIDER_AZURE_CHART=v1.27.1
ENV CLUSTER_AUTOSCALER_CHART=9.29.1
ENV TIGERA_OPERATOR_CHART=v3.25.1
Expand Down Expand Up @@ -51,6 +52,7 @@ RUN curl -L https://get.helm.sh/helm-${HELM}-linux-amd64.tar.gz -o /root/helm.ta
# Download helm charts
RUN mkdir -p /stratio/helm \
&& for i in $(seq 1 3); do timeout 5 helm pull azuredisk-csi-driver --version ${AZUREDISK_CSI_DRIVER_CHART} --repo https://raw.githubusercontent.com/kubernetes-sigs/azuredisk-csi-driver/master/charts --untar --untardir /stratio/helm && break; done \
&& for i in $(seq 1 3); do timeout 5 helm pull azurefile-csi-driver --version ${AZUREFILE_CSI_DRIVER_CHART} --repo https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/charts --untar --untardir /stratio/helm && break; done \
&& for i in $(seq 1 3); do timeout 5 helm pull cloud-provider-azure --version ${CLOUD_PROVIDER_AZURE_CHART} --repo https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo --untar --untardir /stratio/helm && break; done \
&& for i in $(seq 1 3); do timeout 5 helm pull cluster-autoscaler --version ${CLUSTER_AUTOSCALER_CHART} --repo https://kubernetes.github.io/autoscaler --untar --untardir /stratio/helm && break; done \
&& for i in $(seq 1 3); do timeout 5 helm pull tigera-operator --version ${TIGERA_OPERATOR_CHART} --repo https://docs.projectcalico.org/charts --untar --untardir /stratio/helm && break; done
Expand Down

0 comments on commit 6b4b53b

Please sign in to comment.