Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/apisix] Fixes to support running Apisix in standalone mode #27062

Merged
merged 10 commits into from
Jun 20, 2024
8 changes: 6 additions & 2 deletions bitnami/apisix/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 3.2.4 (2024-06-18)
## 3.2.5 (2024-06-18)

* [bitnami/apisix] Release 3.2.4 ([#27329](https://github.com/bitnami/charts/pull/27329))
* [bitnami/apisix] Fixes to support running Apisix in standalone mode ([#27062](https://github.com/bitnami/charts/pull/27062))

## <small>3.2.4 (2024-06-18)</small>

* [bitnami/apisix] Release 3.2.4 (#27329) ([991b820](https://github.com/bitnami/charts/commit/991b820e187ea80c4b16146128af9c4d06df03ee)), closes [#27329](https://github.com/bitnami/charts/issues/27329)

## <small>3.2.3 (2024-06-17)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/apisix/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ sources:
- https://github.com/bitnami/charts/tree/main/bitnami/apisix
- https://github.com/bitnami/charts/tree/main/bitnami/apisix-dashboard
- https://github.com/bitnami/charts/tree/main/bitnami/apisix-ingress-controller
version: 3.2.4
version: 3.2.5
5 changes: 4 additions & 1 deletion bitnami/apisix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ ingressController:
enabled: false
etcd:
enabled: false
dashboard:
enabled: false
dataPlane:
extraConfig:
deployment:
Expand All @@ -102,7 +104,7 @@ dataPlane:
name: apisix-routes
extraVolumeMounts:
- name: routes
mountPath: /opt/bitnami/apisix/conf/apisix.yaml
mountPath: /usr/local/apisix/conf/apisix.yaml
jotamartos marked this conversation as resolved.
Show resolved Hide resolved
subPath: apisix.yaml
extraDeploy:
- apiVersion: v1
Expand All @@ -118,6 +120,7 @@ extraDeploy:
nodes:
"127.0.0.1:1980": 1
type: roundrobin
#END
```

### Ingress
Expand Down
4 changes: 4 additions & 0 deletions bitnami/apisix/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ Init container definition for waiting for the database to be ready
env:
- name: BITNAMI_DEBUG
value: {{ ternary "true" "false" (or .context.Values.image.debug .context.Values.diagnosticMode.enabled) | quote }}
{{- if .context.Values.controlPlane.enabled }}
- name: APISIX_ADMIN_API_TOKEN
valueFrom:
secretKeyRef:
Expand All @@ -363,6 +364,7 @@ Init container definition for waiting for the database to be ready
secretKeyRef:
name: {{ include "apisix.control-plane.secretName" .context }}
key: {{ include "apisix.control-plane.viewerTokenKey" .context }}
{{- end }}
{{- if (include "apisix.etcd.authEnabled" .context) }}
- name: APISIX_ETCD_USER
value: {{ include "apisix.etcd.user" .context }}
Expand Down Expand Up @@ -560,6 +562,7 @@ Render configuration for the dashboard and ingress-controller components
env:
- name: BITNAMI_DEBUG
value: {{ ternary "true" "false" (or .context.Values.image.debug .context.Values.diagnosticMode.enabled) | quote }}
{{- if .context.Values.controlPlane.enabled }}
- name: APISIX_ADMIN_API_TOKEN
valueFrom:
secretKeyRef:
Expand All @@ -570,6 +573,7 @@ Render configuration for the dashboard and ingress-controller components
secretKeyRef:
name: {{ include "apisix.control-plane.secretName" .context }}
key: {{ include "apisix.control-plane.viewerTokenKey" .context }}
{{- end }}
{{- if (include "apisix.etcd.authEnabled" .context) }}
- name: APISIX_ETCD_USER
value: {{ include "apisix.etcd.user" .context }}
Expand Down
2 changes: 2 additions & 0 deletions bitnami/apisix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ dataPlane:
prefix: /apisix
timeout: 30
{{- end }}
{{- if or .Values.etcd.enabled .Values.externalEtcd.servers }}
etcd:
host:
{{- if .Values.etcd.enabled }}
Expand All @@ -314,6 +315,7 @@ dataPlane:
user: "{{ print "{{APISIX_ETCD_USER}}" }}"
password: "{{ print "{{APISIX_ETCD_PASSWORD}}" }}"
{{- end }}
{{- end }}
{{- if .Values.dataPlane.tls.enabled }}
certs:
{{- if .Values.dataPlane.tls.enabled }}
Expand Down
Loading