goss.yaml 767 B

1234567891011121314151617181920
  1. # Copyright Broadcom, Inc. All Rights Reserved.
  2. # SPDX-License-Identifier: APACHE-2.0
  3. file:
  4. /bitnami/moodledata:
  5. exists: true
  6. filetype: directory
  7. mode: "2775"
  8. http:
  9. https://moodle:{{ .Vars.service.ports.https }}:
  10. status: 200
  11. allow-insecure: true
  12. command:
  13. {{- $uid := .Vars.containerSecurityContext.runAsUser }}
  14. {{- $gid := .Vars.podSecurityContext.fsGroup }}
  15. check-user-info:
  16. # The UID and GID should always be either the one specified as vars (always a bigger number that the default)
  17. # or the one randomly defined by openshift (larger values). Otherwise, the chart is still using the default value.
  18. exec: if [ $(id -u) -lt {{ $uid }} ] || [ $(id -G | awk '{print $2}') -lt {{ $gid }} ]; then exit 1; fi
  19. exit-status: 0