charts/hip-readiness-gate

Chart hip-readiness-gate 0.1.0 · apiVersion v3 · archive hip-readiness-gate-0.1.0.tgz (848 B) · sha256 2f36f921cbcbf4eaf1ca905c7b55f4846263a8d24e8083a380378af8481a7353

HIP-0025 R32 custom readiness gates sequencing - Probe gates Deployment

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

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

Files

The 4 files in the archive: the files that helm loads from charts/hip-readiness-gate, byte for byte.

hip-readiness-gate/Chart.yaml · 140 B

apiVersion: v3
name: hip-readiness-gate
description: HIP-0025 R32 custom readiness gates sequencing - Probe gates Deployment
version: 0.1.0

hip-readiness-gate/templates/_workload.tpl · 852 B

{{- /* slow-ready Deployment: (dict "root" $ "name" "x" "group" "g" "deps" (list ...)) */ -}}
{{- define "e2e.workload.gate" -}}
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-readiness-gate/templates/resources.yaml · 374 B

apiVersion: readiness.hip0025.example/v1
kind: Probe
metadata:
  name: gate
  annotations:
    helm.sh/resource-group: first
    helm.sh/readiness-success: '["{.phase} == Ready"]'
    helm.sh/readiness-failure: '["{.phase} == Failed"]'
spec:
  target: test
status: {}
---
{{ include "e2e.workload.gate" (dict "root" $ "name" "app" "group" "second" "deps" (list "first")) }}

hip-readiness-gate/values.yaml · 39 B

image: nginx:1.27-alpine
readyDelay: 3