Skip to content
Snippets Groups Projects
Commit 6ae229ad authored by Varac's avatar Varac
Browse files

Merge branch '1078-cannot-reference-a-secret-from-another-namespace-with-secretkeyref' into 'main'

Resolve "Cannot reference a secret from another namespace with secretKeyRef"

Closes #1078

See merge request !293
parents fa9b5390 c167c95e
No related branches found
No related tags found
1 merge request!293Resolve "Cannot reference a secret from another namespace with secretKeyRef"
Pipeline #31245 passed with stages
in 9 minutes and 43 seconds
# 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
* Do not accidentally send onlyoffice traffic to cypress pod.
......
......@@ -4,7 +4,7 @@ description: |
A helm chart for installing NextCloud and setting up ONLYOFFICE integration
name: nextcloud-onlyoffice
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
dependencies:
# https://artifacthub.io/packages/helm/nextcloud/nextcloud
......
......@@ -34,9 +34,8 @@ spec:
- name: CYPRESS_SSO_PW
valueFrom:
secretKeyRef:
name: {{ .Values.tests.ssoLogin.passwordSecret.name }}
key: {{ .Values.tests.ssoLogin.passwordSecret.key }}
namespace: {{ .Values.tests.ssoLogin.passwordSecret.namespace }}
name: "{{ .Release.Name }}-sso-password"
key: password
{{- else }}
- name: CYPRESS_NEXTCLOUD_ADMIN_USER
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:
# Otherwise, username "admin" and nextcloud.nextcloud.password are used
enabled: false
username: admin
passwordSecret:
name: stackspin-single-sign-on-variables
key: userbackend_admin_password
namespace: flux-system
# # Uncomment and set to the password of the SSO user
# password: SET_PASSWORD_HERE
cypress:
# Set project ID and record key if cypress screenshots and videos should be uploaded
# 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