Skip to content
Snippets Groups Projects
Commit 25684b6b authored by Arie Peterson's avatar Arie Peterson
Browse files

Merge branch '1110-check-nextcloud-app-compatibility-somehow' into 'main'

Resolve "Check nextcloud app compatibility somehow"

Closes #1110

See merge request !572
parents b1639766 143eb30e
No related branches found
No related tags found
1 merge request!572Resolve "Check nextcloud app compatibility somehow"
Pipeline #44213 failed with stages
in 15 minutes and 21 seconds
apiVersion: v1
kind: Pod
metadata:
name: "{{ .Release.Name }}-disabled-apps-test"
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": before-hook-creation
spec:
restartPolicy: Never
serviceAccountName: {{ .Release.Name }}-setup-apps-job
containers:
- name: test-disabled-apps
image: docker.io/bitnami/kubectl:1.25
command: ["kubectl", "exec", "deploy/{{ .Release.Name }}-nextcloud", "-n", {{ .Release.Namespace }}, "-c", "nextcloud", "--", "su", "www-data", "-s", "/bin/bash", "-c"]
args:
- >
cd /var/www/html;
echo 'Allowed to be disabled: {{ .Values.tests.disabledApps.allowedDisabled | keys | join "," }}';
echo 'Other disabled apps (empty output is okay):';
php occ app:list | sed -e "0,/^Disabled:$/d" | grep -v -E -e '({{ .Values.tests.disabledApps.allowedDisabled | keys | join "|" }})'; test $? -eq 1;
...@@ -231,3 +231,13 @@ tests: ...@@ -231,3 +231,13 @@ tests:
# message: # message:
# author: # author:
# sha: # sha:
# We verify in a helm test that no apps are disabled except ones from this list.
disabledApps:
allowedDisabled:
admin_audit:
bruteforcesettings:
encryption:
files_external:
suspicious_login:
twofactor_totp:
user_ldap:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment