test_failure_takes_precedence_over_success

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

Success AND failure both true: install fails, error names the Probe.

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

Error: INSTALLATION FAILED: resource Probe/e2e-combined-failure-takes-precedence-over-success/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.

08:50:33.371 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-failure-takes-precedence-over-success --ignore-not-found --wait=true --timeout=120s
[exit 0, 0.0s]


08:50:33.417 $ kubectl --context kind-hip0025-e2e create namespace e2e-combined-failure-takes-precedence-over-success
[exit 0, 0.0s]
namespace/e2e-combined-failure-takes-precedence-over-success created


08:50:35.461 $ kubectl --context kind-hip0025-e2e patch Probe probe -n e2e-combined-failure-takes-precedence-over-success --subresource=status --type=merge -p {"status": {"phase": "Ready"}}
[exit 0, 0.1s]
probe.readiness.hip0025.example/probe patched


08:50:33.457 $ .bin/helm-combined install r charts/hip-readiness-basic -f runs/20261008-084220/combined/test_failure_takes_precedence_over_success/values.yaml --namespace e2e-combined-failure-takes-precedence-over-success --wait --timeout 1m --kube-context kind-hip0025-e2e
[exit 1, 2.1s]
Error: INSTALLATION FAILED: resource Probe/e2e-combined-failure-takes-precedence-over-success/probe not ready. status: Failed, message: custom readiness failure condition met


08:50:35.519 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-failure-takes-precedence-over-success --wait=false
[exit 0, 0.0s]
namespace "e2e-combined-failure-takes-precedence-over-success" deleted


values.yaml

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

Files

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