Skip to content

Commit 0a9b757

Browse files
Merge branch 'main' into refac/NO-ISSUE-use-generic-enum-flags-for-string-backed-enums
2 parents 34daaa2 + 225fe4b commit 0a9b757

3 files changed

Lines changed: 8 additions & 18 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v6.0.3
20+
uses: actions/checkout@v7.0.0
2121

2222
- name: Install go
23-
uses: actions/setup-go@v6
23+
uses: actions/setup-go@v6.4.0
2424
with:
2525
go-version-file: "go.mod"
2626
cache: true
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout
50-
uses: actions/checkout@v6.0.3
50+
uses: actions/checkout@v7.0.0
5151

5252
- name: Check GoReleaser
5353
uses: goreleaser/goreleaser-action@v7.2.2

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v6.0.3
26+
uses: actions/checkout@v7.0.0
2727
with:
2828
# Allow goreleaser to access older tag information.
2929
fetch-depth: 0
3030

3131
- name: Install go
32-
uses: actions/setup-go@v6
32+
uses: actions/setup-go@v6.4.0
3333
with:
3434
go-version-file: "go.mod"
3535
cache: true
@@ -106,7 +106,7 @@ jobs:
106106
AWS_SECRET_ACCESS_KEY: ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }}
107107
steps:
108108
- name: Checkout
109-
uses: actions/checkout@v6.0.3
109+
uses: actions/checkout@v7.0.0
110110

111111
# use the artifacts from the "goreleaser" job
112112
- name: Download artifacts from workflow
@@ -144,7 +144,7 @@ jobs:
144144
AWS_ENDPOINT_URL: https://object.storage.eu01.onstackit.cloud
145145
steps:
146146
- name: Checkout
147-
uses: actions/checkout@v6.0.3
147+
uses: actions/checkout@v7.0.0
148148

149149
- name: Download artifacts from workflow
150150
uses: actions/download-artifact@v8

internal/cmd/load-balancer/observability-credentials/update/update.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@ const (
2828
credentialsRefArg = "CREDENTIALS_REF" //nolint:gosec // linter false positive
2929
)
3030

31-
// enforce implementation of interfaces
32-
var (
33-
_ loadBalancerClient = loadbalancer.APIClient{}.DefaultAPI
34-
)
35-
36-
type loadBalancerClient interface {
37-
UpdateCredentials(ctx context.Context, projectId, region, credentialsRef string) loadbalancer.ApiUpdateCredentialsRequest
38-
GetCredentials(ctx context.Context, projectId string, region string, credentialsRef string) loadbalancer.ApiGetCredentialsRequest
39-
}
40-
4131
type inputModel struct {
4232
*globalflags.GlobalFlagModel
4333
CredentialsRef string
@@ -138,7 +128,7 @@ func parseInput(p *print.Printer, cmd *cobra.Command, inputArgs []string) (*inpu
138128
}, nil
139129
}
140130

141-
func buildRequest(ctx context.Context, model *inputModel, apiClient loadBalancerClient) (loadbalancer.ApiUpdateCredentialsRequest, error) {
131+
func buildRequest(ctx context.Context, model *inputModel, apiClient loadbalancer.DefaultAPI) (loadbalancer.ApiUpdateCredentialsRequest, error) {
142132
req := apiClient.UpdateCredentials(ctx, model.ProjectId, model.Region, model.CredentialsRef)
143133

144134
currentCredentials, err := apiClient.GetCredentials(ctx, model.ProjectId, model.Region, model.CredentialsRef).Execute()

0 commit comments

Comments
 (0)