Skip to content

Commit 986971e

Browse files
committed
Add support for nginx debug mode in CP/DP split
1 parent 85c6f78 commit 986971e

File tree

17 files changed

+48
-0
lines changed

17 files changed

+48
-0
lines changed

apis/v1alpha2/nginxproxy_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,12 @@ type PodSpec struct {
435435

436436
// ContainerSpec defines container fields for the NGINX container.
437437
type ContainerSpec struct {
438+
// Debug enables debugging for NGINX by using the nginx-debug binary.
439+
//
440+
// +optional
441+
// +kubebuilder:default=false
442+
Debug *bool `json:"debug,omitempty"`
443+
438444
// Image is the NGINX image to use.
439445
//
440446
// +optional

apis/v1alpha2/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/nginx-gateway-fabric/templates/nginxproxy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ spec:
2323
{{- end }}
2424
image:
2525
{{- toYaml .Values.nginx.image | nindent 10 }}
26+
debug: {{ .Values.nginx.debug }}
2627
{{- end }}
2728
{{- if .Values.nginx.service }}
2829
service:

config/crd/bases/gateway.nginx.org_nginxproxies.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ spec:
7979
description: Container defines container fields for the NGINX
8080
container.
8181
properties:
82+
debug:
83+
default: false
84+
description: Debug enables debugging for NGINX by using
85+
the nginx-debug binary.
86+
type: boolean
8287
image:
8388
description: Image is the NGINX image to use.
8489
properties:

deploy/aws-nlb/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ spec:
301301
kubernetes:
302302
deployment:
303303
container:
304+
debug: false
304305
image:
305306
pullPolicy: Always
306307
repository: ghcr.io/nginx/nginx-gateway-fabric/nginx

deploy/azure/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ spec:
303303
kubernetes:
304304
deployment:
305305
container:
306+
debug: false
306307
image:
307308
pullPolicy: Always
308309
repository: ghcr.io/nginx/nginx-gateway-fabric/nginx

deploy/crds.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,11 @@ spec:
664664
description: Container defines container fields for the NGINX
665665
container.
666666
properties:
667+
debug:
668+
default: false
669+
description: Debug enables debugging for NGINX by using
670+
the nginx-debug binary.
671+
type: boolean
667672
image:
668673
description: Image is the NGINX image to use.
669674
properties:

deploy/default/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ spec:
301301
kubernetes:
302302
deployment:
303303
container:
304+
debug: false
304305
image:
305306
pullPolicy: Always
306307
repository: ghcr.io/nginx/nginx-gateway-fabric/nginx

deploy/experimental-nginx-plus/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ spec:
308308
kubernetes:
309309
deployment:
310310
container:
311+
debug: false
311312
image:
312313
pullPolicy: Always
313314
repository: private-registry.nginx.com/nginx-gateway-fabric/nginx-plus

deploy/experimental/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ spec:
306306
kubernetes:
307307
deployment:
308308
container:
309+
debug: false
309310
image:
310311
pullPolicy: Always
311312
repository: ghcr.io/nginx/nginx-gateway-fabric/nginx

0 commit comments

Comments
 (0)