Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Releasing v0.1.17 from development #198

Closed
wants to merge 61 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
8d65fd4
Correct and update workflows so we can enable Actions
dabradley Aug 21, 2024
140ad87
Bump golang.org/x/net from 0.17.0 to 0.23.0
dependabot[bot] Aug 26, 2024
42184ff
Fix minor workflow issues
dabradley Aug 26, 2024
1ddf9e2
Add t-mialve to owners
t-mialve Sep 4, 2024
efad1a2
Run trivy on development branch as well
dabradley Sep 5, 2024
b76c0d5
Update kubernetes library version
dabradley Sep 9, 2024
2369e1f
Use go.mod for go version in Github Actions
dabradley Sep 9, 2024
1295fa6
Upgrade go version
dabradley Sep 9, 2024
0803889
Use latest Github Actions versions
dabradley Sep 9, 2024
e0cf8b1
Checkout repo before setting up go
dabradley Sep 9, 2024
0ece95f
Upgrade azidentity
dabradley Sep 9, 2024
ac4d6a4
Upgrade libssl3 when building image
dabradley Sep 9, 2024
2d27111
Upgrade k8s.io/klog/v2
dabradley Sep 9, 2024
37bead5
Upgrade github.com/pborman/uuid
dabradley Sep 9, 2024
75ebfee
Upgrade google.golang.org/protobuf
dabradley Sep 9, 2024
31ddf93
Upgrade google.golang.org/grpc
dabradley Sep 9, 2024
bd157d5
Upgrade golang.org/x/tools
dabradley Sep 9, 2024
d382598
Upgrade golang.org/x/time
dabradley Sep 9, 2024
7cee6fd
Upgrade golang.org/x/oauth2
dabradley Sep 9, 2024
cb12247
Upgrade github.com/prometheus/client_golang
dabradley Sep 9, 2024
004050e
Upgrade github.com/prometheus/common
dabradley Sep 9, 2024
168cba7
Upgrade github.com/onsi/gomega
dabradley Sep 9, 2024
9bd2258
Upgrade github.com/moby/sys/mountinfo
dabradley Sep 9, 2024
7191a1e
Upgrade github.com/go-openapi/jsonreferenc
dabradley Sep 9, 2024
8ac5fb8
Upgrade github.com/emicklei/go-restful/v3
dabradley Sep 9, 2024
b9029c6
Upgrade sidecars
dabradley Sep 30, 2024
20a4f63
Bump client to 2.15.5
t-mialve Oct 11, 2024
1f976f5
Defer unlocking to ensure exceptions do not leave driver in bad state
dabradley Oct 3, 2024
c9610f3
Refactor some code out of the publish method
dabradley Oct 3, 2024
43d73a7
Refactor out some checks
dabradley Oct 7, 2024
e376567
Remove yoda conditionals for consistency
dabradley Oct 7, 2024
14782e3
Remove unused code
dabradley Oct 7, 2024
34827c1
Use golangci-lint config
dabradley Oct 7, 2024
41e533d
Correct some test assertions
dabradley Oct 7, 2024
14a6bde
Use require for errors
dabradley Oct 7, 2024
cbbae46
Fix style issues
dabradley Oct 7, 2024
29394a1
Use t.helper
dabradley Oct 7, 2024
e01aca6
Use t.Setenv in tests
dabradley Oct 7, 2024
196f3f5
Avoid shadowing golang predeclared identifiers
dabradley Oct 7, 2024
17fac1d
Remove unnecessary loop pinning
dabradley Oct 7, 2024
008b222
Use %w for dynamic error formatting
dabradley Oct 7, 2024
7d3762d
Avoid direct access to proto fields
dabradley Oct 7, 2024
832dfb8
Prealloc arrays instead of appending
dabradley Oct 7, 2024
5c4c242
Avoid named returns
dabradley Oct 7, 2024
9dc3995
Ensure GCI has been run on repo
dabradley Oct 7, 2024
e8157af
Reqiure use of logger instead of stdout
dabradley Oct 7, 2024
4dbd3da
Enable gofumpt linting
dabradley Oct 7, 2024
c376514
Add linters
dabradley Oct 10, 2024
6059673
Upgrade dependencies to avoid vulnerabilities
dabradley Oct 21, 2024
56657aa
Add skip for interfaces in unknown state to entrypoint script
t-mialve Nov 8, 2024
69453e6
Bump image to v0.1.16
t-mialve Nov 14, 2024
c332553
Upgrade jwt
dabradley Nov 12, 2024
cce8e6a
Fix testing
dabradley Nov 12, 2024
064b11a
Use force unmount and explicitly unmount bad mount points
dabradley Mar 27, 2024
12d4f49
Clean up tests
t-mialve Dec 3, 2024
87379b2
Bump default storage size to 48ti
t-mialve Dec 5, 2024
98c4b4a
Remove old owners
t-mialve Nov 27, 2024
db63c37
Upgrade golang.org/x/crypto
dabradley Dec 13, 2024
309920c
Upgrade golang.org/x/net
dabradley Dec 19, 2024
f8e556c
Add fsGroupPolicy to driver
dabradley Jan 6, 2025
995c5f2
Bump to v0.1.17 image
t-mialve Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
18 changes: 9 additions & 9 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ master, 'release-**' ]
branches: [ "main", "development" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master, 'release-**' ]
branches: [ "main", "development" ]
schedule:
- cron: '0 */24 * * *'

