From 586f219d4901afd661833b4ae5484a24f62a42f4 Mon Sep 17 00:00:00 2001 From: Stephen Mkandawire Date: Thu, 7 Mar 2024 13:10:36 +0000 Subject: [PATCH] Ensure azure cloud config can be loaded from secret Manually pickup fixes from upstream: - ensures azure cloud config can be loaded from secret - fix goveralls --- .github/workflows/linux.yaml | 15 +- BLOB_CSI_VERSION | 2 +- charts/index.yaml | 11 +- charts/v4.7.0/blob-csi-driver-v4.7.0.tgz | Bin 0 -> 5872 bytes charts/v4.7.0/blob-csi-driver/Chart.yaml | 5 + .../blob-csi-driver/templates/NOTES.txt | 5 + .../blob-csi-driver/templates/_helpers.tpl | 49 +++ .../templates/csi-blob-controller.yaml | 224 +++++++++++++ .../templates/csi-blob-driver.yaml | 14 + .../templates/csi-blob-node.yaml | 296 ++++++++++++++++++ .../templates/rbac-csi-blob-controller.yaml | 121 +++++++ .../templates/rbac-csi-blob-node.yaml | 44 +++ .../serviceaccount-csi-blob-controller.yaml | 17 + .../serviceaccount-csi-blob-node.yaml | 17 + charts/v4.7.0/blob-csi-driver/values.yaml | 173 ++++++++++ pkg/blob/azure.go | 2 +- 16 files changed, 985 insertions(+), 10 deletions(-) create mode 100644 charts/v4.7.0/blob-csi-driver-v4.7.0.tgz create mode 100644 charts/v4.7.0/blob-csi-driver/Chart.yaml create mode 100644 charts/v4.7.0/blob-csi-driver/templates/NOTES.txt create mode 100644 charts/v4.7.0/blob-csi-driver/templates/_helpers.tpl create mode 100644 charts/v4.7.0/blob-csi-driver/templates/csi-blob-controller.yaml create mode 100644 charts/v4.7.0/blob-csi-driver/templates/csi-blob-driver.yaml create mode 100644 charts/v4.7.0/blob-csi-driver/templates/csi-blob-node.yaml create mode 100644 charts/v4.7.0/blob-csi-driver/templates/rbac-csi-blob-controller.yaml create mode 100644 charts/v4.7.0/blob-csi-driver/templates/rbac-csi-blob-node.yaml create mode 100644 charts/v4.7.0/blob-csi-driver/templates/serviceaccount-csi-blob-controller.yaml create mode 100644 charts/v4.7.0/blob-csi-driver/templates/serviceaccount-csi-blob-node.yaml create mode 100644 charts/v4.7.0/blob-csi-driver/values.yaml diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 80cbaf9b4..d8b6bc40e 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go 1.x - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ^1.16 id: go @@ -25,7 +25,7 @@ jobs: sudo dpkg -i packages-microsoft-prod.deb sudo apt-get update sudo apt-get install blobfuse - go test -covermode=count -coverprofile=profile.cov ./pkg/... + go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/... - name: Run build test run: | @@ -42,9 +42,10 @@ jobs: export PATH=$PATH:$HOME/.local/bin make blobfuse-proxy - - name: Get code coverage + - name: Install goveralls + run: go install github.com/mattn/goveralls@latest + + - name: Send coverage env: - COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - GO111MODULE=off go get github.com/mattn/goveralls - $(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github + COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: goveralls -coverprofile=profile.cov -service=github diff --git a/BLOB_CSI_VERSION b/BLOB_CSI_VERSION index f63f06be9..3ef8c917c 100644 --- a/BLOB_CSI_VERSION +++ b/BLOB_CSI_VERSION @@ -1 +1 @@ -BLOB_CSI_VERSION=v4.6.0 +BLOB_CSI_VERSION=v4.7.0 diff --git a/charts/index.yaml b/charts/index.yaml index 3c13c1a12..b9ccab85f 100644 --- a/charts/index.yaml +++ b/charts/index.yaml @@ -370,6 +370,15 @@ entries: urls: - https://raw.githubusercontent.com/avoltz/blob-csi-driver/staging/charts/v4.6.0/blob-csi-driver-v4.6.0.tgz version: v4.6.0 + - apiVersion: v1 + appVersion: v4.7.0 + created: "2024-03-07T20:20:15.553036749Z" + description: Azure Blob Storage CSI driver + digest: c78b006ff5897b590ed4b27b2f9d8ee8dae23f91e2e885eb5cea09dac9b4195f + name: blob-csi-driver + urls: + - https://raw.githubusercontent.com/avoltz/blob-csi-driver/staging/charts/v4.7.0/blob-csi-driver-v4.7.0.tgz + version: v4.7.0 - apiVersion: v1 appVersion: latest created: "2023-12-01T09:01:28.976577418Z" @@ -379,4 +388,4 @@ entries: urls: - https://raw.githubusercontent.com/avoltz/blob-csi-driver/staging/charts/latest/blob-csi-driver-v0.0.0.tgz version: v0.0.0 -generated: "2023-12-01T09:01:29.975686234Z" +generated: "2024-03-07T20:20:15.553036749Z" diff --git a/charts/v4.7.0/blob-csi-driver-v4.7.0.tgz b/charts/v4.7.0/blob-csi-driver-v4.7.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..5adb6356d19f59c6913ad8eee654c1f73e178b5e GIT binary patch literal 5872 zcmVDc zVQyr3R8em|NM&qo0PH<&bK5r3{j6VsQF_zfJ)z$GlAdP#!M2oC6I<3uPI~urIvR*v zNjQ@L3xJAM*Z=()0HpXLQg4=(TpuwXVv&p81-QFd>@L8O%SM(hh~;oH175wJVlFFl z?783V?W)ykwe!$mcB?pAfi7)lN%Rd4R=*ndyG?0wr383pi z2N~fhQS3nzWkjkpTi`#fysOkoU%Si4D{*D@e}>%v#C{FHYW=U*&d=Uu_5bwb^r-)b zxQK@*&@3S|!UFo>vnKLvUh#;{nP6jCv6-iyx@@GN5aQr7K_uhzCaOOCB&xO`)kumo zgv67D@le10z;%1fCHB0DI^!;rJq`k>dT0yM<7`HheE^uRg(n0Mx|a`PmnSPT3WgKFd;&6yhTS<<4`p% z9yL#~@Y8w@Y(e@U$RFE`FgFbnr0VNQm28&$2cGXHU}xx?Gd0rfP=nFfod{@PLLK+p-^xbH_=o|Uo@);rYnS19cGKF#Nt6z zZAQmr5^%75=2$kP5)%r%s_}{(g%>ScDC*KwpUKsy>@0 z4jMC#<}9e70Z26*W9$k*WUOwYFPQ3^fdKWJBld+>6g@^IXRZspsou0@ba8Rh5*WQf zidn?QXb`dx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