diff --git a/.vib/cluster-autoscaler/goss/cluster-autoscaler.yaml b/.vib/cluster-autoscaler/goss/cluster-autoscaler.yaml new file mode 100644 index 000000000000..218a62dcb0d3 --- /dev/null +++ b/.vib/cluster-autoscaler/goss/cluster-autoscaler.yaml @@ -0,0 +1,6 @@ +command: + check-cluster-autoscaler-help: + exec: cluster-autoscaler --help + exit-status: 2 + stderr: + - "Usage of cluster-autoscaler:" diff --git a/.vib/cluster-autoscaler/goss/goss.yaml b/.vib/cluster-autoscaler/goss/goss.yaml new file mode 100644 index 000000000000..122a5731bd6a --- /dev/null +++ b/.vib/cluster-autoscaler/goss/goss.yaml @@ -0,0 +1,11 @@ +gossfile: + # Goss tests exclusive to the current container + ../../cluster-autoscaler/goss/cluster-autoscaler.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-directories.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/cluster-autoscaler/goss/vars.yaml b/.vib/cluster-autoscaler/goss/vars.yaml new file mode 100644 index 000000000000..65e6a1a53aff --- /dev/null +++ b/.vib/cluster-autoscaler/goss/vars.yaml @@ -0,0 +1,6 @@ +binaries: + - cluster-autoscaler +directories: + - paths: + - /opt/bitnami/cluster-autoscaler/log +root_dir: /opt/bitnami diff --git a/.vib/cluster-autoscaler/vib-publish.json b/.vib/cluster-autoscaler/vib-publish.json index 8b6fe8eab4e6..9a96b0b52d7f 100644 --- a/.vib/cluster-autoscaler/vib-publish.json +++ b/.vib/cluster-autoscaler/vib-publish.json @@ -3,7 +3,8 @@ "resources": { "url": "{VIB_ENV_CONTAINER_URL}", "path": "{VIB_ENV_PATH}" - } + }, + "runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd" }, "phases": { "package": { @@ -82,6 +83,21 @@ } } } + }, + { + "action_id": "goss", + "params": { + "resources": { + "path": "/.vib" + }, + "tests_file": "cluster-autoscaler/goss/goss.yaml", + "vars_file": "cluster-autoscaler/goss/vars.yaml", + "remote": { + "pod": { + "workload": "deploy-cluster-autoscaler" + } + } + } } ] }, diff --git a/.vib/cluster-autoscaler/vib-verify.json b/.vib/cluster-autoscaler/vib-verify.json index a34e8aee9161..45947c8eec4b 100644 --- a/.vib/cluster-autoscaler/vib-verify.json +++ b/.vib/cluster-autoscaler/vib-verify.json @@ -3,7 +3,8 @@ "resources": { "url": "{SHA_ARCHIVE}", "path": "{VIB_ENV_PATH}" - } + }, + "runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd" }, "phases": { "package": { @@ -46,6 +47,21 @@ "OS" ] } + }, + { + "action_id": "goss", + "params": { + "resources": { + "path": "/.vib" + }, + "tests_file": "cluster-autoscaler/goss/goss.yaml", + "vars_file": "cluster-autoscaler/goss/vars.yaml", + "remote": { + "pod": { + "workload": "deploy-cluster-autoscaler" + } + } + } } ] }