Skip to content

Commit 632e3e7

Browse files
committed
Update deps and CI
1 parent 56851f9 commit 632e3e7

File tree

9 files changed

+181
-58
lines changed

9 files changed

+181
-58
lines changed

.github/workflows/edge.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
pull_request:
1414
branches:
1515
- master
16+
- release-1.12
1617
paths-ignore:
1718
- 'docs/**'
1819
- 'docs-web/**'
@@ -30,7 +31,7 @@ defaults:
3031

3132
env:
3233
DOCKER_BUILDKIT: 1
33-
K8S_VERSION: 1.20.2
34+
K8S_VERSION: 1.20.15
3435
K8S_TIMEOUT: 75s
3536
HELM_CHART_DIR: deployments/helm-chart
3637
HELM_CHART_VERSION: 0.0.0-edge

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
platforms: linux/arm,linux/arm64,linux/amd64,linux/ppc64le,linux/s390x
7171
- tag: ${{ needs.binary.outputs.version }}-ubi
7272
type: ubi
73-
platforms: linux/arm64,linux/amd64
73+
platforms: linux/arm64,linux/amd64,linux/s390x
7474
steps:
7575
- name: Checkout Repository
7676
uses: actions/checkout@v2
@@ -109,14 +109,15 @@ jobs:
109109
with:
110110
file: build/Dockerfile
111111
context: '.'
112+
no-cache: true
112113
cache-to: type=local,dest=/tmp/.buildx-${{ matrix.image }}-cache
113114
target: goreleaser
114115
tags: nginx/nginx-ingress:${{ matrix.tag }}
115116
platforms: ${{ matrix.platforms }}
116117
push: true
117118
build-args: |
118119
BUILD_OS=${{ matrix.type }}
119-
IC_VERSION=${GITHUB_REF#refs/tags/}
120+
IC_VERSION=${{ GITHUB_REF#refs/tags/ }}
120121
NGINX_VERSION=${{ steps.commit.outputs.nginx_version }}
121122
DATE=${{ steps.commit.outputs.date }}
122123
GIT_COMMIT=${{ github.sha }}

build/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ RUN apt-get update \
1616
# docker.io/library/nginx is a temporary workaround for Dependabot to see this as different from the one used in Debian
1717
FROM docker.io/library/nginx:1.21.6-alpine AS alpine
1818

19-
RUN apk add --no-cache libcap
19+
RUN apk add --no-cache libcap \
20+
# temp fix for CVE-2022-0778
21+
&& apk upgrade --no-cache libretls
2022

2123

2224
############################################# Base image for Alpine with NGINX Plus #############################################
@@ -40,8 +42,6 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
4042
--mount=type=secret,id=nginx-repo.key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \
4143
apt-get update \
4244
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates gnupg curl apt-transport-https libcap2-bin \
43-
# temporary fix for CVE-2021-3520, CVE-2021-33560, CVE-2021-20231, CVE-2021-20305, CVE-2021-20305
44-
&& apt-get install -y liblz4-1 libgcrypt20 libgnutls30 libhogweed4 libnettle6 \
4545
&& curl -sSL https://cs.nginx.com/static/keys/nginx_signing.key | gpg --dearmor > /etc/apt/trusted.gpg.d/nginx_signing.gpg \
4646
&& curl -sSL -o /etc/apt/apt.conf.d/90pkgs-nginx https://cs.nginx.com/static/files/90pkgs-nginx \
4747
&& printf "%s\n" "Acquire::https::pkgs.nginx.com::User-Agent \"k8s-ic-$IC_VERSION${BUILD_OS##debian-plus}-apt\";" >> /etc/apt/apt.conf.d/90pkgs-nginx \
@@ -216,6 +216,7 @@ ARG BUILD_OS
216216
ARG IC_VERSION
217217
ARG GIT_COMMIT
218218
ARG DATE
219+
ARG TARGETPLATFORM
219220

220221
RUN mkdir -p /var/lib/nginx /etc/nginx/secrets /etc/nginx/stream-conf.d \
221222
&& setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx 'cap_net_bind_service=+ep' /usr/sbin/nginx-debug \
@@ -243,9 +244,12 @@ LABEL org.opencontainers.image.documentation="https://docs.nginx.com/nginx-ingre
243244
LABEL org.opencontainers.image.source="https://github.com/nginxinc/kubernetes-ingress"
244245
LABEL org.opencontainers.image.vendor="NGINX Inc <kubernetes@nginx.com>"
245246
LABEL org.opencontainers.image.licenses="Apache-2.0"
246-
LABEL org.opencontainers.image.version="${IC_VERSION}-${BUILD_OS}-${NGINX_PLUS_VERSION}${NGINX_VERSION}"
247+
LABEL org.opencontainers.image.version="${IC_VERSION}"
247248
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
248249
LABEL org.opencontainers.image.created="${DATE}"
250+
LABEL org.nginx.kic.image.build.target="${TARGETPLATFORM}"
251+
LABEL org.nginx.kic.image.build.os="${BUILD_OS}"
252+
LABEL org.nginx.kic.image.build.nginx.version="${NGINX_PLUS_VERSION}${NGINX_VERSION}"
249253

250254

251255
############################################# Build nginx-ingress in golang container #############################################

go.mod

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@ require (
77
github.com/aws/aws-sdk-go-v2/service/marketplacemetering v1.3.1
88
github.com/dgrijalva/jwt-go/v4 v4.0.0-preview1
99
github.com/emicklei/go-restful v2.15.0+incompatible // indirect
10-
github.com/go-openapi/spec v0.20.3 // indirect
1110
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
1211
github.com/golangci/golangci-lint v1.40.1
13-
github.com/google/go-cmp v0.5.6
12+
github.com/google/go-cmp v0.5.7
1413
github.com/imdario/mergo v0.3.12 // indirect
1514
github.com/nginxinc/nginx-plus-go-client v0.8.0
1615
github.com/nginxinc/nginx-prometheus-exporter v0.9.0
17-
github.com/prometheus/client_golang v1.11.0
16+
github.com/prometheus/client_golang v1.11.1
1817
github.com/spiffe/go-spiffe v1.1.0
19-
k8s.io/api v0.21.2
20-
k8s.io/apimachinery v0.21.2
21-
k8s.io/client-go v0.21.2
22-
k8s.io/code-generator v0.21.2
23-
k8s.io/gengo v0.0.0-20210203185629-de9496dff47b // indirect
18+
k8s.io/api v0.23.5
19+
k8s.io/apimachinery v0.23.5
20+
k8s.io/client-go v0.23.5
21+
k8s.io/code-generator v0.23.5
2422
sigs.k8s.io/controller-tools v0.6.0
2523
)

0 commit comments

Comments
 (0)