Skip to content

Commit 832857a

Browse files
authored
chore: upgrade ingress controller image to 2.0.10 (#223)
1 parent 45e83d5 commit 832857a

File tree

8 files changed

+58
-22
lines changed

8 files changed

+58
-22
lines changed

charts/ingress-controller/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ keywords:
66
- api7
77
- crd
88
type: application
9-
version: 0.1.16
10-
appVersion: 2.0.9
9+
version: 0.1.17
10+
appVersion: 2.0.10
1111
maintainers:
1212
- name: API7
1313

charts/ingress-controller/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# api7-ingress-controller
22

3-
![Version: 0.1.16](https://img.shields.io/badge/Version-0.1.16-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.9](https://img.shields.io/badge/AppVersion-2.0.9-informational?style=flat-square)
3+
![Version: 0.1.17](https://img.shields.io/badge/Version-0.1.17-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.10](https://img.shields.io/badge/AppVersion-2.0.10-informational?style=flat-square)
44

55
Ingress Controller for API7
66

@@ -27,6 +27,7 @@ Ingress Controller for API7
2727
| autoscaling.enabled | bool | `false` | |
2828
| autoscaling.minReplicas | int | `1` | |
2929
| config.controllerName | string | `"apisix.apache.org/apisix-ingress-controller"` | |
30+
| config.disableGatewayApi | bool | `false` | |
3031
| config.enableHTTP2 | bool | `false` | |
3132
| config.execADCTimeout | string | `"15s"` | |
3233
| config.leaderElection.disable | bool | `false` | |
@@ -45,12 +46,13 @@ Ingress Controller for API7
4546
| deployment.annotations | object | `{}` | |
4647
| deployment.image.pullPolicy | string | `"IfNotPresent"` | |
4748
| deployment.image.repository | string | `"api7/api7-ingress-controller"` | |
48-
| deployment.image.tag | string | `"2.0.9"` | |
49+
| deployment.image.tag | string | `"2.0.10"` | |
4950
| deployment.nodeSelector | object | `{}` | |
5051
| deployment.podAnnotations | object | `{}` | |
51-
| deployment.podSecurityContext | object | `{}` | |
52+
| deployment.podSecurityContext.fsGroup | int | `2000` | |
5253
| deployment.replicas | int | `1` | |
5354
| deployment.resources | object | `{}` | Set pod resource requests & limits |
55+
| deployment.securityContext | object | `{}` | |
5456
| deployment.tolerations | list | `[]` | |
5557
| deployment.topologySpreadConstraints | list | `[]` | |
5658
| fullnameOverride | string | `""` | |

charts/ingress-controller/crds/apisix-crds.yaml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,9 +1587,8 @@ spec:
15871587
minimum: 0
15881588
type: integer
15891589
timeout:
1590-
description: |-
1591-
Timeout sets health check timeout in seconds.
1592-
https://github.com/apache/apisix/blob/0151d9e35bba63d7c316187272d88e19db0be634/apisix/schema_def.lua#L196
1590+
description: Timeout sets the number of timeouts to define
1591+
an unhealthy target.
15931592
maximum: 254
15941593
minimum: 1
15951594
type: integer
@@ -1651,9 +1650,8 @@ spec:
16511650
minimum: 0
16521651
type: integer
16531652
timeout:
1654-
description: |-
1655-
Timeout sets health check timeout in seconds.
1656-
https://github.com/apache/apisix/blob/0151d9e35bba63d7c316187272d88e19db0be634/apisix/schema_def.lua#L196
1653+
description: Timeout sets the number of timeouts to define
1654+
an unhealthy target.
16571655
maximum: 254
16581656
minimum: 1
16591657
type: integer
@@ -1848,9 +1846,8 @@ spec:
18481846
minimum: 0
18491847
type: integer
18501848
timeout:
1851-
description: |-
1852-
Timeout sets health check timeout in seconds.
1853-
https://github.com/apache/apisix/blob/0151d9e35bba63d7c316187272d88e19db0be634/apisix/schema_def.lua#L196
1849+
description: Timeout sets the number of timeouts
1850+
to define an unhealthy target.
18541851
maximum: 254
18551852
minimum: 1
18561853
type: integer
@@ -1912,9 +1909,8 @@ spec:
19121909
minimum: 0
19131910
type: integer
19141911
timeout:
1915-
description: |-
1916-
Timeout sets health check timeout in seconds.
1917-
https://github.com/apache/apisix/blob/0151d9e35bba63d7c316187272d88e19db0be634/apisix/schema_def.lua#L196
1912+
description: Timeout sets the number of timeouts
1913+
to define an unhealthy target.
19181914
maximum: 254
19191915
minimum: 1
19201916
type: integer

charts/ingress-controller/templates/cluster_role.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ rules:
9292
- httproutes/status
9393
- referencegrants/status
9494
- tcproutes/status
95+
- udproutes/status
9596
verbs:
9697
- get
9798
- update
@@ -103,6 +104,7 @@ rules:
103104
- httproutes
104105
- referencegrants
105106
- tcproutes
107+
- udproutes
106108
verbs:
107109
- get
108110
- list

charts/ingress-controller/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ data:
1818
probe_addr: {{ .Values.config.probeAddr | default ":8081" }}
1919
secure_metrics: {{ .Values.config.secureMetrics | default false }}
2020
exec_adc_timeout: {{ .Values.config.execADCTimeout | default "15s" }}
21+
disable_gateway_api: {{ .Values.config.disableGatewayApi | default false }}
2122
provider:
2223
type: {{ .Values.config.provider.type | default "api7ee" }}
2324
sync_period: {{ .Values.config.provider.syncPeriod | default "0s" }}

charts/ingress-controller/templates/deployment.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,15 @@ spec:
3636
valueFrom:
3737
fieldRef:
3838
fieldPath: metadata.name
39+
- name: ADC_SERVER_URL
40+
value: "unix:/sockets/adc.sock"
3941
image: "{{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag }}"
4042
volumeMounts:
4143
- name: {{ .Release.Name }}-ingress-config
4244
mountPath: /app/conf/config.yaml
4345
subPath: config.yaml
46+
- name: socket-volume
47+
mountPath: /sockets
4448
{{- if .Values.webhook.enabled }}
4549
- name: webhook-certs
4650
mountPath: /certs
@@ -66,13 +70,13 @@ spec:
6670
resources:
6771
{{- toYaml .Values.deployment.resources | nindent 10 }}
6872
securityContext:
69-
{{- toYaml .Values.deployment.podSecurityContext | nindent 10 }}
73+
{{- toYaml .Values.deployment.securityContext | nindent 10 }}
7074
- name: adc-server
7175
image: "{{ .Values.adc.image.repository }}:{{ .Values.adc.image.tag }}"
7276
args:
7377
- "server"
7478
- "--listen"
75-
- "http://127.0.0.1:3000"
79+
- "unix:/sockets/adc.sock"
7680
- "--listen-status"
7781
- "3001"
7882
env:
@@ -99,6 +103,9 @@ spec:
99103
port: 3001
100104
initialDelaySeconds: 5
101105
periodSeconds: 5
106+
volumeMounts:
107+
- name: socket-volume
108+
mountPath: /sockets
102109
resources:
103110
{{- toYaml .Values.adc.resources | nindent 10 }}
104111
securityContext:
@@ -123,12 +130,14 @@ spec:
123130
- name: {{ .Release.Name }}-ingress-config
124131
configMap:
125132
name: {{ .Release.Name }}-ingress-config
133+
- name: socket-volume
134+
emptyDir: {}
126135
{{- if .Values.webhook.enabled }}
127136
- name: webhook-certs
128137
secret:
129138
secretName: {{ include "api7-ingress-controller-manager.webhook.secretName" . }}
130139
{{- end }}
131140
securityContext:
132-
runAsNonRoot: false
141+
{{- toYaml .Values.deployment.podSecurityContext | nindent 8 }}
133142
serviceAccountName: {{ .Release.Name }}
134143
terminationGracePeriodSeconds: 10

charts/ingress-controller/templates/webhook.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,28 @@ webhooks:
268268
apiGroups: ["gateway.networking.k8s.io"]
269269
apiVersions: ["v1alpha2"]
270270
resources: ["tcproutes"]
271+
- name: vudproute-v1alpha2.kb.io
272+
admissionReviewVersions: ["v1"]
273+
clientConfig:
274+
{{- if not .Values.webhook.certificate.provided }}
275+
caBundle: {{ b64enc $caCert }}
276+
{{- else }}
277+
caBundle: {{ .Values.webhook.certificate.caBundle }}
278+
{{- end }}
279+
service:
280+
name: {{ include "api7-ingress-controller-manager.webhook.serviceName" . }}
281+
namespace: {{ .Release.Namespace }}
282+
path: /validate-gateway-networking-k8s-io-v1alpha2-udproute
283+
failurePolicy: {{ .Values.webhook.failurePolicy }}
284+
{{- with .Values.webhook.timeoutSeconds }}
285+
timeoutSeconds: {{ . }}
286+
{{- end }}
287+
sideEffects: None
288+
rules:
289+
- operations: ["CREATE", "UPDATE"]
290+
apiGroups: ["gateway.networking.k8s.io"]
291+
apiVersions: ["v1alpha2"]
292+
resources: ["udproutes"]
271293

272294
---
273295
apiVersion: v1

charts/ingress-controller/values.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ deployment:
2626
nodeSelector: {}
2727
tolerations: []
2828
affinity: {}
29-
podSecurityContext: {}
29+
# fsGroup: 2000 ensures containers can share Unix socket files via a common group.
30+
podSecurityContext:
31+
fsGroup: 2000
32+
securityContext: {}
3033
topologySpreadConstraints: []
3134
image:
3235
repository: api7/api7-ingress-controller
3336
pullPolicy: IfNotPresent
34-
tag: "2.0.9"
37+
tag: "2.0.10"
3538
# -- Set pod resource requests & limits
3639
resources: {}
3740

@@ -58,6 +61,7 @@ config:
5861
probeAddr: ":8081"
5962
secureMetrics: false
6063
execADCTimeout: "15s"
64+
disableGatewayApi: false # Whether to disable the Gateway API support. The default value is false.
6165
provider:
6266
type: "api7ee"
6367
syncPeriod: "1h"

0 commit comments

Comments
 (0)