Skip to content

Commit

Permalink
chore: upgrade APISIX to 3.6.0 (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinsRan authored Oct 7, 2023
1 parent be31a91 commit 5eb6798
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 150 deletions.
4 changes: 2 additions & 2 deletions charts/apisix/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.6.2
version: 1.7.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 3.5.0
appVersion: 3.6.0
sources:
- https://github.com/apache/apisix-helm-chart

Expand Down
17 changes: 1 addition & 16 deletions charts/apisix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The command removes all the Kubernetes components associated with the chart and
| apisix.httpRouter | string | `"radixtree_host_uri"` | Defines how apisix handles routing: - radixtree_uri: match route by uri(base on radixtree) - radixtree_host_uri: match route by host + uri(base on radixtree) - radixtree_uri_with_parameter: match route by uri with parameters |
| apisix.image.pullPolicy | string | `"IfNotPresent"` | Apache APISIX image pull policy |
| apisix.image.repository | string | `"apache/apisix"` | Apache APISIX image repository |
| apisix.image.tag | string | `"3.5.0-debian"` | Apache APISIX image tag Overrides the image tag whose default is the chart appVersion. |
| apisix.image.tag | string | `"3.6.0-debian"` | Apache APISIX image tag Overrides the image tag whose default is the chart appVersion. |
| apisix.kind | string | `"Deployment"` | Use a `DaemonSet` or `Deployment` |
| apisix.luaModuleHook | object | `{"configMapRef":{"mounts":[{"key":"","path":""}],"name":""},"enabled":false,"hookPoint":"","luaPath":""}` | Whether to add a custom lua module |
| apisix.luaModuleHook.configMapRef | object | `{"mounts":[{"key":"","path":""}],"name":""}` | configmap that stores the codes |
Expand Down Expand Up @@ -120,21 +120,6 @@ The command removes all the Kubernetes components associated with the chart and
| dashboard.config.conf.etcd.prefix | string | `"/apisix"` | apisix configurations prefix |
| dashboard.config.conf.etcd.username | string | `nil` | Specifies etcd basic auth username if enable etcd auth |
| dashboard.enabled | bool | `false` | |
| deployment.certs | object | `{"cert":"","cert_key":"","certsSecret":"","mTLSCACert":"","mTLSCACertSecret":""}` | certs used for certificates in decoupled mode |
| deployment.certs.cert | string | `""` | cert name in certsSecret |
| deployment.certs.cert_key | string | `""` | cert key in certsSecret |
| deployment.certs.certsSecret | string | `""` | secret name used for decoupled mode |
| deployment.certs.mTLSCACert | string | `""` | mTLS CA cert filename in mTLSCACertSecret |
| deployment.certs.mTLSCACertSecret | string | `""` | trusted_ca_cert name in certsSecret |
| deployment.controlPlane | object | `{"cert":"","certKey":"","certsSecret":"","confServerPort":"9280"}` | used for control_plane deployment mode |
| deployment.controlPlane.cert | string | `""` | conf Server CA cert name in certsSecret |
| deployment.controlPlane.certKey | string | `""` | conf Server cert key name in certsSecret |
| deployment.controlPlane.certsSecret | string | `""` | secret name used by conf Server |
| deployment.controlPlane.confServerPort | string | `"9280"` | conf Server address |
| deployment.dataPlane | object | `{"controlPlane":{"host":[],"prefix":"/apisix","timeout":30}}` | used for data_plane deployment mode |
| deployment.dataPlane.controlPlane.host | list | `[]` | The hosts of the control_plane used by the data_plane |
| deployment.dataPlane.controlPlane.prefix | string | `"/apisix"` | The prefix of the control_plane used by the data_plane |
| deployment.dataPlane.controlPlane.timeout | int | `30` | Timeout when the data plane connects to the control plane |
| deployment.mode | string | `"traditional"` | Apache APISIX deployment mode Optional: traditional, decoupled ref: https://apisix.apache.org/docs/apisix/deployment-modes/ |
| deployment.role | string | `"traditional"` | Deployment role Optional: traditional, data_plane, control_plane ref: https://apisix.apache.org/docs/apisix/deployment-modes/ |
| discovery.enabled | bool | `false` | Enable or disable Apache APISIX integration service discovery |
Expand Down
32 changes: 0 additions & 32 deletions charts/apisix/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -147,21 +147,6 @@ spec:
subPath: {{ .Values.gateway.tls.certCAFilename }}
{{- end }}

{{- if and (eq .Values.deployment.role "control_plane") .Values.deployment.controlPlane.certsSecret }}
- mountPath: /conf-server-ssl
name: conf-server-ssl
{{- end }}

{{- if and (eq .Values.deployment.mode "decoupled") .Values.deployment.certs.mTLSCACertSecret }}
- mountPath: /conf-ca-ssl
name: conf-ca-ssl
{{- end }}

{{- if and (eq .Values.deployment.mode "decoupled") .Values.deployment.certs.certsSecret }}
- mountPath: /conf-client-ssl
name: conf-client-ssl
{{- end }}

{{- if .Values.etcd.auth.tls.enabled }}
- mountPath: /etcd-ssl
name: etcd-ssl
Expand Down Expand Up @@ -226,23 +211,6 @@ spec:
secretName: {{ .Values.etcd.auth.tls.existingSecret | quote }}
name: etcd-ssl
{{- end }}
{{- if and (eq .Values.deployment.role "control_plane") .Values.deployment.controlPlane.certsSecret }}
- secret:
secretName: {{ .Values.deployment.controlPlane.certsSecret | quote }}
name: conf-server-ssl
{{- end }}

{{- if and (eq .Values.deployment.mode "decoupled") .Values.deployment.certs.mTLSCACertSecret }}
- secret:
secretName: {{ .Values.deployment.certs.mTLSCACertSecret | quote }}
name: conf-ca-ssl
{{- end }}

{{- if and (eq .Values.deployment.mode "decoupled") .Values.deployment.certs.certsSecret }}
- secret:
secretName: {{ .Values.deployment.certs.certsSecret | quote }}
name: conf-client-ssl
{{- end }}
{{- if .Values.apisix.setIDFromPodUID }}
- downwardAPI:
items:
Expand Down
27 changes: 1 addition & 26 deletions charts/apisix/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,6 @@ data:
{{- if eq .Values.deployment.role "control_plane" }}
role_control_plane:
config_provider: etcd
conf_server:
listen: 0.0.0.0:{{ .Values.deployment.controlPlane.confServerPort }}
cert: "/conf-server-ssl/{{ .Values.deployment.controlPlane.cert }}"
cert_key: "/conf-server-ssl/{{ .Values.deployment.controlPlane.certKey }}"
{{- if .Values.deployment.certs.mTLSCACertSecret }}
client_ca_cert: "/conf-ca-ssl/{{ .Values.deployment.certs.mTLSCACert }}"
{{- end }}
{{- end }}
admin:
Expand Down Expand Up @@ -386,25 +379,7 @@ data:
{{- if eq .Values.deployment.role "data_plane" }}
role_data_plane:
config_provider: control_plane
control_plane:
host:
{{- range $.Values.deployment.dataPlane.controlPlane.host }}
- {{ . | quote }}
{{- end }}
prefix: {{ .Values.deployment.dataPlane.controlPlane.prefix }}
timeout: {{ .Values.deployment.dataPlane.controlPlane.timeout }}
{{- end }}
{{- if eq .Values.deployment.mode "decoupled"}}
{{- if .Values.deployment.certs.certsSecret }}
certs:
cert: "/conf-client-ssl/{{ .Values.deployment.certs.cert }}"
cert_key: "/conf-client-ssl/{{ .Values.deployment.certs.cert_key }}"
{{- if .Values.deployment.certs.mTLSCACertSecret }}
trusted_ca_cert: "/conf-ca-ssl/{{ .Values.deployment.certs.mTLSCACert }}"
{{- end }}
{{- end }}
config_provider: etcd
{{- end }}
{{- end }}
38 changes: 0 additions & 38 deletions charts/apisix/templates/service-control-plane.yaml

This file was deleted.

37 changes: 1 addition & 36 deletions charts/apisix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ apisix:
pullPolicy: IfNotPresent
# -- Apache APISIX image tag
# Overrides the image tag whose default is the chart appVersion.
tag: 3.5.0-debian
tag: 3.6.0-debian

# -- Use a `DaemonSet` or `Deployment`
kind: Deployment
Expand Down Expand Up @@ -218,41 +218,6 @@ deployment:
# ref: https://apisix.apache.org/docs/apisix/deployment-modes/
role: "traditional"

# -- used for control_plane deployment mode
controlPlane:
# -- conf Server address
confServerPort: "9280"
# -- secret name used by conf Server
certsSecret: ""
# -- conf Server CA cert name in certsSecret
cert: ""
# -- conf Server cert key name in certsSecret
certKey: ""

# -- used for data_plane deployment mode
dataPlane:
controlPlane:
# -- The hosts of the control_plane used by the data_plane
host: []
# -- The prefix of the control_plane used by the data_plane
prefix: "/apisix"
# -- Timeout when the data plane connects to the control plane
timeout: 30

# -- certs used for certificates in decoupled mode
certs:
# -- secret name used for decoupled mode
certsSecret: ""
# -- cert name in certsSecret
cert: ""
# -- cert key in certsSecret
cert_key: ""

# -- trusted_ca_cert name in certsSecret
mTLSCACertSecret: ""
# -- mTLS CA cert filename in mTLSCACertSecret
mTLSCACert: ""

gateway:
# -- Apache APISIX service type for user access itself
type: NodePort
Expand Down

0 comments on commit 5eb6798

Please sign in to comment.