test_failure_expression_alone_fails_install

✓ pass on Combined (All three PRs merged) · 2.0 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. This run did not keep chart archives, so the links go to the chart directories in the harness commit.

Chart directory
charts/hip-readiness-basic

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.

18:48:43.085 $ 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]


18:48:43.118 $ 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


18:48:45.155 $ 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.0s]
probe.readiness.hip0025.example/probe patched


18:48:43.150 $ .bin/helm-combined install r charts/hip-readiness-basic -f runs/20261005-184055/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


18:48:45.203 $ 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