Chart hip-groups-sandbox 0.1.0 · apiVersion v3 ·
archive hip-groups-sandbox-0.1.0.tgz (958 B) ·
sha256 1e072a95bca3590140541d2625a7225babd891a5ca89ab98decca3e11d1119be
R23 sandbox - parent and subchart both define groups with opposite edges
Source: charts/hip-groups-sandbox 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-014745-815201/charts/hip-groups-sandbox-0.1.0.tgz $helm show all $chart $helm pull $chart --untar $helm install r $chart --wait=ordered -n demo --create-namespace
Files
The 8 files in the archive: the files that helm loads from
charts/hip-groups-sandbox, byte for byte.
hip-groups-sandbox/Chart.yamlhip-groups-sandbox/charts/sub/Chart.yamlhip-groups-sandbox/charts/sub/templates/_workload.tplhip-groups-sandbox/charts/sub/templates/groups.yamlhip-groups-sandbox/charts/sub/values.yamlhip-groups-sandbox/templates/_workload.tplhip-groups-sandbox/templates/groups.yamlhip-groups-sandbox/values.yaml
hip-groups-sandbox/Chart.yaml · 222 B
apiVersion: v3
name: hip-groups-sandbox
description: R23 sandbox - parent and subchart both define groups with opposite edges
version: 0.1.0
dependencies:
- name: sub
version: 0.1.0
repository: file://charts/sub
hip-groups-sandbox/charts/sub/Chart.yaml · 88 B
apiVersion: v3 name: sub description: Subchart with opposite group edges version: 0.1.0
hip-groups-sandbox/charts/sub/templates/_workload.tpl · 757 B
{{- define "e2e.workload.sub" -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .name }}
annotations:
{{- with .group }}
helm.sh/resource-group: {{ . }}
{{- end }}
{{- with .deps }}
helm.sh/depends-on/resource-groups: {{ toJson . | quote }}
{{- end }}
spec:
replicas: 1
selector:
matchLabels: {app: {{ .name }}}
template:
metadata:
labels: {app: {{ .name }}}
spec:
terminationGracePeriodSeconds: 0
containers:
- name: web
image: {{ .root.Values.image }}
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet: {path: /, port: 80}
initialDelaySeconds: {{ .root.Values.readyDelay }}
periodSeconds: 1
{{- end -}}
hip-groups-sandbox/charts/sub/templates/groups.yaml · 272 B
# Subchart: first depends on second (second -> first) - OPPOSITE of parent
{{ include "e2e.workload.sub" (dict "root" $ "name" "sub-second" "group" "second") }}
---
{{ include "e2e.workload.sub" (dict "root" $ "name" "sub-first" "group" "first" "deps" (list "second")) }}
hip-groups-sandbox/charts/sub/values.yaml · 39 B
image: nginx:1.27-alpine readyDelay: 3
hip-groups-sandbox/templates/_workload.tpl · 760 B
{{- define "e2e.workload.parent" -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .name }}
annotations:
{{- with .group }}
helm.sh/resource-group: {{ . }}
{{- end }}
{{- with .deps }}
helm.sh/depends-on/resource-groups: {{ toJson . | quote }}
{{- end }}
spec:
replicas: 1
selector:
matchLabels: {app: {{ .name }}}
template:
metadata:
labels: {app: {{ .name }}}
spec:
terminationGracePeriodSeconds: 0
containers:
- name: web
image: {{ .root.Values.image }}
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet: {path: /, port: 80}
initialDelaySeconds: {{ .root.Values.readyDelay }}
periodSeconds: 1
{{- end -}}
hip-groups-sandbox/templates/groups.yaml · 266 B
# Parent chart: second depends on first (first -> second)
{{ include "e2e.workload.parent" (dict "root" $ "name" "parent-first" "group" "first") }}
---
{{ include "e2e.workload.parent" (dict "root" $ "name" "parent-second" "group" "second" "deps" (list "first")) }}
hip-groups-sandbox/values.yaml · 39 B
image: nginx:1.27-alpine readyDelay: 3