feat(freeradius): add PostgreSQL support and release 2.0.0

- add separate MySQL and PostgreSQL query configurations
- fix radpostauth INSERT query for PostgreSQL
- remove obsolete pass column from post-auth query
- update ConfigMap and Deployment templates
- bump chart version to 2.0.0
This commit is contained in:
2026-09-08 10:04:31 +02:00
parent eeeb230b2b
commit 20b260a795
7 changed files with 774 additions and 8 deletions
@@ -6,7 +6,7 @@ SPDX-License-Identifier: APACHE-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ printf "%s-mods-config" (include "st-common.names.fullname" .) }}
name: {{ printf "%s-mods-config-mysql-queries" (include "st-common.names.fullname" .) }}
namespace: {{ include "st-common.names.namespace" . | quote }}
labels: {{- include "st-common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
@@ -16,4 +16,4 @@ metadata:
annotations: {{- include "st-common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
{{- end }}
data:
{{ (.Files.Glob "files/mods-config/queries.conf").AsConfig | indent 2 }}
{{ (.Files.Glob "files/mods-config/mysql-queries.conf").AsConfig | indent 2 }}
@@ -0,0 +1,19 @@
{{- /*
Copyright (c) 2025 Firmansyah Nainggolan. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ printf "%s-mods-config-postgres-queries" (include "st-common.names.fullname" .) }}
namespace: {{ include "st-common.names.namespace" . | quote }}
labels: {{- include "st-common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "st-common.tplvalues.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "st-common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
{{- end }}
data:
{{ (.Files.Glob "files/mods-config/postgres-queries.conf").AsConfig | indent 2 }}
+10 -4
View File
@@ -283,9 +283,12 @@ spec:
- name: freeradius-mods
mountPath: /etc/freeradius/mods-enabled/sqlippool
subPath: sqlippool
- name: freeradius-mods-config
- name: freeradius-mods-config-mysql-queries
mountPath: /etc/freeradius/mods-config/sql/main/mysql/queries.conf
subPath: queries.conf
subPath: mysql-queries.conf
- name: freeradius-mods-config-postgres-queries
mountPath: /etc/freeradius/mods-config/sql/main/postgresql/queries.conf
subPath: postgres-queries.conf
- name: freeradius-radius-conf
mountPath: /etc/freeradius/radius.conf
subPath: radius.conf
@@ -340,9 +343,12 @@ spec:
- name: freeradius-sites
configMap:
name: {{ printf "%s-sites" (include "st-common.names.fullname" .) }}
- name: freeradius-mods-config
- name: freeradius-mods-config-mysql-queries
configMap:
name: {{ printf "%s-mods-config" (include "st-common.names.fullname" .) }}
name: {{ printf "%s-mods-config-mysql-queries" (include "st-common.names.fullname" .) }}
- name: freeradius-mods-config-postgres-queries
configMap:
name: {{ printf "%s-mods-config-postgres-queries" (include "st-common.names.fullname" .) }}
- name: freeradius-radius-conf
configMap:
name: {{ printf "%s-radius-conf" (include "st-common.names.fullname" .) }}