diff --git a/.vib/cert-manager/goss/cert-manager.yaml b/.vib/cert-manager/goss/cert-manager.yaml new file mode 100644 index 000000000000..46dcc022d5b2 --- /dev/null +++ b/.vib/cert-manager/goss/cert-manager.yaml @@ -0,0 +1,4 @@ +command: + check-cert-manager: + exec: cert-manager -h + exit-status: 0 diff --git a/.vib/cert-manager/goss/goss.yaml b/.vib/cert-manager/goss/goss.yaml new file mode 100644 index 000000000000..87d40c5b97d9 --- /dev/null +++ b/.vib/cert-manager/goss/goss.yaml @@ -0,0 +1,10 @@ +gossfile: + # Goss tests exclusive to the current container + ../../cert-manager/goss/cert-manager.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: {} diff --git a/.vib/cert-manager/goss/vars.yaml b/.vib/cert-manager/goss/vars.yaml new file mode 100644 index 000000000000..02f97d685817 --- /dev/null +++ b/.vib/cert-manager/goss/vars.yaml @@ -0,0 +1,3 @@ +binaries: + - cert-manager +root_dir: /opt/bitnami diff --git a/.vib/cert-manager/vib-publish.json b/.vib/cert-manager/vib-publish.json index 8b6fe8eab4e6..1b5a90070714 100644 --- a/.vib/cert-manager/vib-publish.json +++ b/.vib/cert-manager/vib-publish.json @@ -3,7 +3,8 @@ "resources": { "url": "{VIB_ENV_CONTAINER_URL}", "path": "{VIB_ENV_PATH}" - } + }, + "runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd" }, "phases": { "package": { @@ -33,6 +34,21 @@ }, "verify": { "actions": [ + { + "action_id": "goss", + "params": { + "resources": { + "path": "/.vib" + }, + "tests_file": "cert-manager/goss/goss.yaml", + "vars_file": "cert-manager/goss/vars.yaml", + "remote": { + "pod": { + "workload": "deploy-cert-manager" + } + } + } + }, { "action_id": "trivy", "params": { diff --git a/.vib/cert-manager/vib-verify.json b/.vib/cert-manager/vib-verify.json index a34e8aee9161..a72ac7830062 100644 --- a/.vib/cert-manager/vib-verify.json +++ b/.vib/cert-manager/vib-verify.json @@ -3,7 +3,8 @@ "resources": { "url": "{SHA_ARCHIVE}", "path": "{VIB_ENV_PATH}" - } + }, + "runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd" }, "phases": { "package": { @@ -29,6 +30,21 @@ }, "verify": { "actions": [ + { + "action_id": "goss", + "params": { + "resources": { + "path": "/.vib" + }, + "tests_file": "cert-manager/goss/goss.yaml", + "vars_file": "cert-manager/goss/vars.yaml", + "remote": { + "pod": { + "workload": "deploy-cert-manager" + } + } + } + }, { "action_id": "trivy", "params": {