##

-- Infisical Helm Chart --

██╗███╗   ██╗███████╗██╗███████╗██╗ ██████╗ █████╗ ██╗     
██║████╗  ██║██╔════╝██║██╔════╝██║██╔════╝██╔══██╗██║     
██║██╔██╗ ██║█████╗  ██║███████╗██║██║     ███████║██║     
██║██║╚██╗██║██╔══╝  ██║╚════██║██║██║     ██╔══██║██║     
██║██║ ╚████║██║     ██║███████║██║╚██████╗██║  ██║███████╗
╚═╝╚═╝  ╚═══╝╚═╝     ╚═╝╚══════╝╚═╝ ╚═════╝╚═╝  ╚═╝╚══════╝
{{ .Chart.Name }} ({{ .Chart.Version }})


╭―― Thank you for installing Infisical! 👋  ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――┤
│
│   Infisical / All-in-one open-source SecretOps solution to manage your secrets across your infra! 🔒🔑
│
│   Visit < https://infisical.com/docs/self-hosting/overview > for further documentation about self-hosting!
│
│   Current installation (infisical) :
│   • infisical-backend  : {{ .Values.backend.enabled }}
│   • mongodb            : {{ .Values.mongodb.enabled }}
│   • mailhog            : {{ .Values.mailhog.enabled }}
|   • nginx              : {{ .Values.ingress.nginx.enabled }}
│
╰―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――┤

――― Here's a list of helpful commands to get you started 📝  ―――――――――――――――――――――――――――――――――――――――――┤

→ Get all the Infisical resources (excluding secrets/pvcs)
$ kubectl get all -n {{ .Release.Namespace }}
 
→ Get your release status
$ helm status -n {{ .Release.Namespace }} {{ .Release.Name }}

→ Get your release resources
$ helm get all -n {{ .Release.Namespace }} {{ .Release.Name }}

→ Uninstall your release
$ helm uninstall -n {{ .Release.Namespace }} {{ .Release.Name }}

→ Get MongoDB root password
$ kubectl get secret -n {{ .Release.Namespace }} mongodb
   -o jsonpath="{.data['mongodb-root-password']}" | base64 -d

→ Get MongoDB users passwords
$ kubectl get secret -n {{ .Release.Namespace }} mongodb
   -o jsonpath="{.data['mongodb-passwords']}" | base64 -d 

→ Export your backend secrets (requires jq)
$ kubectl get secrets/<your-secret-name> -n {{ .Release.Namespace }} \
   -o json | jq '.data | map_values(@base64d)' > <dest-filename>.bak
 
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――┤

##
