goss.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright Broadcom, Inc. All Rights Reserved.
  2. # SPDX-License-Identifier: APACHE-2.0
  3. command:
  4. {{- $uid := .Vars.containerSecurityContext.runAsUser }}
  5. check-user-info:
  6. # The UID should always be either the one specified as vars (always a bigger number that the default)
  7. # or the one randomly defined by openshift (larger values). Otherwise, the chart is still using the default value.
  8. exec: if [ $(id -u) -lt {{ $uid }} ]; then exit 1; fi
  9. exit-status: 0
  10. http:
  11. http://127.0.0.1:{{ .Vars.containerPorts.http }}/healthz:
  12. status: 200
  13. http://cadvisor:{{ .Vars.service.ports.http }}/healthz:
  14. status: 200
  15. http://127.0.0.1:{{ .Vars.containerPorts.http }}/:
  16. status: 200
  17. body:
  18. - /containers/
  19. http://cadvisor:{{ .Vars.service.ports.http }}/:
  20. status: 200
  21. body:
  22. - /containers/
  23. # cAdvisor generates a huge amount of prometheus metrics, so we
  24. # need to give it extra time to avoid timeout issues in the test
  25. http://127.0.0.1:{{ .Vars.containerPorts.http }}/metrics:
  26. status: 200
  27. timeout: 20000
  28. body:
  29. - /container_tasks_state/
  30. http://cadvisor:{{ .Vars.service.ports.http }}/metrics:
  31. status: 200
  32. timeout: 20000
  33. body:
  34. - /container_tasks_state/