Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8d65fd4
Correct and update workflows so we can enable Actions
dabradley Aug 21, 2024
83d2860
Bump golang.org/x/net from 0.17.0 to 0.23.0 (#166)
dependabot[bot] Aug 26, 2024
32febd7
Fix minor workflow issues
dabradley Aug 26, 2024
18f3946
Add t-mialve to owners
t-mialve Sep 4, 2024
1ff10d0
Merge pull request #175 from t-mialve/t-mialve/update-owners-development
k8s-ci-robot Sep 5, 2024
7d20ac2
Run trivy on development branch as well
dabradley Sep 5, 2024
a597d17
Merge pull request #177 from dabradley/personal/dabradley/trivy-on-de…
k8s-ci-robot Sep 9, 2024
29c97b2
Update kubernetes library version
dabradley Sep 9, 2024
b0dc511
Use go.mod for go version in Github Actions
dabradley Sep 9, 2024
808e430
Upgrade go version
dabradley Sep 9, 2024
63ffe69
Use latest Github Actions versions
dabradley Sep 9, 2024
c21c465
Checkout repo before setting up go
dabradley Sep 9, 2024
e5c906e
Upgrade azidentity
dabradley Sep 9, 2024
3c6e67f
Upgrade libssl3 when building image
dabradley Sep 9, 2024
f74964a
Upgrade k8s.io/klog/v2
dabradley Sep 9, 2024
6684fb5
Upgrade github.com/pborman/uuid
dabradley Sep 9, 2024
bb9626d
Upgrade google.golang.org/protobuf
dabradley Sep 9, 2024
7101bb8
Upgrade google.golang.org/grpc
dabradley Sep 9, 2024
77638f3
Upgrade golang.org/x/tools
dabradley Sep 9, 2024
46f2520
Upgrade golang.org/x/time
dabradley Sep 9, 2024
57543cd
Upgrade golang.org/x/oauth2
dabradley Sep 9, 2024
953eb62
Upgrade github.com/prometheus/client_golang
dabradley Sep 9, 2024
5660822
Upgrade github.com/prometheus/common
dabradley Sep 9, 2024
bac3f6b
Upgrade github.com/onsi/gomega
dabradley Sep 9, 2024
41b9170
Upgrade github.com/moby/sys/mountinfo
dabradley Sep 9, 2024
9c1ce66
Upgrade github.com/go-openapi/jsonreferenc
dabradley Sep 9, 2024
a0526e9
Upgrade github.com/emicklei/go-restful/v3
dabradley Sep 9, 2024
99f549c
Create dependabot.yml
dabradley Sep 9, 2024
40922d6
Bump github.com/pelletier/go-toml from 1.9.4 to 1.9.5
dependabot[bot] Sep 10, 2024
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
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
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/[email protected]
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
Loading