charts/hip-groups-duplicate

Chart hip-groups-duplicate 0.1.0 · apiVersion v3 · archive hip-groups-duplicate-0.1.0.tgz (660 B) · sha256 e1b3e207300a5d5b1fb3dda7589979a46e2282431e792fd322472c2b2ccb0f07

R23 duplicate resource-group assignment (same resource in two groups)

Source: charts/hip-groups-duplicate in the harness commit.

Tests that read this chart

Inspect or install it

Upstream Helm cannot install a chart v3 yet. Use a helm binary of a tier: clone the repository and run make build TIERS=combined. Some charts must fail; the tests above show the expected result. All charts of the run are also a Helm chart repository.

export HELM_EXPERIMENTAL_CHART_V3=1
helm=.bin/helm-combined
chart=https://caretak3r.github.io/helm-hip-0025-e2e/20261102-032210-779502/charts/hip-groups-duplicate-0.1.0.tgz

$helm show all $chart
$helm pull $chart --untar
$helm install r $chart --wait=ordered -n demo --create-namespace

Files

The 3 files in the archive: the files that helm loads from charts/hip-groups-duplicate, byte for byte.

hip-groups-duplicate/Chart.yaml · 140 B

apiVersion: v3
name: hip-groups-duplicate
description: R23 duplicate resource-group assignment (same resource in two groups)
version: 0.1.0

hip-groups-duplicate/templates/duplicate.yaml · 1.3 KB

# Two templates render the same Deployment (same kind and metadata.name) but
# assign it to different resource groups. ParseResourceGroups should reject this
# with "assigned to multiple resource groups".
apiVersion: apps/v1
kind: Deployment
metadata:
  name: conflicting-app
  annotations:
    helm.sh/resource-group: group-a
spec:
  replicas: 1
  selector:
    matchLabels: {app: conflicting-app}
  template:
    metadata:
      labels: {app: conflicting-app}
    spec:
      terminationGracePeriodSeconds: 0
      containers:
        - name: web
          image: {{ .Values.image }}
          imagePullPolicy: IfNotPresent
          readinessProbe:
            httpGet: {path: /, port: 80}
            initialDelaySeconds: {{ .Values.readyDelay }}
            periodSeconds: 1
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: conflicting-app
  annotations:
    helm.sh/resource-group: group-b
spec:
  replicas: 1
  selector:
    matchLabels: {app: conflicting-app}
  template:
    metadata:
      labels: {app: conflicting-app}
    spec:
      terminationGracePeriodSeconds: 0
      containers:
        - name: web
          image: {{ .Values.image }}
          imagePullPolicy: IfNotPresent
          readinessProbe:
            httpGet: {path: /, port: 80}
            initialDelaySeconds: {{ .Values.readyDelay }}
            periodSeconds: 1

hip-groups-duplicate/values.yaml · 39 B

image: nginx:1.27-alpine
readyDelay: 3