Skip to content

Commit 70156a9

Browse files
authored
feat: add fallback_cp configuration to gateway chart (#226)
Signed-off-by: Nic <[email protected]>
1 parent 52e68e6 commit 70156a9

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

charts/gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.2.33
17+
version: 0.2.34
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to

charts/gateway/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ The command removes all the Kubernetes components associated with the chart and
147147
| deployment.certs.certsSecret | string | `""` | secret name used for decoupled mode |
148148
| deployment.certs.mTLSCACert | string | `""` | mTLS CA cert filename in mTLSCACertSecret |
149149
| deployment.certs.mTLSCACertSecret | string | `""` | trusted_ca_cert name in certsSecret |
150+
| deployment.fallback_cp | object | `{}` | use cloud storage as the fallback control plane, should be consistent with the same configuration in control plane side. |
150151
| discovery.enabled | bool | `false` | Enable or disable API7 Gateway integration service discovery |
151152
| discovery.registry | object | `{}` | Registry is the same to the one in APISIX [config-default.yaml](https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L281), and refer to such file for more setting details. also refer to [this documentation for integration service discovery](https://apisix.apache.org/docs/apisix/discovery) |
152153
| dns.resolvers[0] | string | `"127.0.0.1"` | |

charts/gateway/templates/configmap.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,13 @@ data:
256256
{{- end }}
257257
258258
deployment:
259+
{{- if .Values.deployment.fallback_cp }}
260+
role: data_plane
261+
role_data_plane:
262+
config_provider: yaml
263+
fallback_cp:
264+
{{- toYaml .Values.deployment.fallback_cp | nindent 8 }}
265+
{{- else }}
259266
role: traditional
260267
role_traditional:
261268
config_provider: etcd
@@ -334,5 +341,6 @@ data:
334341
sni: "{{ .Values.etcd.auth.tls.sni }}"
335342
{{- end }}
336343
{{- end }}
344+
{{- end }}
337345
{{- end }}
338346
{{- end }}

charts/gateway/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,16 @@ rbac:
236236
create: false
237237

238238
deployment:
239+
# -- use cloud storage as the fallback control plane,
240+
# should be consistent with the same configuration in control plane side.
241+
fallback_cp: {}
242+
# aws_s3:
243+
# access_key: "access"
244+
# secret_key: "secret"
245+
# region: "ap-south-1"
246+
# resource_bucket: "to-push-resource-data"
247+
# config_bucket: "to-push-config-data"
248+
239249
# -- certs used for certificates in decoupled mode
240250
certs:
241251
# -- secret name used for decoupled mode

0 commit comments

Comments
 (0)