Skip to content

Commit b4dce10

Browse files
committed
chore(ci): add ingress-nginx 1.13.3 and 1.12.7
1 parent bfee5ed commit b4dce10

File tree

4 files changed

+28
-24
lines changed

4 files changed

+28
-24
lines changed

.circleci/config.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ workflows:
411411
- amd64
412412
- arm64
413413
version:
414-
- 1.12.6
415-
- 1.13.2
414+
- 1.12.7
415+
- 1.13.3
416416
name: build ingress-nginx-<< matrix.version >> on << matrix.arch >>
417417
- coverage:
418418
name: Coverage on 1.27.0 with WAF ON
@@ -491,8 +491,8 @@ workflows:
491491
base-image:
492492
- registry.k8s.io/ingress-nginx/controller
493493
nginx-version:
494-
- 1.13.2
495-
- 1.12.6
494+
- 1.13.3
495+
- 1.12.7
496496
name: test ingress-nginx-<< matrix.nginx-version >> on << matrix.arch >>
497497
requires:
498498
- build ingress-nginx-<< matrix.nginx-version >> on << matrix.arch >>
@@ -518,9 +518,11 @@ workflows:
518518
- amd64
519519
- arm64
520520
version:
521+
- 1.13.3
521522
- 1.13.2
522523
- 1.13.1
523524
- 1.13.0
525+
- 1.12.7
524526
- 1.12.6
525527
- 1.12.5
526528
- 1.12.4

.circleci/src/workflows/build-and-test-all.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
- 'amd64'
1515
- 'arm64'
1616
version:
17+
- 1.13.3
1718
- 1.13.2
1819
- 1.13.1
1920
- 1.13.0
21+
- 1.12.7
2022
- 1.12.6
2123
- 1.12.5
2224
- 1.12.4

.circleci/src/workflows/build-and-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
- 'amd64'
4848
- 'arm64'
4949
version:
50-
- 1.12.6
51-
- 1.13.2
50+
- 1.12.7
51+
- 1.13.3
5252
- coverage:
5353
name: Coverage on 1.27.0 with WAF ON
5454
- test:
@@ -133,8 +133,8 @@ jobs:
133133
base-image:
134134
- registry.k8s.io/ingress-nginx/controller
135135
nginx-version:
136-
- 1.13.2
137-
- 1.12.6
136+
- 1.13.3
137+
- 1.12.7
138138
- system_tests:
139139
name: Run system tests
140140
requires:

bin/ingress_nginx.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
def get_underlying_nginx_version(controller_version: str) -> str:
3535
# Map an ingress-nginx version to an NGINX version
3636
mapping = {
37+
"v1.13.3": "1.27.1",
3738
"v1.13.2": "1.27.1",
3839
"v1.13.1": "1.27.1",
3940
"v1.13.0": "1.27.1",
41+
"v1.12.7": "1.25.5",
4042
"v1.12.6": "1.25.5",
4143
"v1.12.5": "1.25.5",
4244
"v1.12.4": "1.25.5",
@@ -89,9 +91,11 @@ def clone_nginx(version: str, out_dir: str) -> str:
8991

9092
def get_patch_directory(version: str, ingress_rootdir: str) -> str:
9193
mapping = {
94+
"v1.13.3": f"{ingress_rootdir}/images/nginx/rootfs/patches",
9295
"v1.13.2": f"{ingress_rootdir}/images/nginx/rootfs/patches",
9396
"v1.13.1": f"{ingress_rootdir}/images/nginx/rootfs/patches",
9497
"v1.13.0": f"{ingress_rootdir}/images/nginx/rootfs/patches",
98+
"v1.12.7": f"{ingress_rootdir}/images/nginx/rootfs/patches",
9599
"v1.12.6": f"{ingress_rootdir}/images/nginx/rootfs/patches",
96100
"v1.12.5": f"{ingress_rootdir}/images/nginx/rootfs/patches",
97101
"v1.12.4": f"{ingress_rootdir}/images/nginx/rootfs/patches",
@@ -167,8 +171,9 @@ def prepare(args) -> int:
167171

168172
nginx_src_dir = clone_nginx(nginx_version, args.output_dir)
169173

170-
patches_path = get_patch_directory(args.ingress_nginx_version,
171-
ingress_nginx_path)
174+
patches_path = get_patch_directory(
175+
args.ingress_nginx_version, ingress_nginx_path
176+
)
172177
if patches_path and os.path.exists(patches_path):
173178
patch_nginx(nginx_src_dir, patches_path)
174179

@@ -193,45 +198,40 @@ def create_multiarch_images(tag_map: dict[str, typing.Any]) -> None:
193198

194199

195200
def main() -> int:
196-
parser = argparse.ArgumentParser(
197-
description="Script managing ingress-nginx")
201+
parser = argparse.ArgumentParser(description="Script managing ingress-nginx")
198202
subparsers = parser.add_subparsers()
199203

200204
# prepare subcommand
201205
prepare_parser = subparsers.add_parser(
202206
"prepare",
203-
help=
204-
"Prepare an NGINX source directory to be compatible with a specified ingress-nginx version",
207+
help="Prepare an NGINX source directory to be compatible with a specified ingress-nginx version",
205208
)
206209
prepare_parser.set_defaults(func=prepare)
207210
prepare_parser.add_argument(
208211
"--ingress-nginx-version",
209212
metavar="INGRESS_NGINX_VERSION",
210-
help=
211-
"Specify the ingress-nginx version for compatibility (e.g., v1.10.3).",
213+
help="Specify the ingress-nginx version for compatibility (e.g., v1.10.3).",
212214
required=True,
213215
)
214216
prepare_parser.add_argument(
215217
"--output-dir",
216-
help=
217-
f"Directory where the prepared NGINX source code will be saved. Defaults to the current working directory ({os.path.join(CWD, 'ingress-nginx')}).",
218+
help=f"Directory where the prepared NGINX source code will be saved. Defaults to the current working directory ({os.path.join(CWD, 'ingress-nginx')}).",
218219
default=os.path.join(CWD, "ingress-nginx"),
219220
)
220221
prepare_parser.add_argument(
221222
"--dry-run",
222223
action="store_true",
223-
help=
224-
"Simulate the process without making any changes. Useful for testing what will happen.",
224+
help="Simulate the process without making any changes. Useful for testing what will happen.",
225225
)
226226

227227
# build-init-container subcommand
228228
build_init_container_parser = subparsers.add_parser(
229-
"build-init-container", help="Build init-container for ingress-nginx")
229+
"build-init-container", help="Build init-container for ingress-nginx"
230+
)
230231
build_init_container_parser.set_defaults(func=build_init_container)
231232
build_init_container_parser.add_argument(
232-
"--image_name",
233-
help="Init-container docker tag name",
234-
default="ingress-nginx")
233+
"--image_name", help="Init-container docker tag name", default="ingress-nginx"
234+
)
235235
build_init_container_parser.add_argument(
236236
"--module-path",
237237
help="Location of the module to package and publish",

0 commit comments

Comments
 (0)