Skip to content

Commit 7481568

Browse files
authored
Merge branch 'master' into release-2.0
2 parents 98d94b0 + fad2624 commit 7481568

23 files changed

+173
-125
lines changed

.github/actions/smoke-tests/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ runs:
6666
kind create cluster --name ${{ github.run_id }} --image=kindest/node:v${{ inputs.k8s-version }} --config ${{ github.workspace }}/tests/ci-files/ci-kind-config.yaml --kubeconfig kube-${{ github.run_id }} --wait ${{ inputs.k8s-timeout }}
6767
kind load docker-image docker.io/nginx/nginx-ingress:${{ inputs.image }}-${{ github.sha }} --name ${{ github.run_id }}
6868
echo ::set-output name=cluster_ip::$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${{ github.run_id }}-control-plane)
69-
echo ::set-output name=cluster::$(echo 'nginx-${{ inputs.image }}-${{ inputs.marker }}')
69+
echo ::set-output name=cluster::$(echo 'nginx-${{ inputs.image }}-${{ inputs.marker != '""' && inputs.marker || inputs.k8s-version }}')
7070
shell: bash
7171

7272
- name: Setup Kubeconfig

.github/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ autolabeler:
6767
filter-by-commitish: true
6868
commitish: master
6969
template: |
70-
*Help make the NGINX Ingress Controller better by participating in our [survey](https://forms.office.com/Pages/ResponsePage.aspx?id=L_093Ttq0UCb4L-DJ9gcUM6Dh1A0cORCorfgZAMdkwJUREhJUFAyM1ZHRzZLSzQyMUlCNFhXVkZENy4u)!*
70+
*Help make the NGINX Ingress Controller better by participating in our [survey](https://forms.office.com/Pages/ResponsePage.aspx?id=L_093Ttq0UCb4L-DJ9gcUKLQ7uTJaE1PitM_37KR881UMEs0Rk5PMkYzMTJTWVA0V1hUVTRLUUMyNS4u)!*
7171
7272
## New in NGINX Ingress Controller v$RESOLVED_VERSION
7373

.github/workflows/autoupdate-pr.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
name: Auto-update
22
on:
3-
push:
4-
branches:
5-
- master
3+
workflow_run:
4+
branches: master
5+
workflows:
6+
- "Continuous Integration"
7+
types:
8+
- completed
69

710
jobs:
811
autoupdate:
912
name: Auto-update PRs
1013
runs-on: ubuntu-20.04
14+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1115
steps:
1216
- uses: docker://chinthakagodawita/autoupdate-action:v1
1317
env:

.github/workflows/issues.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
run: |
1515
text="\n\n I\'ve parsed the text of your issue and it looks like you might be mixing up the two Ingress Controllers, please take a look at this [page](https://docs.nginx.com/nginx-ingress-controller/intro/nginx-ingress-controllers) to see the differences between \`nginxinc/kubernetes-ingress\` (this repo) and \`kubernetes/ingress-nginx\`."
1616
echo "::set-output name=text::$text"
17-
- uses: actions/github-script@v4
17+
- uses: actions/github-script@v5
1818
with:
1919
github-token: ${{secrets.GITHUB_TOKEN}}
2020
script: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[![Continuous Integration](https://github.com/nginxinc/kubernetes-ingress/actions/workflows/ci.yml/badge.svg)](https://github.com/nginxinc/kubernetes-ingress/actions/workflows/ci.yml) [![FOSSA Status](https://app.fossa.com/api/projects/custom%2B5618%2Fgithub.com%2Fnginxinc%2Fkubernetes-ingress.svg?type=shield)](https://app.fossa.com/projects/custom%2B5618%2Fgithub.com%2Fnginxinc%2Fkubernetes-ingress?ref=badge_shield) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Go Report Card](https://goreportcard.com/badge/github.com/nginxinc/kubernetes-ingress)](https://goreportcard.com/report/github.com/nginxinc/kubernetes-ingress)
33

4-
# 🚀 *Help make the NGINX Ingress Controller better by participating in our [survey](https://forms.office.com/Pages/ResponsePage.aspx?id=L_093Ttq0UCb4L-DJ9gcUM6Dh1A0cORCorfgZAMdkwJUREhJUFAyM1ZHRzZLSzQyMUlCNFhXVkZENy4u)!* 🚀
4+
# 🚀 *Help make the NGINX Ingress Controller better by participating in our [survey](https://forms.office.com/Pages/ResponsePage.aspx?id=L_093Ttq0UCb4L-DJ9gcUKLQ7uTJaE1PitM_37KR881UMEs0Rk5PMkYzMTJTWVA0V1hUVTRLUUMyNS4u)!* 🚀
55

66
# NGINX Ingress Controller
77

build/Dockerfile

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ FROM nginx:1.21.3 AS debian
99

1010
RUN apt-get update \
1111
&& apt-get install --no-install-recommends --no-install-suggests -y libcap2-bin \
12-
# temporary fix for CVE-2021-3711
13-
&& apt-get install -y openssl libssl1.1 \
1412
&& rm -rf /var/lib/apt/lists/* \
1513
&& echo $NGINX_VERSION > nginx_version
1614

@@ -20,8 +18,8 @@ RUN apt-get update \
2018
FROM docker.io/library/nginx:1.21.3-alpine AS alpine
2119

2220
RUN apk add --no-cache libcap \
23-
# temporary fix for CVE-2021-33560
24-
&& apk upgrade --no-cache libgcrypt
21+
# temporary fix for CVE-2021-22945
22+
&& apk upgrade --no-cache curl libcurl
2523

2624

2725
############################################# Base image for Alpine with NGINX Plus #############################################
@@ -32,7 +30,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/apk/cert.pem,mode=0644 \
3230
--mount=type=secret,id=nginx-repo.key,dst=/etc/apk/cert.key,mode=0644 \
3331
wget -nv -O /etc/apk/keys/nginx_signing.rsa.pub https://cs.nginx.com/static/keys/nginx_signing.rsa.pub \
3432
&& printf "%s\n" "https://pkgs.nginx.com/plus/alpine/v$(grep -E -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
35-
&& apk add --no-cache libcap nginx-plus~${NGINX_PLUS_VERSION#r} nginx-plus-module-njs~${NGINX_PLUS_VERSION#r}
33+
&& apk add --no-cache libcap nginx-plus~${NGINX_PLUS_VERSION#r} nginx-plus-module-njs~${NGINX_PLUS_VERSION#r}
3634

3735

3836
############################################# Base image for Debian with NGINX Plus #############################################
@@ -102,7 +100,7 @@ LABEL name="NGINX Ingress Controller" \
102100
summary="The Ingress controller is an application that runs in a cluster and configures an HTTP load balancer according to Ingress resources." \
103101
io.openshift.tags="nginx,ingress-controller,ingress,controller,kubernetes,openshift"
104102

105-
RUN microdnf --nodocs install -y shadow-utils ca-certificates systemd systemd-libs \
103+
RUN microdnf --nodocs install -y shadow-utils ca-certificates \
106104
&& groupadd --system --gid 101 nginx \
107105
&& useradd --system --gid nginx --no-create-home --home-dir /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx
108106

@@ -159,15 +157,12 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
159157

160158

161159
############################################# Base image containing libs for Opentracing #############################################
162-
FROM opentracing/nginx-opentracing:nginx-1.21.1 as opentracing-lib
160+
FROM opentracing/nginx-opentracing:nginx-1.21.3 as opentracing-lib
163161

164162

165163
############################################# Build image for Opentracing #############################################
166164
FROM debian as opentracing
167165

168-
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y libcurl3-gnutls \
169-
&& rm -rf /var/lib/apt/lists/*
170-
171166
RUN --mount=type=bind,from=opentracing-lib,target=/tmp/ cp -av /tmp/usr/local/lib/libopentracing.so* /tmp/usr/local/lib/libjaegertracing*so* /tmp/usr/local/lib/libzipkin*so* /tmp/usr/local/lib/libdd*so* /tmp/usr/local/lib/libyaml*so* /usr/local/lib/ \
172167
&& cp -av /tmp/usr/lib/nginx/modules/ngx_http_opentracing_module.so /usr/lib/nginx/modules/ \
173168
&& ldconfig
@@ -180,7 +175,7 @@ ARG NGINX_PLUS_VERSION
180175
RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \
181176
--mount=type=secret,id=nginx-repo.key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \
182177
apt-get update \
183-
&& apt-get install --no-install-recommends --no-install-suggests -y libcurl3-gnutls nginx-plus-module-opentracing-${NGINX_PLUS_VERSION} \
178+
&& apt-get install --no-install-recommends --no-install-suggests -y nginx-plus-module-opentracing-${NGINX_PLUS_VERSION} \
184179
&& rm -rf /var/lib/apt/lists/*
185180

186181
RUN --mount=type=bind,from=opentracing-lib,target=/tmp/ cp -av /tmp/usr/local/lib/libjaegertracing*so* /tmp/usr/local/lib/libzipkin*so* /tmp/usr/local/lib/libdd*so* /tmp/usr/local/lib/libyaml*so* /usr/local/lib/ \

deployments/common/crds/k8s.nginx.org_globalconfigurations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.6.2
5+
controller-gen.kubebuilder.io/version: v0.7.0
66
creationTimestamp: null
77
name: globalconfigurations.k8s.nginx.org
88
spec:

deployments/common/crds/k8s.nginx.org_policies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.6.2
5+
controller-gen.kubebuilder.io/version: v0.7.0
66
creationTimestamp: null
77
name: policies.k8s.nginx.org
88
spec:

deployments/common/crds/k8s.nginx.org_transportservers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.6.2
5+
controller-gen.kubebuilder.io/version: v0.7.0
66
creationTimestamp: null
77
name: transportservers.k8s.nginx.org
88
spec:

deployments/common/crds/k8s.nginx.org_virtualserverroutes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.6.2
5+
controller-gen.kubebuilder.io/version: v0.7.0
66
creationTimestamp: null
77
name: virtualserverroutes.k8s.nginx.org
88
spec:

0 commit comments

Comments
 (0)