Thank you for installing {{ .Chart.Name }}.

Your release is named {{ .Release.Name }}.

To learn more about the release, try:

  $ helm status {{ .Release.Name }}
  $ helm get all {{ .Release.Name }}

IMPORTANT: This is a development deployment. For production use, you MUST change the following default credentials:

1. Keycloak Admin: adminUser: admin, adminPassword: admin
2. OpenCloud Admin: adminPassword: admin
3. PostgreSQL: user: keycloak, password: keycloak
4. MinIO: rootUser: opencloud, rootPassword: opencloud-secret-key
5. OnlyOffice Database: sql.dbUser: onlyoffice, sql.dbPass: onlyoffice
6. RabbitMQ: url: amqp://guest:guest@localhost

Using default credentials in production environments poses significant security risks.

The following services have been deployed:

1. OpenCloud (Main Application):
   - Service: {{ include "opencloud.opencloud.fullname" . }}
   - Port: 9200
   - Storage Driver: decomposeds3
   - System Storage Driver: decomposed
   - S3 Storage: {{ if .Values.opencloud.storage.s3.external.enabled }}{{ .Values.opencloud.storage.s3.external.endpoint }}{{ else if .Values.opencloud.storage.s3.internal.enabled }}MinIO ({{ include "opencloud.minio.fullname" . }}){{ else }}Not configured{{ end }}
   - S3 Bucket: {{ if .Values.opencloud.storage.s3.external.enabled }}{{ .Values.opencloud.storage.s3.external.bucket }}{{ else if .Values.opencloud.storage.s3.internal.enabled }}{{ .Values.opencloud.storage.s3.internal.bucketName }}{{ else }}Not configured{{ end }}

{{- if .Values.keycloak.internal.enabled }}
2. Keycloak (Authentication):
   - Service: {{ include "opencloud.keycloak.fullname" . }}
   - Port: 8080
   - Username: {{ .Values.keycloak.internal.adminUser }}
   - Password: {{ .Values.keycloak.internal.adminPassword }}
{{- end }}

{{- if .Values.opencloud.storage.s3.internal.enabled }}
3. MinIO (Object Storage):
   - Service: {{ include "opencloud.minio.fullname" . }}
   - API Port: 9000
   - Console Port: 9001
   - Username: {{ .Values.opencloud.storage.s3.internal.rootUser }}
   - Password: {{ .Values.opencloud.storage.s3.internal.rootPassword }}
{{- end }}

{{- if and .Values.onlyoffice.collaboration.enabled .Values.onlyoffice.enabled }}
4. OnlyOffice Collaboration Service:
   - Service: {{ include "opencloud.fullname" . }}-collaboration
   - HTTP Port: 9300
   - gRPC Port: 9301
{{- end }}


{{- if .Values.httpRoute.enabled }}
IMPORTANT: This chart includes HTTPRoute resources that route traffic to the OpenCloud, Keycloak, and MinIO services.
All HTTPRoutes are configured to use the Gateway named "{{ .Values.httpRoute.gateway.name }}" in the
{{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }} namespace.

Make sure the Gateway exists and is properly configured to accept traffic for the following domains:
- OpenCloud: {{ include "opencloud.domain" . }} (Service: {{ include "opencloud.opencloud.fullname" . }}, Port: 9200)
{{- if .Values.keycloak.internal.enabled }}
- Keycloak: {{ include "opencloud.keycloak.domain" . }} (Service: {{ include "opencloud.keycloak.fullname" . }}, Port: 8080)
{{- end }}
{{- if .Values.opencloud.storage.s3.internal.enabled }}
- MinIO Console: {{ include "opencloud.minio.domain" . }} (Service: {{ include "opencloud.minio.fullname" . }}, Port: 9001)
{{- end }}
{{- if and .Values.onlyoffice.collaboration.enabled .Values.onlyoffice.enabled }}
- OnlyOffice Collaboration: {{ .Values.global.domain.wopi }} (Service: {{ include "opencloud.fullname" . }}-collaboration, Port: 9300)
{{- end }}

{{- else }}
IMPORTANT: The HTTPRoutes are disabled. You need to configure your own ingress controller
to expose these services externally.

Example domains for your ingress configuration:
- OpenCloud: {{ include "opencloud.domain" . }} (Service: {{ include "opencloud.opencloud.fullname" . }}, Port: 9200)
{{- if .Values.keycloak.internal.enabled }}
- Keycloak: {{ include "opencloud.keycloak.domain" . }} (Service: {{ include "opencloud.keycloak.fullname" . }}, Port: 8080)
{{- end }}
{{- if .Values.opencloud.storage.s3.internal.enabled }}
- MinIO Console: {{ include "opencloud.minio.domain" . }} (Service: {{ include "opencloud.minio.fullname" . }}, Port: 9001)
{{- end }}
{{- if and .Values.onlyoffice.collaboration.enabled .Values.onlyoffice.enabled }}
- OnlyOffice Collaboration: {{ .Values.global.domain.wopi }} (Service: {{ include "opencloud.fullname" . }}-collaboration, Port: 9300)
{{- end }}
{{- end }}

For more information, please refer to the OpenCloud documentation:
  https://docs.opencloud.eu/
