upgrade go 1.21.5 (#10732)
* upgrade go 1.21.5 Signed-off-by: James Strong <strong.james.e@gmail.com> * update golang gha Signed-off-by: James Strong <strong.james.e@gmail.com> * supgrade golang lint ci to v1.55.2 * sfix all golang lint ci errors * sget a nginx build as well * srevert some e2e changes * srevert some e2e changes --------- Signed-off-by: James Strong <strong.james.e@gmail.com>
This commit is contained in:
parent
b6126b0c9e
commit
0ff37098b0
26 changed files with 41 additions and 29 deletions
16
.github/workflows/ci.yaml
vendored
16
.github/workflows/ci.yaml
vendored
|
@ -73,9 +73,9 @@ jobs:
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
id: go
|
id: go
|
||||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||||
with:
|
with:
|
||||||
go-version: '1.21.3'
|
go-version: '1.21.5'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Run test
|
- name: Run test
|
||||||
|
@ -94,9 +94,9 @@ jobs:
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
id: go
|
id: go
|
||||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||||
with:
|
with:
|
||||||
go-version: '1.21.3'
|
go-version: '1.21.5'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
@ -158,9 +158,9 @@ jobs:
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||||
with:
|
with:
|
||||||
go-version: '1.21.3'
|
go-version: '1.21.5'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Install Helm Unit Test Plugin
|
- name: Install Helm Unit Test Plugin
|
||||||
|
@ -508,9 +508,9 @@ jobs:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
id: go
|
id: go
|
||||||
if: ${{ steps.filter-images.outputs.kube-webhook-certgen == 'true' }}
|
if: ${{ steps.filter-images.outputs.kube-webhook-certgen == 'true' }}
|
||||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||||
with:
|
with:
|
||||||
go-version: '1.21.3'
|
go-version: '1.21.5'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: kube-webhook-certgen image build
|
- name: kube-webhook-certgen image build
|
||||||
|
|
6
.github/workflows/golangci-lint.yml
vendored
6
.github/workflows/golangci-lint.yml
vendored
|
@ -23,12 +23,12 @@ jobs:
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
id: go
|
id: go
|
||||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||||
with:
|
with:
|
||||||
go-version: '1.21.3'
|
go-version: '1.21.5'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
|
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
|
||||||
with:
|
with:
|
||||||
version: v1.53
|
version: v1.55.2
|
||||||
|
|
4
.github/workflows/plugin.yaml
vendored
4
.github/workflows/plugin.yaml
vendored
|
@ -20,9 +20,9 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||||
with:
|
with:
|
||||||
go-version: '1.21.3'
|
go-version: '1.21.5'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,6 +1,6 @@
|
||||||
module k8s.io/ingress-nginx
|
module k8s.io/ingress-nginx
|
||||||
|
|
||||||
go 1.21.3
|
go 1.21.5
|
||||||
|
|
||||||
require (
|
require (
|
||||||
dario.cat/mergo v1.0.0
|
dario.cat/mergo v1.0.0
|
||||||
|
|
2
go.work
2
go.work
|
@ -1,4 +1,4 @@
|
||||||
go 1.21.3
|
go 1.21.5
|
||||||
|
|
||||||
use (
|
use (
|
||||||
.
|
.
|
||||||
|
|
|
@ -197,6 +197,7 @@ github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8/go.mod h1:mC1jAcs
|
||||||
github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE=
|
github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE=
|
||||||
github.com/moby/term v0.0.0-20221205130635-1aeaba878587/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y=
|
github.com/moby/term v0.0.0-20221205130635-1aeaba878587/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y=
|
||||||
github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ=
|
github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ=
|
||||||
|
github.com/mrunalp/fileutils v0.5.1/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ=
|
||||||
github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU=
|
github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU=
|
||||||
github.com/onsi/ginkgo/v2 v2.9.1/go.mod h1:FEcmzVcCHl+4o9bQZVab+4dC9+j+91t2FHSzmGAPfuo=
|
github.com/onsi/ginkgo/v2 v2.9.1/go.mod h1:FEcmzVcCHl+4o9bQZVab+4dC9+j+91t2FHSzmGAPfuo=
|
||||||
github.com/onsi/ginkgo/v2 v2.9.4/go.mod h1:gCQYp2Q+kSoIj7ykSVb9nskRSsR6PUj4AiLywzIhbKM=
|
github.com/onsi/ginkgo/v2 v2.9.4/go.mod h1:gCQYp2Q+kSoIj7ykSVb9nskRSsR6PUj4AiLywzIhbKM=
|
||||||
|
@ -255,6 +256,7 @@ golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA=
|
||||||
golang.org/x/net v0.13.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA=
|
golang.org/x/net v0.13.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA=
|
||||||
golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI=
|
golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI=
|
||||||
golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
|
golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
|
||||||
|
golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
|
||||||
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc=
|
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc=
|
||||||
golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE=
|
golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE=
|
||||||
golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI=
|
golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI=
|
||||||
|
@ -267,11 +269,13 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc
|
||||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||||
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
||||||
golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
|
golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM golang:1.21.3-alpine3.18 as builder
|
FROM golang:1.21.5-alpine3.18 as builder
|
||||||
|
|
||||||
RUN apk update \
|
RUN apk update \
|
||||||
&& apk upgrade && apk add git
|
&& apk upgrade && apk add git
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module k8s.io/ingress-nginx/custom-error-pages
|
module k8s.io/ingress-nginx/custom-error-pages
|
||||||
|
|
||||||
go 1.21.3
|
go 1.21.5
|
||||||
|
|
||||||
require github.com/prometheus/client_golang v1.11.1
|
require github.com/prometheus/client_golang v1.11.1
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.21.3-alpine3.18 as builder
|
FROM golang:1.21.5-alpine3.18 as builder
|
||||||
RUN mkdir /authsvc
|
RUN mkdir /authsvc
|
||||||
WORKDIR /authsvc
|
WORKDIR /authsvc
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module example.com/authsvc
|
module example.com/authsvc
|
||||||
|
|
||||||
go 1.21.3
|
go 1.21.5
|
||||||
|
|
||||||
require k8s.io/apimachinery v0.23.1
|
require k8s.io/apimachinery v0.23.1
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM golang:1.21.3-alpine3.18 as builder
|
FROM golang:1.21.5-alpine3.18 as builder
|
||||||
|
|
||||||
WORKDIR /go/src/k8s.io/ingress-nginx/images/fastcgi
|
WORKDIR /go/src/k8s.io/ingress-nginx/images/fastcgi
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.21.3-alpine3.18 as build
|
FROM golang:1.21.5-alpine3.18 as build
|
||||||
|
|
||||||
WORKDIR /go/src/greeter-server
|
WORKDIR /go/src/greeter-server
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM golang:1.21.3 AS builder
|
FROM golang:1.21.5 AS builder
|
||||||
|
|
||||||
ENV LC_ALL=C.UTF-8
|
ENV LC_ALL=C.UTF-8
|
||||||
ENV LANG=C.UTF-8
|
ENV LANG=C.UTF-8
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM golang:1.21.3 as builder
|
FROM --platform=$BUILDPLATFORM golang:1.21.5 as builder
|
||||||
ARG BUILDPLATFORM
|
ARG BUILDPLATFORM
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/jet/kube-webhook-certgen
|
module github.com/jet/kube-webhook-certgen
|
||||||
|
|
||||||
go 1.21.3
|
go 1.21.5
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/onrik/logrus v0.9.0
|
github.com/onrik/logrus v0.9.0
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.0.2
|
0.0.3
|
|
@ -1,3 +1,3 @@
|
||||||
module init-otel
|
module init-otel
|
||||||
|
|
||||||
go 1.21.3
|
go 1.21.5
|
||||||
|
|
|
@ -43,7 +43,7 @@ image:
|
||||||
--pull \
|
--pull \
|
||||||
--push \
|
--push \
|
||||||
--build-arg BASE_IMAGE=${NGINX_BASE_IMAGE} \
|
--build-arg BASE_IMAGE=${NGINX_BASE_IMAGE} \
|
||||||
--build-arg GOLANG_VERSION=1.21.3 \
|
--build-arg GOLANG_VERSION=1.21.5 \
|
||||||
--build-arg ETCD_VERSION=3.4.3-0 \
|
--build-arg ETCD_VERSION=3.4.3-0 \
|
||||||
--build-arg K8S_RELEASE=v1.26.0 \
|
--build-arg K8S_RELEASE=v1.26.0 \
|
||||||
--build-arg RESTY_CLI_VERSION=0.27 \
|
--build-arg RESTY_CLI_VERSION=0.27 \
|
||||||
|
@ -64,7 +64,7 @@ build: ensure-buildx
|
||||||
--progress=${PROGRESS} \
|
--progress=${PROGRESS} \
|
||||||
--pull \
|
--pull \
|
||||||
--build-arg BASE_IMAGE=${NGINX_BASE_IMAGE} \
|
--build-arg BASE_IMAGE=${NGINX_BASE_IMAGE} \
|
||||||
--build-arg GOLANG_VERSION=1.21.3 \
|
--build-arg GOLANG_VERSION=1.21.5 \
|
||||||
--build-arg ETCD_VERSION=3.4.3-0 \
|
--build-arg ETCD_VERSION=3.4.3-0 \
|
||||||
--build-arg K8S_RELEASE=v1.26.0 \
|
--build-arg K8S_RELEASE=v1.26.0 \
|
||||||
--build-arg RESTY_CLI_VERSION=0.27 \
|
--build-arg RESTY_CLI_VERSION=0.27 \
|
||||||
|
|
|
@ -125,6 +125,7 @@ func TestSSLPassthrough(t *testing.T) {
|
||||||
ec := NewAnnotationExtractor(mockCfg{})
|
ec := NewAnnotationExtractor(mockCfg{})
|
||||||
ing := buildIngress()
|
ing := buildIngress()
|
||||||
|
|
||||||
|
//nolint:goconst //already a constant
|
||||||
fooAnns := []struct {
|
fooAnns := []struct {
|
||||||
annotations map[string]string
|
annotations map[string]string
|
||||||
er bool
|
er bool
|
||||||
|
|
|
@ -49,6 +49,8 @@ var (
|
||||||
|
|
||||||
// IsValidRegex checks if the tested string can be used as a regex, but without any weird character.
|
// IsValidRegex checks if the tested string can be used as a regex, but without any weird character.
|
||||||
// It includes regex characters for paths that may contain regexes
|
// It includes regex characters for paths that may contain regexes
|
||||||
|
//
|
||||||
|
//nolint:goconst //already a constant
|
||||||
var IsValidRegex = regexp.MustCompile("^[/" + alphaNumericChars + regexEnabledChars + "]*$")
|
var IsValidRegex = regexp.MustCompile("^[/" + alphaNumericChars + regexEnabledChars + "]*$")
|
||||||
|
|
||||||
// SizeRegex validates sizes understood by NGINX, like 1000, 100k, 1000M
|
// SizeRegex validates sizes understood by NGINX, like 1000, 100k, 1000M
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module k8s.io/ingress-nginx/magefiles
|
module k8s.io/ingress-nginx/magefiles
|
||||||
|
|
||||||
go 1.21.3
|
go 1.21.5
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/blang/semver/v4 v4.0.0
|
github.com/blang/semver/v4 v4.0.0
|
||||||
|
|
|
@ -425,6 +425,7 @@ http {
|
||||||
f.EnsureIngress(ing2)
|
f.EnsureIngress(ing2)
|
||||||
|
|
||||||
f.WaitForNginxServer(host, func(server string) bool {
|
f.WaitForNginxServer(host, func(server string) bool {
|
||||||
|
//nolint:goconst //server_name is a constant
|
||||||
return strings.Contains(server, "server_name "+host)
|
return strings.Contains(server, "server_name "+host)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -103,6 +103,7 @@ var _ = framework.DescribeAnnotation("backend-protocol - GRPC", func() {
|
||||||
return strings.Contains(server, "grpc_pass grpc://upstream_balancer;")
|
return strings.Contains(server, "grpc_pass grpc://upstream_balancer;")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
//nolint:goconst //string interpolation
|
||||||
conn, err := grpc.Dial(f.GetNginxIP()+":443",
|
conn, err := grpc.Dial(f.GetNginxIP()+":443",
|
||||||
grpc.WithTransportCredentials(
|
grpc.WithTransportCredentials(
|
||||||
credentials.NewTLS(&tls.Config{
|
credentials.NewTLS(&tls.Config{
|
||||||
|
|
|
@ -234,6 +234,7 @@ func (r *HTTPResponse) checkContentType(expectedType string, expectedCharset ...
|
||||||
}
|
}
|
||||||
|
|
||||||
if mediaType != expectedType {
|
if mediaType != expectedType {
|
||||||
|
//nolint:goconst //string interpolation
|
||||||
r.chain.fail("\nexpected \"Content-Type\" header with %q media type,"+
|
r.chain.fail("\nexpected \"Content-Type\" header with %q media type,"+
|
||||||
"\nbut got %q", expectedType, mediaType)
|
"\nbut got %q", expectedType, mediaType)
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -44,6 +44,7 @@ var _ = framework.IngressNginxDescribe("[Flag] disable-sync-events", func() {
|
||||||
return strings.Contains(server, fmt.Sprintf("server_name %v", host))
|
return strings.Contains(server, fmt.Sprintf("server_name %v", host))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
//nolint:goconst //string interpolation
|
||||||
events, err := f.KubeClientSet.CoreV1().Events(ing.Namespace).List(context.TODO(), metav1.ListOptions{FieldSelector: "reason=Sync,involvedObject.name=" + host})
|
events, err := f.KubeClientSet.CoreV1().Events(ing.Namespace).List(context.TODO(), metav1.ListOptions{FieldSelector: "reason=Sync,involvedObject.name=" + host})
|
||||||
assert.Nil(ginkgo.GinkgoT(), err, "listing events")
|
assert.Nil(ginkgo.GinkgoT(), err, "listing events")
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ var _ = framework.DescribeSetting("enable-real-ip", func() {
|
||||||
|
|
||||||
f.WaitForNginxServer(host,
|
f.WaitForNginxServer(host,
|
||||||
func(server string) bool {
|
func(server string) bool {
|
||||||
|
//nolint:goconst //already a const
|
||||||
return strings.Contains(server, "server_name "+host) &&
|
return strings.Contains(server, "server_name "+host) &&
|
||||||
!strings.Contains(server, "proxy_set_header X-Forwarded-Proto $full_x_forwarded_proto;")
|
!strings.Contains(server, "proxy_set_header X-Forwarded-Proto $full_x_forwarded_proto;")
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue