http:
  http://kubeapps-internal-kubeappsapis:{{ .Vars.kubeappsapis.service.ports.http }}/core/plugins/v1alpha1/configured-plugins:
    status: 200
  http://kubeapps-internal-dashboard:{{ .Vars.dashboard.service.ports.http }}:
    status: 200
file:
  /config/kubeapps-apis/plugins.conf:
    filetype: symlink
    exists: true
    mode: "0777"
    contains:
      - /timeoutSeconds.*{{ .Vars.kubeappsapis.pluginConfig.core.packages.v1alpha1.timeoutSeconds }}/
  /config/clusters.conf:
    filetype: symlink
    exists: true
    mode: "0777"
    contains:
    {{ range .Vars.clusters }}
      - /domain.*{{ .domain }}/
      - /name.*{{ .name }}/
    {{ end }}
  /var/run/secrets/kubernetes.io/serviceaccount:
    exists: {{ .Vars.kubeappsapis.serviceAccount.automountServiceAccountToken }}
    filetype: directory
    mode: "3777"
command:
  check-user-info:
    exec: id
    exit-status: 0
    stdout:
    - uid={{ .Vars.kubeappsapis.containerSecurityContext.runAsUser }}
    - /groups=.*{{ .Vars.kubeappsapis.podSecurityContext.fsGroup }}/
