test_duplicate_resource_group_assignment_rejected

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

Same resource assigned to two groups: install fails with 'assigned to multiple resource groups', nothing applied.

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

Requirements

R23 A resource belongs to one resource group only implemented

A resource can only belong to one group.HIP-0025, Resource-Group Sequencing

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).

install exit code

1

error message

Error: INSTALLATION FAILED: parsing resource-group annotations for hip-groups-duplicate: resource "apps/v1/Deployment//conflicting-app" assigned to multiple resource groups "group-a" and "group-b"

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-duplicate hip-groups-duplicate 0.1.0 · apiVersion v3R23 duplicate resource-group assignment (same resource in two groups) hip-groups-duplicate-0.1.0.tgz · 660 B e1b3e207300a5d5b

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:57:41.465 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-duplicate-resource-group-assignment-rejected --ignore-not-found --wait=true --timeout=120s
[exit 0, 0.0s]


14:57:41.503 $ kubectl --context kind-hip0025-e2e create namespace e2e-combined-duplicate-resource-group-assignment-rejected
[exit 0, 0.0s]
namespace/e2e-combined-duplicate-resource-group-assignment-rejected created


14:57:41.539 $ .bin/helm-combined install r charts/hip-groups-duplicate --namespace e2e-combined-duplicate-resource-group-assignment-rejected --wait=ordered --timeout 1m --kube-context kind-hip0025-e2e
[exit 1, 0.1s]
Error: INSTALLATION FAILED: parsing resource-group annotations for hip-groups-duplicate: resource "apps/v1/Deployment//conflicting-app" assigned to multiple resource groups "group-a" and "group-b"


14:57:42.606 $ kubectl --context kind-hip0025-e2e delete namespace e2e-combined-duplicate-resource-group-assignment-rejected --wait=false
[exit 0, 0.0s]
namespace "e2e-combined-duplicate-resource-group-assignment-rejected" deleted


Files

FileSizeContent
audit.jsonl 1.4 KB 1 kube-apiserver audit records for the namespace of the test
commands.log 1.0 KB the commands above
observations.json 319 B the observations above, as JSON