Skip to content

Commit bcd18cf

Browse files
authored
Merge pull request #253 from practo/golang-upgrade
Golang 1.17 updates
2 parents 2fce7ed + a0324c2 commit bcd18cf

File tree

92 files changed

+199
-2281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+199
-2281
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ BASEIMAGE ?= gcr.io/distroless/static
2525

2626
TAG := $(VERSION)
2727

28-
BUILD_IMAGE ?= golang:1.16.4-alpine
28+
BUILD_IMAGE ?= golang:1.17.1-alpine
2929

3030
# If you want to build all binaries, see the 'all-build' rule.
3131
# If you want to build all containers, see the 'all-container' rule.

cmd/redshiftsink/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ func main() {
7676
var batcherImage, loaderImage, secretRefName, secretRefNamespace string
7777
var kafkaVersion, metricsAddr, allowedRsks, prometheusURL, databases string
7878
var redshiftMaxOpenConns, redshiftMaxIdleConns int
79-
flag.StringVar(&batcherImage, "default-batcher-image", "practodev/redshiftbatcher:v1.0.0-beta.1", "image to use for the redshiftbatcher")
80-
flag.StringVar(&loaderImage, "default-loader-image", "practodev/redshiftloader:v1.0.0-beta.1", "image to use for the redshiftloader")
79+
flag.StringVar(&batcherImage, "default-batcher-image", "practodev/redshiftbatcher:v1.0.0-beta.4", "image to use for the redshiftbatcher")
80+
flag.StringVar(&loaderImage, "default-loader-image", "practodev/redshiftloader:v1.0.0-beta.4", "image to use for the redshiftloader")
8181
flag.StringVar(&secretRefName, "default-secret-ref-name", "redshiftsink-secret", "default secret name for all redshiftsink secret")
8282
flag.StringVar(&secretRefNamespace, "default-secret-ref-namespace", "ts-redshiftsink-latest", "default namespace where redshiftsink secret is there")
8383
flag.BoolVar(&collectRedshiftMetrics, "collect-redshift-metrics", false, "collectRedshiftMetrics when enabled collects redshift metrics for better calculations, used for calculating throttling seconds value at present for each table")

config/operator/redshiftsink_operator.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
secretName: redshiftsink-secret
3636
containers:
3737
- name: rsk-operator
38-
image: practodev/redshiftsink:v1.0.0-beta.1
38+
image: practodev/redshiftsink:v1.0.0-beta.4
3939
imagePullPolicy: Always
4040
volumeMounts:
4141
- name: redshiftsink-secret-volume
@@ -44,8 +44,8 @@ spec:
4444
- /redshiftsink
4545
args:
4646
- -v=2
47-
- --default-batcher-image=practodev/redshiftbatcher:v1.0.0-beta.1
48-
- --default-loader-image=practodev/redshiftloader:v1.0.0-beta.1
47+
- --default-batcher-image=practodev/redshiftbatcher:v1.0.0-beta.4
48+
- --default-loader-image=practodev/redshiftloader:v1.0.0-beta.4
4949
- --default-redshift-max-open-conns=10
5050
- --default-redshift-max-idle-conns=2
5151
- --allowed-rsks=

go.mod

+86-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/practo/tipoca-stream
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/Shopify/sarama v1.29.0
@@ -31,4 +31,89 @@ require (
3131
sigs.k8s.io/controller-runtime v0.7.0
3232
)
3333

34+
require (
35+
cloud.google.com/go v0.51.0 // indirect
36+
github.com/Microsoft/go-winio v0.4.16 // indirect
37+
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
38+
github.com/acomagu/bufpipe v1.0.3 // indirect
39+
github.com/beorn7/perks v1.0.1 // indirect
40+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
41+
github.com/davecgh/go-spew v1.1.1 // indirect
42+
github.com/eapache/go-resiliency v1.2.0 // indirect
43+
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect
44+
github.com/eapache/queue v1.1.0 // indirect
45+
github.com/emirpasic/gods v1.12.0 // indirect
46+
github.com/evanphx/json-patch v4.9.0+incompatible // indirect
47+
github.com/fsnotify/fsnotify v1.4.9 // indirect
48+
github.com/go-git/gcfg v1.5.0 // indirect
49+
github.com/go-git/go-billy/v5 v5.3.1 // indirect
50+
github.com/gogo/protobuf v1.3.1 // indirect
51+
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7 // indirect
52+
github.com/golang/protobuf v1.4.3 // indirect
53+
github.com/golang/snappy v0.0.1 // indirect
54+
github.com/google/go-cmp v0.5.4 // indirect
55+
github.com/google/gofuzz v1.1.0 // indirect
56+
github.com/googleapis/gnostic v0.5.1 // indirect
57+
github.com/gorilla/websocket v1.4.2 // indirect
58+
github.com/hashicorp/errwrap v1.0.0 // indirect
59+
github.com/hashicorp/go-uuid v1.0.2 // indirect
60+
github.com/hashicorp/golang-lru v0.5.4 // indirect
61+
github.com/hashicorp/hcl v1.0.0 // indirect
62+
github.com/imdario/mergo v0.3.12 // indirect
63+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
64+
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
65+
github.com/jcmturner/gofork v1.0.0 // indirect
66+
github.com/jmespath/go-jmespath v0.4.0 // indirect
67+
github.com/json-iterator/go v1.1.10 // indirect
68+
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
69+
github.com/klauspost/compress v1.11.0 // indirect
70+
github.com/magiconair/properties v1.8.1 // indirect
71+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
72+
github.com/mitchellh/go-homedir v1.1.0 // indirect
73+
github.com/mitchellh/mapstructure v1.1.2 // indirect
74+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
75+
github.com/modern-go/reflect2 v1.0.1 // indirect
76+
github.com/nxadm/tail v1.4.4 // indirect
77+
github.com/pelletier/go-toml v1.2.0 // indirect
78+
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
79+
github.com/pkg/errors v0.9.1 // indirect
80+
github.com/prometheus/client_model v0.2.0 // indirect
81+
github.com/prometheus/procfs v0.6.0 // indirect
82+
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
83+
github.com/sergi/go-diff v1.1.0 // indirect
84+
github.com/spf13/afero v1.2.2 // indirect
85+
github.com/spf13/cast v1.3.0 // indirect
86+
github.com/spf13/jwalterweatherman v1.0.0 // indirect
87+
github.com/subosito/gotenv v1.2.0 // indirect
88+
github.com/xanzy/ssh-agent v0.3.0 // indirect
89+
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect
90+
golang.org/x/net v0.0.0-20210326060303-6b1517762897 // indirect
91+
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6 // indirect
92+
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a // indirect
93+
golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79 // indirect
94+
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
95+
golang.org/x/text v0.3.3 // indirect
96+
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
97+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
98+
gomodules.xyz/jsonpatch/v2 v2.1.0 // indirect
99+
google.golang.org/appengine v1.6.6 // indirect
100+
google.golang.org/protobuf v1.24.0 // indirect
101+
gopkg.in/inf.v0 v0.9.1 // indirect
102+
gopkg.in/ini.v1 v1.51.0 // indirect
103+
gopkg.in/jcmturner/aescts.v1 v1.0.1 // indirect
104+
gopkg.in/jcmturner/dnsutils.v1 v1.0.1 // indirect
105+
gopkg.in/jcmturner/gokrb5.v7 v7.5.0 // indirect
106+
gopkg.in/jcmturner/rpc.v1 v1.1.0 // indirect
107+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
108+
gopkg.in/warnings.v0 v0.1.2 // indirect
109+
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
110+
k8s.io/apiextensions-apiserver v0.19.2 // indirect
111+
k8s.io/component-base v0.19.2 // indirect
112+
k8s.io/klog/v2 v2.2.0 // indirect
113+
k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6 // indirect
114+
k8s.io/utils v0.0.0-20200912215256-4140de9c8800 // indirect
115+
sigs.k8s.io/structured-merge-diff/v4 v4.0.1 // indirect
116+
sigs.k8s.io/yaml v1.2.0 // indirect
117+
)
118+
34119
replace github.com/Shopify/sarama => github.com/alok87/sarama v1.27.2-fix1897

vendor/github.com/Microsoft/go-winio/go.mod

-9
This file was deleted.

vendor/github.com/Microsoft/go-winio/go.sum

-16
This file was deleted.

vendor/github.com/Shopify/sarama/go.mod

-35
This file was deleted.

vendor/github.com/Shopify/sarama/go.sum

-87
This file was deleted.

vendor/github.com/acomagu/bufpipe/go.mod

-5
This file was deleted.

vendor/github.com/acomagu/bufpipe/go.sum

-2
This file was deleted.

vendor/github.com/cespare/xxhash/v2/go.mod

-3
This file was deleted.

vendor/github.com/cespare/xxhash/v2/go.sum

Whitespace-only changes.

vendor/github.com/fsnotify/fsnotify/go.mod

-5
This file was deleted.

vendor/github.com/fsnotify/fsnotify/go.sum

-2
This file was deleted.

vendor/github.com/go-git/go-billy/v5/go.mod

-10
This file was deleted.

0 commit comments

Comments
 (0)