mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 15:29:05 +08:00
[bitnami/ray,kuberay-apiserver,kuberay-operator] test: 👷 Add VIB integration (#53026)
* [bitnami/ray,kuberay-apiserver,kuberay-operator] test: 👷 Add VIB integration Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * fix: 🐛 Change incorrect paths Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * fix: 🐛 Remove version check Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * chore: 💡 Add procedence of the script Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> --------- Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
committed by
GitHub
parent
f5bf5e2f49
commit
060c49e172
13
.vib/kuberay-apiserver/goss/goss.yaml
Normal file
13
.vib/kuberay-apiserver/goss/goss.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
# Copyright VMware, Inc.
|
||||
# SPDX-License-Identifier: APACHE-2.0
|
||||
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../kuberay-apiserver/goss/kuberay-apiserver.yaml: {}
|
||||
# Load scripts from .vib/common/goss/templates
|
||||
../../common/goss/templates/check-binaries.yaml: {}
|
||||
../../common/goss/templates/check-broken-symlinks.yaml: {}
|
||||
../../common/goss/templates/check-ca-certs.yaml: {}
|
||||
../../common/goss/templates/check-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
15
.vib/kuberay-apiserver/goss/kuberay-apiserver.yaml
Normal file
15
.vib/kuberay-apiserver/goss/kuberay-apiserver.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
# Copyright VMware, Inc.
|
||||
# SPDX-License-Identifier: APACHE-2.0
|
||||
|
||||
user:
|
||||
kuberay-apiserver:
|
||||
exists: true
|
||||
uid: 1001
|
||||
gid: 0
|
||||
|
||||
command:
|
||||
check-kuberay-apiserver:
|
||||
exec: kuberay-apiserver --help
|
||||
exit-status: 0
|
||||
stderr:
|
||||
- "Paths to a kubeconfig"
|
||||
6
.vib/kuberay-apiserver/goss/vars.yaml
Normal file
6
.vib/kuberay-apiserver/goss/vars.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
binaries:
|
||||
- kuberay-apiserver
|
||||
root_dir: /opt/bitnami
|
||||
directories:
|
||||
- paths:
|
||||
- /opt/bitnami/kuberay-apiserver
|
||||
66
.vib/kuberay-apiserver/vib-verify.json
Normal file
66
.vib/kuberay-apiserver/vib-verify.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"context": {
|
||||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"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": "trivy",
|
||||
"params": {
|
||||
"threshold": "CRITICAL",
|
||||
"vuln_type": ["OS"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "grype",
|
||||
"params": {
|
||||
"threshold": "CRITICAL",
|
||||
"package_type": ["OS"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "kuberay-apiserver/goss/goss.yaml",
|
||||
"vars_file": "kuberay-apiserver/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-kuberay-apiserver"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user