Skip to content

Commit a3a0e70

Browse files
committed
remove subscriptionID from roledefinitionclient.New
1 parent 4856a0c commit a3a0e70

File tree

11 files changed

+41
-38
lines changed

11 files changed

+41
-38
lines changed

.github/workflows/codeql-analysis.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
# The branches below must be a subset of the branches above
1919
branches: [ master, 'release-**' ]
2020
schedule:
21-
- cron: '0 */24 * * *'
21+
- cron: '10 */12 * * *'
2222

2323
jobs:
2424
analyze:
@@ -37,15 +37,16 @@ jobs:
3737
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

3939
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
42+
4043
- name: Set up Go 1.x
4144
uses: actions/setup-go@v5
4245
with:
43-
go-version: ^1.18
46+
go-version: '>=1.18'
47+
check-latest: true
4448
id: go
4549

46-
- name: Checkout repository
47-
uses: actions/checkout@v4
48-
4950
# Initializes the CodeQL tools for scanning.
5051
- name: Initialize CodeQL
5152
uses: github/codeql-action/init@v3

.github/workflows/darwin.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ jobs:
77
name: Build
88
runs-on: macos-latest
99
steps:
10+
- name: Check out code into the Go module directory
11+
uses: actions/checkout@v4
1012
- name: Set up Go 1.x
1113
uses: actions/setup-go@v5
1214
with:
13-
go-version: ^1.16
15+
go-version: '>=1.18'
16+
check-latest: true
1417
id: go
15-
- name: Check out code into the Go module directory
16-
uses: actions/checkout@v4
1718
- name: Build Test
1819
run: |
1920
make blob-darwin

.github/workflows/linux.yaml

+4-5
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ jobs:
99
name: Build
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Check out code into the Go module directory
13+
uses: actions/checkout@v4
1214
- name: Set up Go 1.x
1315
uses: actions/setup-go@v5
1416
with:
15-
go-version: ^1.16
17+
go-version: '>=1.18'
18+
check-latest: true
1619
id: go
17-
18-
- name: Check out code into the Go module directory
19-
uses: actions/checkout@v4
20-
2120
- name: Run unit test
2221
run: |
2322
export PATH=$PATH:$HOME/.local/bin

.github/workflows/static.yaml

+12-10
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ jobs:
77
name: Go Lint
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Set up Go 1.x
11-
uses: actions/setup-go@v5
12-
with:
13-
go-version: ^1.19
14-
- uses: actions/checkout@master
15-
- name: Run linter
16-
uses: golangci/golangci-lint-action@v6
17-
with:
18-
version: v1.60
19-
args: -E=gofmt,unused,ineffassign,revive,misspell,exportloopref,asciicheck,bodyclose,depguard,dogsled,durationcheck,errname,forbidigo -D=staticcheck --timeout=30m0s
10+
- uses: actions/checkout@master
11+
- name: Set up Go 1.x
12+
uses: actions/setup-go@v5
13+
with:
14+
go-version: '>=1.18'
15+
check-latest: true
16+
id: go
17+
- name: Run linter
18+
uses: golangci/golangci-lint-action@v6
19+
with:
20+
version: v1.60
21+
args: -E=gofmt,unused,ineffassign,revive,misspell,exportloopref,asciicheck,bodyclose,depguard,dogsled,durationcheck,errname,forbidigo -D=staticcheck --timeout=30m0s

.github/workflows/trivy.yaml

+4-5
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ jobs:
99
name: Build
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
1214
- name: Set up Go 1.x
1315
uses: actions/setup-go@v5
1416
with:
15-
go-version: 1.23.1
17+
go-version: '>=1.18'
18+
check-latest: true
1619
id: go
17-
18-
- name: Checkout code
19-
uses: actions/checkout@v4
20-
2120
- name: Build an image from Dockerfile
2221
run: |
2322
export PUBLISH=true

.github/workflows/windows.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ jobs:
1010
platform: [windows-latest]
1111
runs-on: ${{ matrix.platform }}
1212
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
1315
- name: Set up Go 1.x
1416
uses: actions/setup-go@v5
1517
with:
16-
go-version: ^1.16
18+
go-version: '>=1.18'
19+
check-latest: true
1720
id: go
18-
- name: Checkout code
19-
uses: actions/checkout@v4
2021
- name: Build Test
2122
run: |
2223
make blob-windows

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ require (
3838
k8s.io/pod-security-admission v0.30.3
3939
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
4040
sigs.k8s.io/cloud-provider-azure v1.27.1-0.20240805152051-72936abe6812
41-
sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.49
41+
sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.51
4242
sigs.k8s.io/cloud-provider-azure/pkg/azclient/configloader v0.0.18
4343
sigs.k8s.io/yaml v1.4.0
4444
)

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0 h1:/U5vjBbQn3RCh
455455
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0/go.mod h1:z7+wmGM2dfIiLRfrC6jb5kV2Mq/sK1ZP303cxzkV5Y4=
456456
sigs.k8s.io/cloud-provider-azure v1.27.1-0.20240805152051-72936abe6812 h1:/wecScN9etwdtLeibmyMjSrT6WwjZxmaltAUppmcj60=
457457
sigs.k8s.io/cloud-provider-azure v1.27.1-0.20240805152051-72936abe6812/go.mod h1:lQvP3CccouEXTBu56sCNxPOPyeNwM8PlfL4+ms2C4sE=
458-
sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.49 h1:3AsgRzy3mz/AOsofFsuzQFs2paHACDl2J0Ibd6dh+5Q=
459-
sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.49/go.mod h1:1M90A+akyTabHVnveSKlvIO/Kk9kEr1LjRx+08twKVU=
458+
sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.51 h1:VTNa/fNAm1FV1CVjB829WPGvFCI0p/gbyyWkIslwtyY=
459+
sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.51/go.mod h1:ymK0BL/Q6IhmE/a/fIasOcuqtueUX0cKnzU66uVmt1w=
460460
sigs.k8s.io/cloud-provider-azure/pkg/azclient/configloader v0.0.18 h1:PhXbmp06mdagpcavRWc/bAF7aNAEknuuzioI+NJgE3E=
461461
sigs.k8s.io/cloud-provider-azure/pkg/azclient/configloader v0.0.18/go.mod h1:qJdztdabNCvj3MiRKT1AEOeYwhplYAodY8UPR/LwcT8=
462462
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=

test/utils/azure/azure_helper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func GetClient(cloud, subscriptionID, clientID, tenantID, clientSecret string, a
6666
if err != nil {
6767
return nil, err
6868
}
69-
roleclient, err := roledefinitionclient.New(subscriptionID, cred, nil)
69+
roleclient, err := roledefinitionclient.New(cred, nil)
7070
if err != nil {
7171
return nil, err
7272
}

vendor/modules.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1619,8 +1619,8 @@ sigs.k8s.io/cloud-provider-azure/pkg/util/string
16191619
sigs.k8s.io/cloud-provider-azure/pkg/util/taints
16201620
sigs.k8s.io/cloud-provider-azure/pkg/util/vm
16211621
sigs.k8s.io/cloud-provider-azure/pkg/version
1622-
# sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.49
1623-
## explicit; go 1.22
1622+
# sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.51
1623+
## explicit; go 1.23.1
16241624
sigs.k8s.io/cloud-provider-azure/pkg/azclient
16251625
sigs.k8s.io/cloud-provider-azure/pkg/azclient/accountclient
16261626
sigs.k8s.io/cloud-provider-azure/pkg/azclient/accountclient/mock_accountclient

vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/roledefinitionclient/zz_generated_client.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)