Expand All @@ -37,18 +37,18 @@ jobs:
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.19
go-version-file: 'go.mod'
id: go

- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -63,4 +63,4 @@ jobs:
make all

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
4 changes: 2 additions & 2 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
skip: ./.git,./.github/workflows/codespell.yml,.git,*.png,*.jpg,*.svg,*.sum,./vendor,go.sum
ignore_words_list: "AKS,aks,ro"
ignore_words_list: "AKS,aks,ro,NotIn"
20 changes: 10 additions & 10 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: MacOS Build & Unit Test

# Controls when the workflow will run
on:
#on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
#push:
#branches: [ main ]
#pull_request:
#branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
#workflow_dispatch:

jobs:
build:
name: Build
runs-on: macos-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.19
go-version-file: 'go.mod'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build Test
run: |
make azurelustre-darwin
Expand Down
68 changes: 34 additions & 34 deletions .github/workflows/external_e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
---
name: External E2E Test
#---
#name: External E2E Test

on:
workflow_dispatch:
#on:
#workflow_dispatch:

jobs:
Run-external-e2e-test:
name: Run External E2E Test
runs-on: ubuntu-latest
container: ubuntu:18.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Install CA and curl
run: |
apt update -y
apt install -y --no-install-recommends curl ca-certificates
update-ca-certificates
- name: Install ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
- name: Set up kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/\
release/stable.txt)/bin/linux/amd64/kubectl" -o kubectl
chmod +x kubectl
cp ./kubectl /usr/bin/
mkdir ~/.kube
echo ${{ secrets.KUBE_CONFIG }} | base64 > ~/.kube/config
- name: Run External E2E Test
run: test/external-e2e/run.sh
#jobs:
#Run-external-e2e-test:
#name: Run External E2E Test
#runs-on: ubuntu-latest
#container: ubuntu:18.04
#steps:
#- name: Check out code into the Go module directory
#uses: actions/checkout@v4
#- name: Set up Go 1.x
##uses: actions/setup-go@v5
#with:
#go-version-file: 'go.mod'
#id: go
#- name: Install CA and curl
#run: |
#apt update -y
#apt install -y --no-install-recommends curl ca-certificates
#update-ca-certificates
#- name: Install ginkgo
#run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
#- name: Set up kubectl
#run: |
#curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/\
#release/stable.txt)/bin/linux/amd64/kubectl" -o kubectl
#chmod +x kubectl
#cp ./kubectl /usr/bin/
#mkdir ~/.kube
#echo ${{ secrets.KUBE_CONFIG }} | base64 > ~/.kube/config
#- name: Run External E2E Test
#run: test/external-e2e/run.sh
96 changes: 48 additions & 48 deletions .github/workflows/integration_test_aks.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
---
name: Integration Test on AKS
#---
#name: Integration Test on AKS

