Skip to content

Commit 1893901

Browse files
authored
chore: update runtime to provided.al2 for Kubeapply webhook
chore: update runtime to provided.al2 for Kubeapply webhook
2 parents 8173d01 + f10f98c commit 1893901

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

Dockerfile.lambda

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Fetch or build all required binaries
2-
FROM golang:1.19 as builder
2+
FROM --platform=linux/amd64 golang:1.20 as builder
33

44
ARG VERSION_REF
55
RUN test -n "${VERSION_REF}"
@@ -42,6 +42,6 @@ COPY --from=builder \
4242
/usr/local/bin/kubeapply \
4343
/usr/local/bin/
4444

45-
COPY --from=builder /usr/local/bin/kubeapply-lambda /var/task/kubeapply-lambda
45+
COPY --from=builder /usr/local/bin/kubeapply-lambda /kubeapply-lambda
4646

47-
CMD [ "kubeapply-lambda" ]
47+
ENTRYPOINT ["/kubeapply-lambda"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ install: data
2121
# Lambda and server-related targets
2222
.PHONY: kubeapply-lambda
2323
kubeapply-lambda: data
24-
GOOS=linux GOARCH=amd64 go build -o build/kubeapply-lambda $(LDFLAGS) ./cmd/kubeapply-lambda
24+
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -tags lambda.norpc -o build/kubeapply-lambda $(LDFLAGS) ./cmd/kubeapply-lambda
2525

2626
.PHONY: kubeapply-lambda-kubeapply
2727
kubeapply-lambda-kubeapply: data

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module github.com/segmentio/kubeapply
22

3-
go 1.18
3+
go 1.20
44

55
require (
66
github.com/Masterminds/semver/v3 v3.1.1
77
github.com/Masterminds/sprig/v3 v3.2.1
8-
github.com/aws/aws-lambda-go v1.15.0
8+
github.com/aws/aws-lambda-go v1.41.0
99
github.com/aws/aws-sdk-go v1.29.16
1010
github.com/briandowns/spinner v1.11.1
1111
github.com/fatih/color v1.7.0
@@ -24,7 +24,7 @@ require (
2424
github.com/segmentio/stats/v4 v4.5.3
2525
github.com/sirupsen/logrus v1.6.0
2626
github.com/spf13/cobra v1.1.1
27-
github.com/stretchr/testify v1.6.1
27+
github.com/stretchr/testify v1.7.2
2828
github.com/stripe/skycfg v0.0.0-20200303020846-4f599970a3e6
2929
github.com/x-cray/logrus-prefixed-formatter v0.5.2
3030
github.com/yannh/kubeconform v0.4.6
@@ -101,7 +101,7 @@ require (
101101
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
102102
gopkg.in/validator.v2 v2.0.0-20180514200540-135c24b11c19 // indirect
103103
gopkg.in/warnings.v0 v0.1.2 // indirect
104-
gopkg.in/yaml.v3 v3.0.0-20200601152816-913338de1bd2 // indirect
104+
gopkg.in/yaml.v3 v3.0.1 // indirect
105105
k8s.io/utils v0.0.0-20211116205334-6203023598ed // indirect
106106
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
107107
sigs.k8s.io/yaml v1.2.0 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6l
7474
github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
7575
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
7676
github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU=
77-
github.com/aws/aws-lambda-go v1.15.0 h1:QAhRWvXttl8TtBsODN+NzZETkci2mdN/paJ0+1hX/so=
78-
github.com/aws/aws-lambda-go v1.15.0/go.mod h1:FEwgPLE6+8wcGBTe5cJN3JWurd1Ztm9zN4jsXsjzKKw=
77+
github.com/aws/aws-lambda-go v1.41.0 h1:l/5fyVb6Ud9uYd411xdHZzSf2n86TakxzpvIoz7l+3Y=
78+
github.com/aws/aws-lambda-go v1.41.0/go.mod h1:jwFe2KmMsHmffA1X2R09hH6lFzJQxzI8qK17ewzbQMM=
7979
github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
8080
github.com/aws/aws-sdk-go v1.29.16 h1:Gbtod7Y4W/Ai7wPtesdvgGVTkFN8JxAaGouRLlcQfQs=
8181
github.com/aws/aws-sdk-go v1.29.16/go.mod h1:1KvfttTE3SPKMpo8g2c6jL3ZKfXtFvKscTgahTma5Xg=
@@ -592,8 +592,9 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
592592
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
593593
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
594594
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
595-
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
596595
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
596+
github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s=
597+
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
597598
github.com/stripe/skycfg v0.0.0-20200303020846-4f599970a3e6 h1:Nr78kwzRyXZaimz7tFFlJcc5mO2rMecmP/eiCPHDeqE=
598599
github.com/stripe/skycfg v0.0.0-20200303020846-4f599970a3e6/go.mod h1:51M7cjklIBDknKJUVGuR9AnTpfk8IZQJDhxr1Yq7bb0=
599600
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
@@ -603,7 +604,6 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1
603604
github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
604605
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
605606
github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
606-
github.com/urfave/cli/v2 v2.1.1/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ=
607607
github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw=
608608
github.com/x-cray/logrus-prefixed-formatter v0.5.2 h1:00txxvfBM9muc0jiLIEAkAcIMJzfthRT6usrui8uGmg=
609609
github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE=
@@ -966,8 +966,8 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
966966
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
967967
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
968968
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
969-
gopkg.in/yaml.v3 v3.0.0-20200601152816-913338de1bd2 h1:VEmvx0P+GVTgkNu2EdTN988YCZPcD3lo9AoczZpucwc=
970-
gopkg.in/yaml.v3 v3.0.0-20200601152816-913338de1bd2/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
969+
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
970+
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
971971
gopkg.in/zorkian/go-datadog-api.v2 v2.28.0 h1:q6cVJBRUh/Bkv6xl2EcaeiuuwM68P2bZwj7Q7N+uRpQ=
972972
gopkg.in/zorkian/go-datadog-api.v2 v2.28.0/go.mod h1:kx0CSMRpzEZfx/nFH62GLU4stZjparh/BRpM89t4XCQ=
973973
gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk=

0 commit comments

Comments
 (0)