From e08d6c229e50c985f75f32daf92208f5457942a8 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Sun, 19 Feb 2023 21:20:45 +0200 Subject: [PATCH] chore(guacamole-client): remove temp hack (#7376) --- charts/stable/guacamole-client/Chart.yaml | 2 +- charts/stable/guacamole-client/values.yaml | 75 +--------------------- 2 files changed, 4 insertions(+), 73 deletions(-) diff --git a/charts/stable/guacamole-client/Chart.yaml b/charts/stable/guacamole-client/Chart.yaml index 7de3b2b9e3e..4f525e8955c 100644 --- a/charts/stable/guacamole-client/Chart.yaml +++ b/charts/stable/guacamole-client/Chart.yaml @@ -26,7 +26,7 @@ sources: - https://github.com/apache/guacamole-client - http://guacamole.incubator.apache.org/doc/gug/introduction.html type: application -version: 7.0.21 +version: 7.0.22 annotations: truecharts.org/catagories: | - utilities diff --git a/charts/stable/guacamole-client/values.yaml b/charts/stable/guacamole-client/values.yaml index db9b45771f3..5b4fd84610a 100644 --- a/charts/stable/guacamole-client/values.yaml +++ b/charts/stable/guacamole-client/values.yaml @@ -1,7 +1,7 @@ image: repository: tccr.io/truecharts/guacamole-client pullPolicy: IfNotPresent - tag: v1.4.0@sha256:ee47f0bfa10658683f46cd08316dac56dfb78a0a71a579db0efecd59466adfee + tag: v1.5.0@sha256:d4903a81d902753a8ca5f7ff2ac76ed620002b530fff45be3ac335cb8d58d1ad podSecurityContext: runAsUser: 1001 @@ -178,16 +178,10 @@ probes: persistence: initdbdata: enabled: true + type: emptyDir mountPath: "/initdbdata" - # Both temphack and temphackalso will be removed on the next image release - temphack: - enabled: true - mountPath: "/opt/guacamole/postgresql-hack" - temphackalso: - enabled: true - mountPath: "/opt/guacamole/postgresql" -initContainers: +installContainers: 1-creat-initdb-file: image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" volumeMounts: @@ -246,68 +240,5 @@ initContainers: fi fi - # Until they release an image with the updated driver, we need to manually replace it. - # https://issues.apache.org/jira/browse/GUACAMOLE-1433 - # https://github.com/apache/guacamole-client/pull/655 - # Both 3-temp-hach and 4-temp-hack will be removed on the next image release - 3-temp-hack: - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - securityContext: - runAsUser: 1001 - runAsGroup: 1001 - volumeMounts: - - name: temphack - mountPath: "/opt/guacamole/postgresql-hack" - command: ["/bin/sh", "-c"] - args: - - |- - echo "Checking postgresql driver version..." - if [ -e /opt/guacamole/postgresql/postgresql-42.2.24.jre7.jar ]; then - echo "Version found is correct." - exit 0 - else - echo "Old version found. Will try to download a known-to-work version." - echo "Downloading (postgresql-42.2.24.jre7.jar)..." - curl -L "https://jdbc.postgresql.org/download/postgresql-42.2.24.jre7.jar" >"/opt/guacamole/postgresql-hack/postgresql-42.2.24.jre7.jar" - if [ -e /opt/guacamole/postgresql-hack/postgresql-42.2.24.jre7.jar ]; then - echo "Downloaded successfully!" - cp -r /opt/guacamole/postgresql/* /opt/guacamole/postgresql-hack/ - if [ -e /opt/guacamole/postgresql-hack/postgresql-9.4-1201.jdbc41.jar ]; then - echo "Removing old version... (postgresql-9.4-1201.jdbc41.jar)" - rm "/opt/guacamole/postgresql-hack/postgresql-9.4-1201.jdbc41.jar" - if [ $? -eq 0 ]; then - echo "Removed successfully!" - else - echo "Failed to remove." - exit 1 - fi - fi - else - echo "Failed to download." - exit 1 - fi - fi - - 4-temp-hack: - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - securityContext: - runAsUser: 1001 - runAsGroup: 1001 - volumeMounts: - - name: temphack - mountPath: "/opt/guacamole/postgresql-hack" - - name: temphackalso - mountPath: "/opt/guacamole/postgresql" - command: ["/bin/sh", "-c"] - args: - - |- - echo "Copying postgres driver into the final destination." - cp -r /opt/guacamole/postgresql-hack/* /opt/guacamole/postgresql/ - if [ -e /opt/guacamole/postgresql/postgresql-42.2.24.jre7.jar ]; then - echo "Driver copied successfully!" - else - echo "Failed to copy the driver" - fi - portal: enabled: true