Skip to content

Commit 0c5dbc6

Browse files
authored
Migrate Ingress API version from extensions/v1beta1 to networking.k8s.io/v1 (#14)
* Upgrade go version to 1.19 * Migrating to Go modules * Use buffered channel go vet ./main.go:142:2: misuse of unbuffered os.Signal channel as argument to signal.Notify ./main.go:143:2: misuse of unbuffered os.Signal channel as argument to signal.Notify * Use go install * Update k8s.io/client-go to v0.23.10 * Use NetworkingV1().Ingresses()
1 parent 1bd02b1 commit 0c5dbc6

File tree

11 files changed

+752
-704
lines changed

11 files changed

+752
-704
lines changed

.circleci/config.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,17 @@ defaults: &defaults
66
golang: &golang
77
<<: *defaults
88
docker:
9-
- image: golang:1.12
9+
- image: golang:1.19
1010

1111
jobs:
1212
build:
1313
<<: *golang
1414
steps:
1515
- checkout
16-
- restore_cache:
17-
keys:
18-
- vendor-{{ checksum "Gopkg.lock" }}
19-
- run:
20-
name: Install dpendency tool
21-
command: |
22-
go get -u github.com/golang/dep/cmd/dep
2316
- run:
2417
name: Install dependencies
2518
command: |
26-
make dep
27-
- save_cache:
28-
key: vendor-{{ checksum "Gopkg.lock" }}
29-
paths:
30-
- /go/src/github.com/mercari/certificate-expiry-monitor-controller/vendor
31-
- persist_to_workspace:
32-
root: /go/src/github.com/mercari/certificate-expiry-monitor-controller
33-
paths:
34-
- "vendor/*"
19+
go mod download
3520
- run:
3621
name: Check compilation
3722
command: |
@@ -45,7 +30,7 @@ jobs:
4530
- run:
4631
name: Install dpendency tool
4732
command: |
48-
go get -u golang.org/x/lint/golint
33+
go install golang.org/x/lint/golint
4934
- run:
5035
name: Run go vet
5136
command: |

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
FROM golang:1.12
1+
FROM golang:1.19
22

33
WORKDIR /go/src/github.com/mercari/certificate-expiry-monitor-controller
44

5-
RUN go get github.com/golang/dep/cmd/dep
6-
COPY Gopkg.toml Gopkg.lock ./
7-
RUN dep ensure -v -vendor-only
5+
COPY go.mod go.sum ./
6+
RUN go mod download
87

98
COPY . ./
109

@@ -17,4 +16,4 @@ FROM alpine:latest
1716
RUN apk --no-cache add ca-certificates
1817
COPY --from=0 /go/bin/certificate-expiry-monitor-controller /bin/certificate-expiry-monitor-controller
1918

20-
CMD ["/bin/certificate-expiry-monitor-controller"]
19+
CMD ["/bin/certificate-expiry-monitor-controller"]

0 commit comments

Comments
 (0)