12345678910111213141516171819202122232425262728 |
- # Copyright Broadcom, Inc. All Rights Reserved.
- # SPDX-License-Identifier: APACHE-2.0
- http:
- https://127.0.0.1:{{ .Vars.containerPorts.https }}/metrics:
- status: 200
- allow-insecure: true
- body:
- - metrics_server_storage_points
- https://metrics-server:{{ .Vars.service.ports.https }}/metrics:
- status: 200
- allow-insecure: true
- body:
- - metrics_server_storage_points
- command:
- {{- $uid := .Vars.containerSecurityContext.runAsUser }}
- check-user-info:
- # The UID and GID should always be either the one specified as vars (always a bigger number that the default)
- # or the one randomly defined by openshift (larger values). Otherwise, the chart is still using the default value.
- exec: if [ $(id -u) -lt {{ $uid }} ]; then exit 1; fi
- exit-status: 0
- {{ if .Vars.automountServiceAccountToken }}
- check-sa:
- exec: cat /var/run/secrets/kubernetes.io/serviceaccount/token | cut -d '.' -f 2 | xargs -I '{}' echo '{}====' | fold -w 4 | sed '$ d' | tr -d '\n' | base64 -d
- exit-status: 0
- stdout:
- - /serviceaccount.*name.*{{.Env.BITNAMI_APP_NAME }}/
- {{ end }}
|