Skip to content

Commit 195657a

Browse files
author
jiyufeng048
committed
feat: add gatewayProxy publishService and statusAddress
1 parent 55ea7d6 commit 195657a

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

charts/apisix-ingress-controller/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ The same for container level, you need to set:
146146
| gatewayProxy.provider.controlPlane.auth.type | string | `"AdminKey"` | |
147147
| gatewayProxy.provider.controlPlane.endpoints | list | `[]` | |
148148
| gatewayProxy.provider.type | string | `"ControlPlane"` | |
149+
| gatewayProxy.publishService | string | `""` | publishService specifies the LoadBalancer-type Service whose external address the controller uses to update the status of Ingress resources. Example: [Namespace]/[APISIX_LoadBalancer_Service]. Applicable to ingress resources. |
150+
| gatewayProxy.statusAddress | string | `""` | statusAddress specifies the external IP addresses that the controller uses to populate the status field of GatewayProxy or Ingress resources for developers to access. statusAddress has higher priority than publishService. |
149151
| labelsOverride | object | `{}` | Override default labels assigned to Apache APISIX ingress controller resource |
150152
| nameOverride | string | `""` | Default values for apisix-ingress-controller. This is a YAML-formatted file. Declare variables to be passed into your templates. |
151153
| podDisruptionBudget | object | `{"enabled":false,"maxUnavailable":1,"minAvailable":"90%"}` | See https://kubernetes.io/docs/tasks/run-application/configure-pdb/ for more details |

charts/apisix-ingress-controller/templates/gatewayproxy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ spec:
3131
auth:
3232
{{- toYaml . | nindent 8 }}
3333
{{- end }}
34+
{{- if .Values.gatewayProxy.publishService }}
3435
publishService: {{ .Values.gatewayProxy.publishService }}
36+
{{- end }}
3537
{{- if .Values.gatewayProxy.statusAddress }}
3638
statusAddress: {{ .Values.gatewayProxy.statusAddress }}
3739
{{- end }}

charts/apisix-ingress-controller/values.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,13 @@ gatewayProxy:
105105
adminKey:
106106
value: "edd1c9f034335f136f87ad84b625c8f1"
107107
# -- publishService specifies the LoadBalancer-type Service whose external address the controller uses to update the
108-
# status of Ingress resources. Example: [Namespace]/[APISIX_LoadBalancer_Service]
109-
publishService: apisix-ingress/apisix-gateway
108+
# status of Ingress resources. Example: [Namespace]/[APISIX_LoadBalancer_Service]. Applicable to ingress resources.
109+
publishService: ""
110+
# publishService: apisix-ingress/apisix-gateway
111+
110112
# -- statusAddress specifies the external IP addresses that the controller uses to populate the status field
111113
# of GatewayProxy or Ingress resources for developers to access. statusAddress has higher priority than publishService.
112-
# statusAddress:
114+
statusAddress: ""
113115

114116
apisix:
115117
adminService:

0 commit comments

Comments
 (0)