charts/hip-lifecycle-hooks

Chart hip-lifecycle-hooks 0.1.0 · apiVersion v3 · archive hip-lifecycle-hooks-0.1.0.tgz (927 B) · sha256 ff795f70d0fc5a7dfd934c6c329dfd5d61128389c6b3dc3354fcb2509a404533

Chart with hooks that should not be sequenced, plus sequenced subcharts

Source: charts/hip-lifecycle-hooks 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-lifecycle-hooks-0.1.0.tgz

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

Files

The 9 files in the archive: the files that helm loads from charts/hip-lifecycle-hooks, byte for byte.

hip-lifecycle-hooks/Chart.yaml · 329 B

apiVersion: v3
name: hip-lifecycle-hooks
description: Chart with hooks that should not be sequenced, plus sequenced subcharts
version: 0.1.0
dependencies:
  - name: first
    version: 0.1.0
    repository: file://charts/first
  - name: second
    version: 0.1.0
    repository: file://charts/second
    depends-on:
      - first

hip-lifecycle-hooks/charts/first/Chart.yaml · 80 B

apiVersion: v3
name: first
description: First sequenced subchart
version: 0.1.0

hip-lifecycle-hooks/charts/first/templates/deploy.yaml · 494 B

apiVersion: apps/v1
kind: Deployment
metadata:
  name: first
spec:
  replicas: 1
  selector:
    matchLabels: {app: first}
  template:
    metadata:
      labels: {app: first}
    spec:
      terminationGracePeriodSeconds: 0
      containers:
        - name: web
          image: {{ .Values.image }}
          imagePullPolicy: IfNotPresent
          readinessProbe:
            httpGet: {path: /, port: 80}
            initialDelaySeconds: {{ .Values.readyDelay }}
            periodSeconds: 1

hip-lifecycle-hooks/charts/first/values.yaml · 39 B

image: nginx:1.27-alpine
readyDelay: 3

hip-lifecycle-hooks/charts/second/Chart.yaml · 82 B

apiVersion: v3
name: second
description: Second sequenced subchart
version: 0.1.0

hip-lifecycle-hooks/charts/second/templates/deploy.yaml · 497 B

apiVersion: apps/v1
kind: Deployment
metadata:
  name: second
spec:
  replicas: 1
  selector:
    matchLabels: {app: second}
  template:
    metadata:
      labels: {app: second}
    spec:
      terminationGracePeriodSeconds: 0
      containers:
        - name: web
          image: {{ .Values.image }}
          imagePullPolicy: IfNotPresent
          readinessProbe:
            httpGet: {path: /, port: 80}
            initialDelaySeconds: {{ .Values.readyDelay }}
            periodSeconds: 1

hip-lifecycle-hooks/charts/second/values.yaml · 39 B

image: nginx:1.27-alpine
readyDelay: 3

hip-lifecycle-hooks/templates/hooks.yaml · 727 B

---
apiVersion: batch/v1
kind: Job
metadata:
  name: hook-weight-minus-5
  annotations:
    helm.sh/hook: pre-install
    helm.sh/hook-weight: "-5"
    helm.sh/hook-delete-policy: before-hook-creation
spec:
  template:
    spec:
      restartPolicy: Never
      containers:
        - name: hook
          image: busybox:1.36
          command: ["sh", "-c", "exit 0"]
---
apiVersion: batch/v1
kind: Job
metadata:
  name: hook-weight-5
  annotations:
    helm.sh/hook: pre-install
    helm.sh/hook-weight: "5"
    helm.sh/hook-delete-policy: before-hook-creation
spec:
  template:
    spec:
      restartPolicy: Never
      containers:
        - name: hook
          image: busybox:1.36
          command: ["sh", "-c", "exit 0"]

hip-lifecycle-hooks/values.yaml · 39 B

image: nginx:1.27-alpine
readyDelay: 3