Chart hip-lifecycle 0.1.0 · apiVersion v3 ·
archive hip-lifecycle-0.1.0.tgz (1.2 KB) ·
sha256 a06bfada6ae70d40af6663b9623c1f428a400fe5a96a90387450c86e6e31ac5c
Parent with sequenced subcharts a -> b -> parent for lifecycle tests (upgrade, uninstall, rollback)
Source: charts/hip-lifecycle 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/20261116-145035-876615/charts/hip-lifecycle-0.1.0.tgz $helm show all $chart $helm pull $chart --untar $helm install r $chart --wait=ordered -n demo --create-namespace
Files
The 16 files in the archive: the files that helm loads from
charts/hip-lifecycle, byte for byte.
hip-lifecycle/Chart.yamlhip-lifecycle/charts/a/Chart.yamlhip-lifecycle/charts/a/templates/deploy.yamlhip-lifecycle/charts/a/values.yamlhip-lifecycle/charts/b/Chart.yamlhip-lifecycle/charts/b/templates/deploy.yamlhip-lifecycle/charts/b/values.yamlhip-lifecycle/charts/c/Chart.yamlhip-lifecycle/charts/c/templates/deploy.yamlhip-lifecycle/charts/c/values.yamlhip-lifecycle/charts/d/Chart.yamlhip-lifecycle/charts/d/templates/deploy.yamlhip-lifecycle/charts/d/values.yamlhip-lifecycle/templates/_workload.tplhip-lifecycle/templates/parent.yamlhip-lifecycle/values.yaml
hip-lifecycle/Chart.yaml · 662 B
apiVersion: v3
name: hip-lifecycle
description: Parent with sequenced subcharts a -> b -> parent for lifecycle tests (upgrade, uninstall, rollback)
version: 0.1.0
annotations:
helm.sh/depends-on/subcharts: '["b"]'
dependencies:
- name: a
version: 0.1.0
repository: file://charts/a
- name: b
version: 0.1.0
repository: file://charts/b
depends-on:
- a
- name: c
version: 0.1.0
repository: file://charts/c
condition: c.enabled
depends-on:
- b
- name: d
version: 0.1.0
repository: file://charts/d
condition: c.enabled # c and d come and go together; d depends on c
depends-on:
- c
hip-lifecycle/charts/a/Chart.yaml · 78 B
apiVersion: v3 name: a description: First subchart in sequence version: 0.1.0
hip-lifecycle/charts/a/templates/deploy.yaml · 631 B
apiVersion: apps/v1
kind: Deployment
metadata:
name: subchart-a
annotations:
rev: {{ .Values.global.rev | quote }}
spec:
replicas: 1
selector:
matchLabels: {app: subchart-a}
template:
metadata:
labels: {app: subchart-a}
annotations:
rev: {{ .Values.global.rev | quote }}
spec:
terminationGracePeriodSeconds: 0
containers:
- name: web
image: {{ .Values.image }}
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet: {path: /, port: 80}
initialDelaySeconds: {{ .Values.readyDelay }}
periodSeconds: 1
hip-lifecycle/charts/a/values.yaml · 39 B
image: nginx:1.27-alpine readyDelay: 3
hip-lifecycle/charts/b/Chart.yaml · 81 B
apiVersion: v3 name: b description: Second subchart, depends on a version: 0.1.0
hip-lifecycle/charts/b/templates/deploy.yaml · 631 B
apiVersion: apps/v1
kind: Deployment
metadata:
name: subchart-b
annotations:
rev: {{ .Values.global.rev | quote }}
spec:
replicas: 1
selector:
matchLabels: {app: subchart-b}
template:
metadata:
labels: {app: subchart-b}
annotations:
rev: {{ .Values.global.rev | quote }}
spec:
terminationGracePeriodSeconds: 0
containers:
- name: web
image: {{ .Values.image }}
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet: {path: /, port: 80}
initialDelaySeconds: {{ .Values.readyDelay }}
periodSeconds: 1
hip-lifecycle/charts/b/values.yaml · 39 B
image: nginx:1.27-alpine readyDelay: 3
hip-lifecycle/charts/c/Chart.yaml · 89 B
apiVersion: v3 name: c description: Optional third subchart, depends on b version: 0.1.0
hip-lifecycle/charts/c/templates/deploy.yaml · 631 B
apiVersion: apps/v1
kind: Deployment
metadata:
name: subchart-c
annotations:
rev: {{ .Values.global.rev | quote }}
spec:
replicas: 1
selector:
matchLabels: {app: subchart-c}
template:
metadata:
labels: {app: subchart-c}
annotations:
rev: {{ .Values.global.rev | quote }}
spec:
terminationGracePeriodSeconds: 0
containers:
- name: web
image: {{ .Values.image }}
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet: {path: /, port: 80}
initialDelaySeconds: {{ .Values.readyDelay }}
periodSeconds: 1
hip-lifecycle/charts/c/values.yaml · 39 B
image: nginx:1.27-alpine readyDelay: 3
hip-lifecycle/charts/d/Chart.yaml · 115 B
apiVersion: v3 name: d description: Optional fourth subchart, depends on c (rollback removal order) version: 0.1.0
hip-lifecycle/charts/d/templates/deploy.yaml · 631 B
apiVersion: apps/v1
kind: Deployment
metadata:
name: subchart-d
annotations:
rev: {{ .Values.global.rev | quote }}
spec:
replicas: 1
selector:
matchLabels: {app: subchart-d}
template:
metadata:
labels: {app: subchart-d}
annotations:
rev: {{ .Values.global.rev | quote }}
spec:
terminationGracePeriodSeconds: 0
containers:
- name: web
image: {{ .Values.image }}
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet: {path: /, port: 80}
initialDelaySeconds: {{ .Values.readyDelay }}
periodSeconds: 1
hip-lifecycle/charts/d/values.yaml · 39 B
image: nginx:1.27-alpine readyDelay: 3
hip-lifecycle/templates/_workload.tpl · 790 B
{{- /* slow-ready Deployment for lifecycle tests: (dict "root" $ "name" "x") */ -}}
{{- define "e2e.workload.lifecycle" -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .name }}
annotations:
rev: {{ .root.Values.global.rev | quote }}
spec:
replicas: 1
selector:
matchLabels: {app: {{ .name }}}
template:
metadata:
labels: {app: {{ .name }}}
annotations:
rev: {{ .root.Values.global.rev | quote }}
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-lifecycle/templates/parent.yaml · 71 B
{{ include "e2e.workload.lifecycle" (dict "root" . "name" "parent") }}
hip-lifecycle/values.yaml · 78 B
image: nginx:1.27-alpine readyDelay: 3 global: rev: "1" c: enabled: false