test_group_cycle_detected_and_rejected

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

Circular group dependency (a -> b -> c -> a) exits non-zero naming the cycle, nothing applied.

Same test on other tiers: PR1 — n/aPR2 ✓ passPR3 — n/a

Requirements

R24 Resource-group cycles are detected and reported implemented

During the templating phase, Helm will have logic to detect, and report any circular dependencies found in the chart templates.HIP-0025, Chart dependencies example

The test needs these tier features: ordered, groups.

What the test observed

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

exit code

1

stderr

Error: INSTALLATION FAILED: resource-group circular dependency detected in hip-groups-cycle: cycle detected among nodes: group-a, group-b, group-c

apiserver applies

(none)

helm lint exit code

1

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-groups-cycle

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:47:53.612 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-group-cycle-detected-and-rejected --ignore-not-found --wait=true --timeout=120s
[exit 0, 0.0s]


18:47:53.648 $ kubectl --context kind-hip0025-e2e create namespace e2e-combined-group-cycle-detected-and-rejected
[exit 0, 0.0s]
namespace/e2e-combined-group-cycle-detected-and-rejected created


18:47:53.688 $ .bin/helm-combined install r charts/hip-groups-cycle --namespace e2e-combined-group-cycle-detected-and-rejected --wait=ordered --kube-context kind-hip0025-e2e
[exit 1, 0.1s]
Error: INSTALLATION FAILED: resource-group circular dependency detected in hip-groups-cycle: cycle detected among nodes: group-a, group-b, group-c


18:47:54.770 $ .bin/helm-combined lint charts/hip-groups-cycle --kube-context kind-hip0025-e2e
[exit 1, 0.0s]
==> Linting charts/hip-groups-cycle
[INFO] Chart.yaml: icon is recommended
[ERROR] /Users/rohit/Documents/helm-hip-0025-e2e/charts/hip-groups-cycle: resource-group circular dependency detected in hip-groups-cycle: cycle detected among nodes: group-a, group-b, group-c

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


18:47:54.805 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-group-cycle-detected-and-rejected --wait=false
[exit 0, 0.0s]
namespace "e2e-combined-group-cycle-detected-and-rejected" deleted


Files

FileSizeContent
audit.jsonl 2.7 KB 2 kube-apiserver audit records for the namespace of the test
commands.log 1.3 KB the commands above
observations.json 367 B the observations above, as JSON