test_group_cycle_detected_and_rejected

✓ pass on Combined (All three PRs merged) · 1.3 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. 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-groups-cycle hip-groups-cycle 0.1.0 · apiVersion v3R24 circular group dependency - A -> B -> C -> A hip-groups-cycle-0.1.0.tgz · 417 B bdd5a76bd42fc994

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:55:20.904 $ 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]


01:55:20.943 $ 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


01:55:20.979 $ .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


01:55:22.058 $ .bin/helm-combined lint charts/hip-groups-cycle --kube-context kind-hip0025-e2e
[exit 1, 0.1s]
==> 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


01:55:22.128 $ 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 0 B 0 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