chore(guacamole-client): prepare env's for next update and add proxy options (#3329)
* chore(guacamole-client): prepare env's for next update * add note * Add proxy config
This commit is contained in:
@@ -25,7 +25,7 @@ sources:
|
|||||||
- https://hub.docker.com/r/guacamole/guacamole
|
- https://hub.docker.com/r/guacamole/guacamole
|
||||||
- http://guacamole.incubator.apache.org/doc/gug/introduction.html
|
- http://guacamole.incubator.apache.org/doc/gug/introduction.html
|
||||||
type: application
|
type: application
|
||||||
version: 4.0.26
|
version: 4.0.27
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- utilities
|
- utilities
|
||||||
|
|||||||
@@ -98,7 +98,6 @@ questions:
|
|||||||
required: true
|
required: true
|
||||||
default: 4822
|
default: 4822
|
||||||
|
|
||||||
# Include{containerConfig}
|
|
||||||
- variable: general
|
- variable: general
|
||||||
group: "App Configuration"
|
group: "App Configuration"
|
||||||
label: "General Configuration"
|
label: "General Configuration"
|
||||||
@@ -720,7 +719,41 @@ questions:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
- variable: proxy
|
||||||
|
group: "App Configuration"
|
||||||
|
label: "Proxy Configuration"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: REMOTE_IP_VALVE_ENABLED
|
||||||
|
label: "Enable Proxy"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
show_subquestions_if: true
|
||||||
|
subquestions:
|
||||||
|
- variable: PROXY_BY_HEADER
|
||||||
|
label: "Proxy by Header (Leave empty for default)"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: PROXY_PROTOCOL_HEADER
|
||||||
|
label: "Proxy Protocol Header (Leave empty for default)"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: PROXY_IP_HEADER
|
||||||
|
label: "Proxy IP Header (Leave empty for default)"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: PROXY_ALLOWED_IPS_REGEX
|
||||||
|
label: "Proxy Allowed IP Regex (Leave empty for default)"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
# Include{containerConfig}
|
||||||
- variable: service
|
- variable: service
|
||||||
group: "Networking and Services"
|
group: "Networking and Services"
|
||||||
label: "Configure Service(s)"
|
label: "Configure Service(s)"
|
||||||
|
|||||||
@@ -220,4 +220,23 @@ data:
|
|||||||
SAML_GROUP_ATTRIBUTE: {{ .Values.saml.SAML_GROUP_ATTRIBUTE | quote }}
|
SAML_GROUP_ATTRIBUTE: {{ .Values.saml.SAML_GROUP_ATTRIBUTE | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{/* PROXY */}}
|
||||||
|
{{- if .Values.proxy.REMOTE_IP_VALVE_ENABLED }}
|
||||||
|
REMOTE_IP_VALVE_ENABLED: {{ .Values.proxy.REMOTE_IP_VALVE_ENABLED | quote }}
|
||||||
|
{{- if .Values.proxy.PROXY_BY_HEADER }}
|
||||||
|
PROXY_BY_HEADER: {{ .Values.proxy.PROXY_BY_HEADER | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.proxy.PROXY_PROTOCOL_HEADER }}
|
||||||
|
PROXY_PROTOCOL_HEADER: {{ .Values.proxy.PROXY_PROTOCOL_HEADER | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.proxy.PROXY_PROTOCOL_HEADER }}
|
||||||
|
PROXY_PROTOCOL_HEADER: {{ .Values.proxy.PROXY_PROTOCOL_HEADER | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.proxy.PROXY_IP_HEADER }}
|
||||||
|
PROXY_IP_HEADER: {{ .Values.proxy.PROXY_IP_HEADER | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.proxy.PROXY_ALLOWED_IPS_REGEX }}
|
||||||
|
PROXY_ALLOWED_IPS_REGEX: {{ .Values.proxy.PROXY_ALLOWED_IPS_REGEX | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -18,11 +18,10 @@ service:
|
|||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
# Will probably be removed on 1.5.0 (https://github.com/apache/guacamole-client/pull/717)
|
||||||
POSTGRES_DATABASE: "{{ .Values.postgresql.postgresqlDatabase }}"
|
POSTGRES_DATABASE: "{{ .Values.postgresql.postgresqlDatabase }}"
|
||||||
POSTGRES_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
POSTGRES_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||||
POSTGRES_PORT: 5432
|
POSTGRES_PORT: 5432
|
||||||
GUACD_HOSTNAME: "localhost"
|
|
||||||
GUACD_PORT: 4822
|
|
||||||
POSTGRES_HOSTNAME:
|
POSTGRES_HOSTNAME:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: dbcreds
|
name: dbcreds
|
||||||
@@ -31,6 +30,20 @@ env:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: dbcreds
|
name: dbcreds
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
|
# New format
|
||||||
|
POSTGRESQL_PASSWORD:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dbcreds
|
||||||
|
key: postgresql-password
|
||||||
|
POSTGRESQL_HOSTNAME:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dbcreds
|
||||||
|
key: plainhost
|
||||||
|
POSTGRESQL_DATABASE: "{{ .Values.postgresql.postgresqlDatabase }}"
|
||||||
|
POSTGRESQL_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||||
|
POSTGRESQL_PORT: 5432
|
||||||
|
GUACD_HOSTNAME: "localhost"
|
||||||
|
GUACD_PORT: 4822
|
||||||
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
@@ -140,6 +153,14 @@ saml:
|
|||||||
# SAML_COMPRESS_RESPONSE:
|
# SAML_COMPRESS_RESPONSE:
|
||||||
# SAML_GROUP_ATTRIBUTE:
|
# SAML_GROUP_ATTRIBUTE:
|
||||||
|
|
||||||
|
proxy:
|
||||||
|
{}
|
||||||
|
# REMOTE_IP_VALVE_ENABLED: false
|
||||||
|
# PROXY_BY_HEADER: ""
|
||||||
|
# PROXY_PROTOCOL_HEADER: ""
|
||||||
|
# PROXY_IP_HEADER: ""
|
||||||
|
# PROXY_ALLOWED_IPS_REGEX: ""
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: true
|
enabled: true
|
||||||
existingSecret: "dbcreds"
|
existingSecret: "dbcreds"
|
||||||
@@ -188,13 +209,13 @@ initContainers:
|
|||||||
2-initdb:
|
2-initdb:
|
||||||
image: "{{ .Values.multiinitImage.repository }}:{{ .Values.multiinitImage.tag }}"
|
image: "{{ .Values.multiinitImage.repository }}:{{ .Values.multiinitImage.tag }}"
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_DATABASE
|
- name: POSTGRESQL_DATABASE
|
||||||
value: "{{ .Values.postgresql.postgresqlDatabase }}"
|
value: "{{ .Values.postgresql.postgresqlDatabase }}"
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRESQL_USER
|
||||||
value: "{{ .Values.postgresql.postgresqlUsername }}"
|
value: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||||
- name: POSTGRES_PORT
|
- name: POSTGRESQL_PORT
|
||||||
value: "5432"
|
value: "5432"
|
||||||
- name: POSTGRES_HOSTNAME
|
- name: POSTGRESQL_HOSTNAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: dbcreds
|
name: dbcreds
|
||||||
@@ -210,12 +231,12 @@ initContainers:
|
|||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- |-
|
- |-
|
||||||
psql -h "$POSTGRES_HOSTNAME" -d "$POSTGRES_DATABASE" -U "$POSTGRES_USER" -p "$POSTGRES_PORT" -o '/dev/null' -c 'SELECT * FROM public.guacamole_user'
|
psql -h "$POSTGRESQL_HOSTNAME" -d "$POSTGRESQL_DATABASE" -U "$POSTGRESQL_USER" -p "$POSTGRESQL_PORT" -o '/dev/null' -c 'SELECT * FROM public.guacamole_user'
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "DB already initialized. Skipping..."
|
echo "DB already initialized. Skipping..."
|
||||||
else
|
else
|
||||||
echo "Initializing DB's schema..."
|
echo "Initializing DB's schema..."
|
||||||
psql -h "$POSTGRES_HOSTNAME" -d "$POSTGRES_DATABASE" -U "$POSTGRES_USER" -p "$POSTGRES_PORT" -a -w -f /initdbdata/initdb.sql
|
psql -h "$POSTGRESQL_HOSTNAME" -d "$POSTGRESQL_DATABASE" -U "$POSTGRESQL_USER" -p "$POSTGRESQL_PORT" -a -w -f /initdbdata/initdb.sql
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "DB's schema initialized successfully!"
|
echo "DB's schema initialized successfully!"
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user