Skip to content

Commit 211d861

Browse files
Merge branch 'main' into ff20250312
2 parents 83ab922 + 790e270 commit 211d861

File tree

864 files changed

+78103
-21166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

864 files changed

+78103
-21166
lines changed

.codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ coverage:
1111
target: auto
1212
threshold: 0%
1313
changes: false
14+
ignore:
15+
- "pkg/client"
16+
- "**/*generated*.go"

.fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ targets:
44
- type: setuptools
55
paths:
66
exclude:
7-
- docs
7+
- site

.github/ISSUE_TEMPLATE/BUG-REPORT.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Bug Report
2+
description: File a bug report.
3+
title: "[Bug]: "
4+
labels: ["bug", "needs triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: dropdown
11+
id: version
12+
attributes:
13+
label: Version
14+
description: What version of our F5 NGINX Ingress Controller are you running?
15+
options:
16+
- edge
17+
- 4.0.1
18+
- 4.0.0
19+
- 3.7.2
20+
- 3.7.1
21+
- 3.7.0
22+
- 3.6.2
23+
- 3.6.1
24+
- 3.6.0
25+
- 3.5.2
26+
- 3.5.1
27+
- 3.5.0
28+
- 3.4.3
29+
- 3.4.2
30+
- 3.4.1
31+
- 3.4.0
32+
- 3.3.2
33+
- 3.3.1
34+
- 3.3.0
35+
- 3.2.1
36+
- 3.2.0
37+
- 3.1.1
38+
- 3.1.0
39+
- 3.0.2
40+
- 3.0.1
41+
- 3.0.0
42+
- 2.4.2
43+
- 2.4.1
44+
- 2.4.0
45+
- 2.3.1
46+
- 2.3.0
47+
- 2.2.2
48+
- 2.2.1
49+
- 2.2.0
50+
- 2.1.2
51+
- 2.1.1
52+
- 2.1.0
53+
- 2.0.3
54+
- 2.0.2
55+
- 2.0.1
56+
- 2.0.0
57+
default: 0
58+
validations:
59+
required: true
60+
- type: dropdown
61+
id: platform
62+
attributes:
63+
label: What Kubernetes platforms are you running on?
64+
options:
65+
- Kind
66+
- Minikube
67+
- Rancher
68+
- EKS Amazon
69+
- AKS Azure
70+
- GKE Google Cloud
71+
- Openshift
72+
- Other
73+
default: 0
74+
validations:
75+
required: true
76+
- type: textarea
77+
id: steps-to-reproduce
78+
attributes:
79+
label: Steps to reproduce
80+
description: These steps will help us best reproduce the issue and come to a resolution.
81+
placeholder: |
82+
1. Deploy x to '...' using some.yaml
83+
2. View logs on '....'
84+
3. See error
85+
validations:
86+
required: true

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ contact_links:
44
url: https://docs.nginx.com/nginx-ingress-controller
55
about: Check out our documentation.
66
- name: General inquiries
7-
url: https://github.com/nginxinc/kubernetes-ingress/discussions
7+
url: https://github.com/nginx/kubernetes-ingress/discussions
88
about: Please use Discussions for all other questions.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ that issue here in this description (not in the title of the PR).
77

88
Before creating a PR, run through this checklist and mark each as complete.
99

10-
- [ ] I have read the [CONTRIBUTING](https://github.com/nginxinc/kubernetes-ingress/blob/main/CONTRIBUTING.md) doc
10+
- [ ] I have read the [CONTRIBUTING](https://github.com/nginx/kubernetes-ingress/blob/main/CONTRIBUTING.md) doc
1111
- [ ] I have added tests that prove my fix is effective or that my feature works
1212
- [ ] I have checked that all unit tests pass after adding my changes
1313
- [ ] I have updated necessary documentation

.github/actions/certify-openshift-image/action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ inputs:
1818
platforms:
1919
description: A comma separated list of architectures in the image manifest to certify
2020
required: false
21-
default: ""
21+
default: "amd64,arm64,ppc64le,s390x"
22+
submit:
23+
description: Submit results to Redhat PYAXIS
24+
required: false
25+
default: true
2226

2327
outputs:
2428
result:
@@ -43,14 +47,14 @@ runs:
4347
IFS=',' read -ra arch_list <<< "${{ inputs.platforms }}"
4448
for arch in "${arch_list[@]}"; do
4549
architecture=("${arch#*/}")
46-
./preflight check container ${{ inputs.image }} --pyxis-api-token ${{ inputs.pyxis_token }} --certification-project-id ${{ inputs.project_id }} --platform $architecture --submit
50+
./preflight check container ${{ inputs.image }} --pyxis-api-token ${{ inputs.pyxis_token }} --certification-project-id ${{ inputs.project_id }} --platform $architecture ${{ inputs.submit && '--submit' || '' }}
4751
if [ $? -ne 0 ]; then
4852
result=1
4953
fi
5054
done
5155
else
5256
# no platforms passed, this is either a manifest or a single platform image
53-
./preflight check container ${{ inputs.image }} --pyxis-api-token ${{ inputs.pyxis_token }} --certification-project-id ${{ inputs.project_id }} --submit
57+
./preflight check container ${{ inputs.image }} --pyxis-api-token ${{ inputs.pyxis_token }} --certification-project-id ${{ inputs.project_id }} ${{ inputs.submit && '--submit' || '' }}
5458
result=$?
5559
fi
5660
echo "result=$result" >> $GITHUB_OUTPUT

.github/actions/install-skopeo/action.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

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

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,26 @@ inputs:
2525
marker:
2626
description: Marker to use
2727
required: false
28+
label:
29+
description: Label for test
30+
required: false
2831
azure-ad-secret:
2932
description: Azure Active Directory secret for JWKs
3033
required: false
34+
registry-token:
35+
description: JWT token for accessing container registry
36+
required: false
37+
plus-jwt:
38+
description: JWT for NGINX Plus
39+
required: false
3140

3241
outputs:
3342
test-results-name:
3443
description: Test results name
35-
value: tests-${{ steps.k8s.outputs.cluster }}
44+
value: ${{ steps.k8s.outputs.test_name }}
45+
test-results-path:
46+
description: Test results full path
47+
value: ${{ steps.k8s.outputs.test_output_path }}
3648

3749
runs:
3850
using: composite
@@ -42,12 +54,20 @@ runs:
4254
run: |
4355
make -f tests/Makefile create-kind-cluster K8S_CLUSTER_NAME=${{ github.run_id }} K8S_CLUSTER_VERSION=${{ inputs.k8s-version }} K8S_TIMEOUT=${{ inputs.k8s-timeout }}
4456
make -f tests/Makefile image-load REGISTRY="" PREFIX=${{ inputs.image-name }} TAG=${{ inputs.tag }} K8S_CLUSTER_NAME=${{ github.run_id }}
45-
marker="${{ inputs.marker }}"
46-
nospaces="${marker// /_}"
47-
sanitized_marker="${nospaces//\'/}"
48-
name="${sanitized_marker:-${{ inputs.k8s-version }}}"
49-
echo "cluster_ip=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${{ github.run_id }}-control-plane)" >> $GITHUB_OUTPUT
50-
echo "cluster=$(echo nginx-${{ inputs.image-type }}-$name)" >> $GITHUB_OUTPUT
57+
label="${{ inputs.label }}"
58+
nospaces="${label// /_}"
59+
noslash="${nospaces//\//_}"
60+
sanitized_marker="${noslash//\'/}"
61+
name="${sanitized_marker}-${{ inputs.k8s-version }}"
62+
cluster_ip=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${{ github.run_id }}-control-plane)
63+
test_name=tests-nginx-${{ inputs.image-type }}-${name}.html
64+
test_output_path=${{ github.workspace }}/tests/${test_name}
65+
echo "cluster_ip=${cluster_ip}" >> $GITHUB_OUTPUT
66+
echo "test_name=${test_name}" >> $GITHUB_OUTPUT
67+
echo "test_output_path=${test_output_path}" >> $GITHUB_OUTPUT
68+
echo "Output:"
69+
echo " cluster_ip=${cluster_ip}"
70+
echo " test_output_path=${test_output_path}"
5171
shell: bash
5272

5373
- name: Setup Kubeconfig
@@ -56,23 +76,35 @@ runs:
5676
shell: bash
5777

5878
- name: Run Smoke Tests
79+
id: smoke-tests
5980
run: |
60-
touch tests-${{ steps.k8s.outputs.cluster }}.html
81+
touch ${{ steps.k8s.outputs.test_output_path }}
6182
docker run --rm \
6283
--name test-runner-${{ github.run_id }} \
6384
--network=kind \
85+
-v "/var/run/docker.sock:/var/run/docker.sock" \
86+
-v ~/.docker:/root/.docker \
6487
-v ${{ github.workspace }}/tests:/workspace/tests \
88+
-v ${{ github.workspace }}/examples/common-secrets:/workspace/examples/common-secrets \
89+
-v ${{ github.workspace }}/deployments:/workspace/deployments \
90+
-v ${{ github.workspace }}/charts:/workspace/charts \
91+
-v ${{ github.workspace }}/config:/workspace/config \
92+
-v ${{ github.workspace }}/pyproject.toml:/workspace/pyproject.toml \
93+
-v ${{ steps.k8s.outputs.test_output_path }}:${{ steps.k8s.outputs.test_output_path }} \
6594
-v ~/.kube/kind/config:/root/.kube/config ${{ inputs.test-image }} \
95+
--docker-registry-user=oauth2accesstoken \
96+
--docker-registry-token=${{ inputs.registry-token }} \
6697
--context=kind-${{ github.run_id }} \
6798
--image=${{ inputs.image-name }}:${{ inputs.tag }} \
6899
--image-pull-policy=Never \
69100
--ic-type=nginx${{ contains(inputs.image-type, 'plus') && '-plus' || '' }}-ingress \
70101
--service=nodeport --node-ip=${{ steps.k8s.outputs.cluster_ip }} \
71-
--html=tests-${{ steps.k8s.outputs.cluster }}.html \
102+
--html=${{ steps.k8s.outputs.test_output_path }} \
72103
--self-contained-html \
73104
--durations=10 \
74105
--show-ic-logs=yes \
75106
--ad-secret=${{ inputs.azure-ad-secret }} \
107+
--plus-jwt=${{ inputs.plus-jwt }} \
76108
-m ${{ inputs.marker != '' && inputs.marker || '""' }}
77109
working-directory: ./tests
78110
shell: bash

.github/config/config-gcr-retag

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export TARGET_REGISTRY=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev
2-
declare -a PLUS_TAG_POSTFIX_LIST=("" "-ubi" "-alpine" "-alpine-fips" "-mktpl" "-alpine-mktpl" "-alpine-mktpl-fips")
3-
declare -a NAP_WAF_TAG_POSTFIX_LIST=("" "-ubi" "-mktpl" "-ubi-mktpl" "-alpine-fips")
4-
declare -a NAP_DOS_TAG_POSTFIX_LIST=("" "-ubi" "-mktpl" "-ubi-mktpl")
5-
declare -a NAP_WAF_DOS_TAG_POSTFIX_LIST=("" "-ubi" "-mktpl" "-ubi-mktpl")
2+
declare -a PLUS_TAG_POSTFIX_LIST=("" "-ubi" "-alpine" "-alpine-fips" "-mktpl")
3+
declare -a NAP_WAF_TAG_POSTFIX_LIST=("" "-ubi" "-ubi8" "-mktpl" "-alpine-fips")
4+
declare -a NAP_WAFV5_TAG_POSTFIX_LIST=("" "-ubi" "-ubi8" "-alpine-fips")
5+
declare -a NAP_DOS_TAG_POSTFIX_LIST=("" "-ubi" "-mktpl")
6+
declare -a NAP_WAF_DOS_TAG_POSTFIX_LIST=("" "-ubi" "-mktpl")
67
declare -a ADDITIONAL_TAGS=()

0 commit comments

Comments
 (0)