test_only_success_annotation_fails_helm_lint

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

Chart with only readiness-success annotation: helm lint fails.

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

Requirements

R28 Both annotations are required; one alone falls back to kstatus, warns, and fails lint implemented

Both helm.sh/readiness-success and helm.sh/readiness-failure must both be provided to override the default readiness logic. If only one is present, Helm will fall back to kstatus and emit a warning. Helm will also fail linting when only one of the two is defined.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).

lint exit code

1

lint output

==> Linting charts/hip-readiness-basic
[INFO] Chart.yaml: icon is recommended
[ERROR] hip-readiness-basic/templates/probe.yaml: resource "Probe/probe" has only one of "helm.sh/readiness-success" / "helm.sh/readiness-failure" annotations; both must be present or absent together

Error: 1 chart(s) linted, 1 chart(s) failed

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.

14:58:54.536 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-only-success-annotation-fails-helm-lint --ignore-not-found --wait=true --timeout=120s
[exit 0, 0.0s]


14:58:54.574 $ kubectl --context kind-hip0025-e2e create namespace e2e-combined-only-success-annotation-fails-helm-lint
[exit 0, 0.0s]
namespace/e2e-combined-only-success-annotation-fails-helm-lint created


14:58:54.609 $ .bin/helm-combined lint charts/hip-readiness-basic -f runs/20261116-145035-876615/combined/test_only_success_annotation_fails_helm_lint/lint-values.yaml --kube-context kind-hip0025-e2e
[exit 1, 0.0s]
==> Linting charts/hip-readiness-basic
[INFO] Chart.yaml: icon is recommended
[ERROR] hip-readiness-basic/templates/probe.yaml: resource "Probe/probe" has only one of "helm.sh/readiness-success" / "helm.sh/readiness-failure" annotations; both must be present or absent together

Error: 1 chart(s) linted, 1 chart(s) failed


14:58:54.639 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-only-success-annotation-fails-helm-lint --wait=false
[exit 0, 0.0s]
namespace "e2e-combined-only-success-annotation-fails-helm-lint" deleted


lint-values.yaml

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

Files

FileSizeContent
commands.log 1.1 KB the commands above
lint-values.yaml 53 B an input file of the test
observations.json 444 B the observations above, as JSON