# yaml-language-server: $schema=./values.schema.json
image:
  repository: public.ecr.aws/docker/library/mongo-express
  pullPolicy: IfNotPresent
  tag: latest@sha256:1b23d7976f0210dbec74045c209e52fbb26d29b2e873d6c6fa3d3f0ae32c2a64
service:
  main:
    ports:
      main:
        protocol: http
        targetPort: 8081
        port: 18081
securityContext:
  container:
    readOnlyRootFilesystem: false
workload:
  main:
    podSpec:
      containers:
        main:
          probes:
            liveness:
              type: http
              httpHeaders:
                Authorization: '{{ printf "Basic %s" ((printf "%s:%s" .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_USERNAME .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_PASSWORD) | b64enc) }}'
            readiness:
              type: http
              httpHeaders:
                Authorization: '{{ printf "Basic %s" ((printf "%s:%s" .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_USERNAME .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_PASSWORD) | b64enc) }}'
            startup:
              type: http
              httpHeaders:
                Authorization: '{{ printf "Basic %s" ((printf "%s:%s" .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_USERNAME .Values.workload.main.podSpec.containers.main.env.ME_CONFIG_BASICAUTH_PASSWORD) | b64enc) }}'
          env:
            ME_CONFIG_MONGODB_PORT: ""
            ME_CONFIG_MONGODB_SERVER: ""
            ME_CONFIG_BASICAUTH_USERNAME: ""
            ME_CONFIG_BASICAUTH_PASSWORD: ""
            # https://codemirror.net/5/demo/theme.html
            ME_CONFIG_OPTIONS_EDITORTHEME: default
            ME_CONFIG_MONGODB_AUTH_DATABASE: ""
            ME_CONFIG_MONGODB_AUTH_USERNAME: ""
            ME_CONFIG_MONGODB_AUTH_PASSWORD: ""
mongodb:
  enabled: false
