Skip to content

Commit 111ddc4

Browse files
authored
Update to go-1.23 and fix new linter warnings (#105)
* Update to go-1.23 and fix new linter warnings * More docs
1 parent 002061c commit 111ddc4

File tree

14 files changed

+283
-209
lines changed

14 files changed

+283
-209
lines changed

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
make server
5656
5757
- name: Build and push image
58-
uses: docker/build-push-action@v5
58+
uses: docker/build-push-action@v6
5959
with:
6060
context: .
6161
push: true

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM alpine:3.20 as health-downloader
2-
ENV GRPC_HEALTH_PROBE_VERSION=v0.4.26 \
2+
ENV GRPC_HEALTH_PROBE_VERSION=v0.4.28 \
33
GRPC_HEALTH_PROBE_URL=https://github.com/grpc-ecosystem/grpc-health-probe/releases/download
44
RUN apk -U add curl \
55
&& curl -fLso /bin/grpc_health_probe \

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ This Microservice provides the source of truth for master data.
1313
* tenant project
1414
* settings
1515
* limit max clusters
16+
* tenant members
17+
* tenant project members
1618

1719
## Design
1820

api/rest/mapper/mapper_test.go

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77

88
"github.com/google/go-cmp/cmp"
99
v1 "github.com/metal-stack/masterdata-api/api/rest/v1"
10+
"github.com/metal-stack/metal-lib/pkg/pointer"
1011
)
1112

1213
func TestTenantMapperRoundtrip(t *testing.T) {
@@ -36,30 +37,30 @@ func TestTenantMapperRoundtrip(t *testing.T) {
3637
Description: "tnt is a test tenant",
3738
DefaultQuotas: &v1.QuotaSet{
3839
Cluster: &v1.Quota{
39-
Quota: int32p(100),
40+
Quota: pointer.Pointer(int32(100)),
4041
},
4142
Machine: &v1.Quota{
42-
Quota: int32p(10),
43+
Quota: pointer.Pointer(int32(10)),
4344
},
4445
Ip: &v1.Quota{
45-
Quota: int32p(20),
46+
Quota: pointer.Pointer(int32(20)),
4647
},
4748
Project: &v1.Quota{
48-
Quota: int32p(11),
49+
Quota: pointer.Pointer(int32(11)),
4950
},
5051
},
5152
Quotas: &v1.QuotaSet{
5253
Cluster: &v1.Quota{
53-
Quota: int32p(100),
54+
Quota: pointer.Pointer(int32(100)),
5455
},
5556
Machine: &v1.Quota{
56-
Quota: int32p(72),
57+
Quota: pointer.Pointer(int32(72)),
5758
},
5859
Ip: &v1.Quota{
59-
Quota: int32p(30),
60+
Quota: pointer.Pointer(int32(30)),
6061
},
6162
Project: &v1.Quota{
62-
Quota: int32p(7),
63+
Quota: pointer.Pointer(int32(7)),
6364
},
6465
},
6566
IAMConfig: &v1.IAMConfig{
@@ -137,11 +138,6 @@ func TestTenantMapperRoundtrip(t *testing.T) {
137138
}
138139
}
139140

140-
func int32p(i int) *int32 {
141-
i32 := int32(i)
142-
return &i32
143-
}
144-
145141
func mustParseTimeP(ts string) *time.Time {
146142
t, err := time.Parse("2006-01-02", ts)
147143
if err != nil {

api/v1/project_grpc.pb.go

Lines changed: 30 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1/project_member_grpc.pb.go

Lines changed: 28 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)