test_failure_expression_alone_fails_install

✓ pass on Combined (All three PRs merged) · 2.2 s

Only failure expression true: install fails.

Same test on other tiers: PR1 — n/aPR2 — n/aPR3 ✓ pass

Requirements

R32 helm.sh/readiness-failure — any true expression fails it, over success implemented

helm.sh/readiness-failure: A list of custom failure conditions. If any are true, the resource is marked **failed**, which takes precedence over any success check.HIP-0025, Readiness

The test needs these tier features: readiness.

What the test observed

The test asserts on these facts. Times come from the kube-apiserver audit log (UTC).

install exit code

1

error message snippet

Error: INSTALLATION FAILED: resource Probe/e2e-combined-failure-expression-alone-fails-install/probe not ready. status: Failed, message: custom readiness failure condition met

Charts

The charts that the helm commands below read. The run keeps each chart as an archive. Click a chart to see its files and the commands that inspect or install it.

Chart directoryChartArchivesha256
charts/hip-readiness-basic hip-readiness-basic 0.1.0 · apiVersion v3HIP-0025 PR3 readiness annotations - Probe with configurable expressions hip-readiness-basic-0.1.0.tgz · 1022 B 2534a8588e3d9ccf

Commands

Every command that the test ran, in order, with the start time, the exit code and the output. The paths are relative to the root of the repository.

01:56:10.389 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-failure-expression-alone-fails-install --ignore-not-found --wait=true --timeout=120s
[exit 0, 0.0s]


01:56:10.427 $ kubectl --context kind-hip0025-e2e create namespace e2e-combined-failure-expression-alone-fails-install
[exit 0, 0.0s]
namespace/e2e-combined-failure-expression-alone-fails-install created


01:56:12.463 $ kubectl --context kind-hip0025-e2e patch Probe probe -n e2e-combined-failure-expression-alone-fails-install --subresource=status --type=merge -p {"status": {"phase": "Failed"}}
[exit 0, 0.1s]
probe.readiness.hip0025.example/probe patched


01:56:10.462 $ .bin/helm-combined install r charts/hip-readiness-basic -f runs/20261102-014745-815201/combined/test_failure_expression_alone_fails_install/values.yaml --namespace e2e-combined-failure-expression-alone-fails-install --wait --timeout 1m --kube-context kind-hip0025-e2e
[exit 1, 2.1s]
Error: INSTALLATION FAILED: resource Probe/e2e-combined-failure-expression-alone-fails-install/probe not ready. status: Failed, message: custom readiness failure condition met


01:56:12.551 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-failure-expression-alone-fails-install --wait=false
[exit 0, 0.0s]
namespace "e2e-combined-failure-expression-alone-fails-install" deleted


values.yaml

probe:
  failureExpressions:
  - '{.phase} == Failed'
  successExpressions:
  - '{.phase} == Ready'

Files

FileSizeContent
commands.log 1.3 KB the commands above
observations.json 300 B the observations above, as JSON
values.yaml 100 B an input file of the test