From f4781f4716d6d6a8781140ed2af68a17b297d4f3 Mon Sep 17 00:00:00 2001 From: Nanda Kishore Date: Fri, 28 Jan 2022 14:56:15 +0530 Subject: [PATCH] Go deps update and fresh release --- Dockerfile | 3 +-- charts/hello-universe/templates/_helpers.tpl | 10 ++++++++++ charts/hello-universe/templates/deployment.yaml | 1 + charts/hello-universe/values-default.yaml | 4 +++- generate-binaries.sh | 2 +- go.mod | 8 ++++---- go.sum | 17 +++++++++-------- version.go | 2 +- 8 files changed, 30 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9ddfb4e..2e749e1 100755 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,7 @@ ENV USER=appuser \ UID=10001 \ GO111MODULE=on \ CGO_ENABLED=0 \ - GOOS=linux \ - GOARCH=amd64 + GOOS=linux RUN adduser \ --disabled-password \ --gecos "" \ diff --git a/charts/hello-universe/templates/_helpers.tpl b/charts/hello-universe/templates/_helpers.tpl index 02315aa..ec34959 100644 --- a/charts/hello-universe/templates/_helpers.tpl +++ b/charts/hello-universe/templates/_helpers.tpl @@ -31,3 +31,13 @@ port: {{ $probeInfo.tcpSocket.port }} {{- end }} {{- end }} + +{{/* +Renders nodeSelector block in the manifests +*/}} +{{- define "app.nodeLabels" }} +{{- if . }} +nodeSelector: + {{ toYaml . }} +{{- end -}} +{{- end -}} diff --git a/charts/hello-universe/templates/deployment.yaml b/charts/hello-universe/templates/deployment.yaml index df6718f..342e63a 100644 --- a/charts/hello-universe/templates/deployment.yaml +++ b/charts/hello-universe/templates/deployment.yaml @@ -81,5 +81,6 @@ spec: {{ if $currentDeployment.terminationGracePeriodSeconds -}} terminationGracePeriodSeconds: {{ $currentDeployment.terminationGracePeriodSeconds }} {{ end }} + {{- include "app.nodeLabels" $values.nodeLabels | trim | nindent 6 }} --- {{ end }} diff --git a/charts/hello-universe/values-default.yaml b/charts/hello-universe/values-default.yaml index 0ee4b36..850d0cc 100755 --- a/charts/hello-universe/values-default.yaml +++ b/charts/hello-universe/values-default.yaml @@ -14,7 +14,7 @@ deployments: externalNodePort: 32760 servicePortName: httpport imageName: nanda/hello-universe - imageTag: v1.3.3 + imageTag: v1.3.8 configMapName: config-plain configFileName: config-file secretName: secrets-plain @@ -59,3 +59,5 @@ deployments: maxUnavailable: "20%" replicas: 1 # If hpa is defined, defining replicas count here is incorrect. Let hpa totally manage the replicas. # terminationGracePeriodSeconds: 60 +# nodeLabels: +# environment: worker diff --git a/generate-binaries.sh b/generate-binaries.sh index 39f219d..17b4ac0 100755 --- a/generate-binaries.sh +++ b/generate-binaries.sh @@ -5,7 +5,7 @@ set -x -eou pipefail # go test -cover echo "Proceeding with generating the binaries..." -platforms=("linux/amd64" "darwin/amd64") +platforms=("linux/arm64" "linux/amd64" "darwin/amd64") VERSION=`grep -E "MAJOR|MINOR|PATCH" version.go | cut -d '"' -f 2 | xargs echo -n | tr -s " " "."` for platform in "${platforms[@]}" diff --git a/go.mod b/go.mod index 9d4aeb8..9965fcf 100644 --- a/go.mod +++ b/go.mod @@ -4,18 +4,18 @@ go 1.17 require ( github.com/newrelic/go-agent/v3 v3.15.2 + github.com/newrelic/go-agent/v3/integrations/nrlogrus v1.0.1 github.com/sirupsen/logrus v1.8.1 github.com/spf13/pflag v1.0.5 ) require ( github.com/golang/protobuf v1.5.2 // indirect - github.com/newrelic/go-agent/v3/integrations/nrlogrus v1.0.1 // indirect - golang.org/x/net v0.0.0-20220114011407-0dd24b26b47d // indirect + golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect golang.org/x/text v0.3.7 // indirect - google.golang.org/genproto v0.0.0-20220118154757-00ab72f36ad5 // indirect - google.golang.org/grpc v1.43.0 // indirect + google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350 // indirect + google.golang.org/grpc v1.44.0 // indirect google.golang.org/protobuf v1.27.1 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/go.sum b/go.sum index 93793d5..0e5c2e1 100644 --- a/go.sum +++ b/go.sum @@ -87,8 +87,8 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20220114011407-0dd24b26b47d h1:1n1fc535VhN8SYtD4cDUyNlfpAF2ROMM9+11equK3hs= -golang.org/x/net v0.0.0-20220114011407-0dd24b26b47d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -103,15 +103,16 @@ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 h1:XfKQ4OlFl8okEOr5UvAqFRVj8pY/4yfcXrddB8qAbU0= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -128,8 +129,8 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20220118154757-00ab72f36ad5 h1:zzNejm+EgrbLfDZ6lu9Uud2IVvHySPl8vQzf04laR5Q= -google.golang.org/genproto v0.0.0-20220118154757-00ab72f36ad5/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350 h1:YxHp5zqIcAShDEvRr5/0rVESVS+njYF68PSdazrNLJo= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= @@ -137,8 +138,8 @@ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.43.0 h1:Eeu7bZtDZ2DpRCsLhUlcrLnvYaMK1Gz86a+hMVvELmM= -google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.44.0 h1:weqSxi/TMs1SqFRMHCtBgXRs8k3X39QIDEZ0pRcttUg= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= diff --git a/version.go b/version.go index d616b29..e740836 100644 --- a/version.go +++ b/version.go @@ -5,5 +5,5 @@ package main var VERSION = [...]string{ "1", // MAJOR, "3", // MINOR, - "7", // PATCH, + "8", // PATCH, }