[bitnami/grafana-pyroscope] ci: 👷 Add VIB files (#82796)

Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com>
This commit is contained in:
Javier J. Salmerón García 2025-06-30 11:44:59 +02:00 committed by GitHub
parent ae1b1a5da4
commit 7c65c2808a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../grafana-pyroscope/goss/grafana-pyroscope.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@ -0,0 +1,23 @@
# NOTE: The kserve binaries do not have a --version flag, so we cannot perform a version check
command:
check-help:
exec:
- pyroscope
- --help
exit-status: 0
stdout:
- Base path to serve
check-version:
exec:
- pyroscope
- --version
exit-status: 0
stdout:
- {{ .Env.APP_VERSION }}
check-profilecli:
exec:
- profilecli
- --help
exit-status: 0
stdout:
- Check Pyroscope health

View File

@ -0,0 +1,8 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/grafana-pyroscope/.spdx-grafana-pyroscope.spdx
- mode: "0755"
paths:
- /opt/bitnami/grafana-pyroscope/bin/pyroscope
- /opt/bitnami/grafana-pyroscope/bin/profilecli

View File

@ -0,0 +1,73 @@
{
"context": {
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
},
"runtime_parameters": "Y29tbWFuZDogWyIvc2hhcmVkL2J1c3lib3giLCAic2xlZXAiLCAiMzYwMCJdCg=="
},
"phases": {
"package": {
"actions": [
{
"action_id": "container-image-package",
"params": {
"application": {
"details": {
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
"action_id": "container-image-lint",
"params": {
"threshold": "error"
}
}
]
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "grafana-pyroscope/goss/goss.yaml",
"vars_file": "grafana-pyroscope/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-grafana-pyroscope"
}
}
}
},
{
"action_id": "trivy",
"params": {
"threshold": "LOW",
"vuln_type": [
"OS"
]
}
},
{
"action_id": "grype",
"params": {
"threshold": "CRITICAL",
"package_type": [
"OS"
]
}
}
]
}
}
}