Skip to content
Snippets Groups Projects
Verified Commit c167c95e authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

fix helmhelm test

parent fa9b5390
No related branches found
No related tags found
1 merge request!293Resolve "Cannot reference a secret from another namespace with secretKeyRef"
Pipeline #31241 passed with stages
in 13 minutes and 8 seconds
# Changelog # Changelog
## [0.14.0] - 2022-10-18
* Fix helm test when you try to use ssoLogin
To use this fix, you need to change your values.yaml, set
`tests.ssoLogin.password` to the password of the SSO user and remove the
`tests.ssoLogin.passwordSecret` section.
## [0.13.3] - 2022-10-06 ## [0.13.3] - 2022-10-06
* Do not accidentally send onlyoffice traffic to cypress pod. * Do not accidentally send onlyoffice traffic to cypress pod.
......
...@@ -4,7 +4,7 @@ description: | ...@@ -4,7 +4,7 @@ description: |
A helm chart for installing NextCloud and setting up ONLYOFFICE integration A helm chart for installing NextCloud and setting up ONLYOFFICE integration
name: nextcloud-onlyoffice name: nextcloud-onlyoffice
appVersion: NC-24.0.5-OO-7.2.0.204 appVersion: NC-24.0.5-OO-7.2.0.204
version: 0.13.6 version: 0.14.0
icon: https://cdn.rawgit.com/docker-library/docs/defa5ffc7123177acd60ddef6e16bddf694cc35f/nextcloud/logo.svg icon: https://cdn.rawgit.com/docker-library/docs/defa5ffc7123177acd60ddef6e16bddf694cc35f/nextcloud/logo.svg
dependencies: dependencies:
# https://artifacthub.io/packages/helm/nextcloud/nextcloud # https://artifacthub.io/packages/helm/nextcloud/nextcloud
......
...@@ -34,9 +34,8 @@ spec: ...@@ -34,9 +34,8 @@ spec:
- name: CYPRESS_SSO_PW - name: CYPRESS_SSO_PW
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: {{ .Values.tests.ssoLogin.passwordSecret.name }} name: "{{ .Release.Name }}-sso-password"
key: {{ .Values.tests.ssoLogin.passwordSecret.key }} key: password
namespace: {{ .Values.tests.ssoLogin.passwordSecret.namespace }}
{{- else }} {{- else }}
- name: CYPRESS_NEXTCLOUD_ADMIN_USER - name: CYPRESS_NEXTCLOUD_ADMIN_USER
value: admin value: admin
......
{{- if .Values.tests.ssoLogin.enabled }}
apiVersion: v1
kind: Secret
metadata:
name: "{{ .Release.Name }}-sso-password"
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
stringData:
password: "{{ .Values.tests.ssoLogin.password }}"
{{- end }}
...@@ -230,10 +230,8 @@ tests: ...@@ -230,10 +230,8 @@ tests:
# Otherwise, username "admin" and nextcloud.nextcloud.password are used # Otherwise, username "admin" and nextcloud.nextcloud.password are used
enabled: false enabled: false
username: admin username: admin
passwordSecret: # # Uncomment and set to the password of the SSO user
name: stackspin-single-sign-on-variables # password: SET_PASSWORD_HERE
key: userbackend_admin_password
namespace: flux-system
cypress: cypress:
# Set project ID and record key if cypress screenshots and videos should be uploaded # Set project ID and record key if cypress screenshots and videos should be uploaded
# to the cypress dashboard # to the cypress dashboard
......
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