http:
  http://localhost:{{ .Vars.containerPorts.http }}:
    status: 200
command:
{{- $checkCmd := "ghost config get %s -d /opt/bitnami/ghost | grep -q %d" }}
{{- $dbCheck := printf $checkCmd "database.connection.database" .Vars.mysql.auth.database }}
{{- $userCheck := printf $checkCmd "database.connection.user" .Vars.mysql.auth.username }}
{{- $passCheck := printf $checkCmd "database.connection.password" .Vars.mysql.auth.password }}
  check-db-config:
    exec: ($dbCheck) && ($userCheck) && ($passCheck)
    exit-status: 0
  check-user-info:
    exec: id
    exit-status: 0
    stdout:
      - uid={{ .Vars.containerSecurityContext.runAsUser }}
      - /groups=.*{{ .Vars.podSecurityContext.fsGroup }}/
file:
  /bitnami/ghost:
    exists: true
    filetype: directory
    mode: '2775'
    owner: root
  /var/run/secrets/kubernetes.io/serviceaccount:
    exists: {{ .Vars.serviceAccount.automountServiceAccountToken }}
    filetype: directory
    mode: "3777"