on:
#on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request_target:
branches: [main]
types: [labeled]
#push:
#branches: [main]
#pull_request:
#branches: [main]
#types: [labeled]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
#workflow_dispatch:

jobs:
Run-Integration-Test-on-AKS:
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
name: Run Integration Test on AKS
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.19
id: go
- name: Check out code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Build Code
run: |
make azurelustre
cp ./_output/azurelustreplugin ./test/integration_aks/image/
- name: Docker login
uses: docker/login-action@v1
with:
registry: ${{ secrets.TEST_ACR_URI }}
username: ${{ secrets.TEST_ACR_USERNAME }}
password: ${{ secrets.TEST_ACR_PASSWORD }}
- name: Build and push integration test container
uses: docker/build-push-action@v2
with:
context: ./test/integration_aks/image
push: true
tags: ${{ secrets.TEST_ACR_URI }}/azurelustre-csi-integration-test:latest
- name: Run integration test
run: |
./hack/verify-integration-test-aks.sh
env:
kube_config: ${{ secrets.KUBE_CONFIG }}
test_acr_uri: ${{ secrets.TEST_ACR_URI }}
lustre_fs_name: ${{ secrets.LUSTRE_FS_NAME }}
lustre_fs_ip: ${{ secrets.LUSTRE_FS_IP }}
#jobs:
#Run-Integration-Test-on-AKS:
#if: contains(github.event.pull_request.labels.*.name, 'safe to test')
#name: Run Integration Test on AKS
#runs-on: ubuntu-latest
#steps:
#- name: Check out code
#uses: actions/checkout@v4
#with:
#ref: ${{ github.event.pull_request.head.sha }}
#- name: Set up Go 1.x
#uses: actions/setup-go@v5
#with:
#go-version-file: 'go.mod'
#id: go
#- name: Build Code
#run: |
#make azurelustre
#cp ./_output/azurelustreplugin ./test/integration_aks/image/
#- name: Docker login
#uses: docker/login-action@v1
#with:
#registry: ${{ secrets.TEST_ACR_URI }}
#username: ${{ secrets.TEST_ACR_USERNAME }}
#password: ${{ secrets.TEST_ACR_PASSWORD }}
#- name: Build and push integration test container
#uses: docker/build-push-action@v2
#with:
#context: ./test/integration_aks/image
#push: true
#tags: ${{ secrets.TEST_ACR_URI }}/azurelustre-csi-integration-test:latest
#- name: Run integration test
#run: |
#./hack/verify-integration-test-aks.sh
#env:
#kube_config: ${{ secrets.KUBE_CONFIG }}
#test_acr_uri: ${{ secrets.TEST_ACR_URI }}
#lustre_fs_name: ${{ secrets.LUSTRE_FS_NAME }}
#lustre_fs_ip: ${{ secrets.LUSTRE_FS_IP }}
27 changes: 13 additions & 14 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: Linux Tests

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
pull_request: {}
push: {}
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -15,17 +12,18 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ^1.19
go-version-file: 'go.mod'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Run unit test
run: |

export PATH=$PATH:$HOME/.local/bin
sudo apt-get update
make verify
Expand All @@ -40,9 +38,10 @@ jobs:
export PATH=$PATH:$HOME/.local/bin
make container

- name: Install goveralls
run: go install github.com/mattn/goveralls@latest

- name: Get code 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
2 changes: 1 addition & 1 deletion .github/workflows/long_haul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Azure Login
uses: Azure/login@v1.1
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/sanity_test_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: Sanity Test Local

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
push: {}
pull_request: {}
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -15,12 +12,12 @@ jobs:
name: Run Sanity Test Local
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.19
go-version-file: 'go.mod'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run Sanity Test
run: make sanity-test-local
20 changes: 8 additions & 12 deletions .github/workflows/static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,22 @@ name: Static Checks

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
pull_request: {}
push: {}
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
go_lint:
name: Go Lint
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Checkout code
uses: actions/checkout@master
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run linter
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
working-directory: pkg
args: -E=gofmt --timeout=30m0s
Loading
Loading