charts/hip-groups-upgrade

Chart hip-groups-upgrade 0.1.0 · apiVersion v3 · archive hip-groups-upgrade-0.1.0.tgz (818 B) · sha256 c85ed21623f9786b3e38fd7619f67569ad43cac24050e00898721f461200c02b

R09 groups - upgrade patches follow group order

Source: charts/hip-groups-upgrade 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-groups-upgrade-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-groups-upgrade, byte for byte.

hip-groups-upgrade/Chart.yaml · 116 B

apiVersion: v3
name: hip-groups-upgrade
description: R09 groups - upgrade patches follow group order
version: 0.1.0

hip-groups-upgrade/templates/_workload.tpl · 986 B

{{- define "e2e.workload.upgrade" -}}
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 }}
    patch-marker: {{ .root.Values.patchValue }}
spec:
  replicas: 1
  selector:
    matchLabels: {app: {{ .name }}}
  template:
    metadata:
      labels: {app: {{ .name }}}
      annotations:
        patch-marker: {{ .root.Values.patchValue }}
    spec:
      terminationGracePeriodSeconds: 0
      containers:
        - name: web
          image: {{ .root.Values.image }}
          imagePullPolicy: IfNotPresent
          env:
            - name: PATCH_VALUE
              value: {{ .root.Values.patchValue | quote }}
          readinessProbe:
            httpGet: {path: /, port: 80}
            initialDelaySeconds: {{ .root.Values.readyDelay }}
            periodSeconds: 1
{{- end -}}

hip-groups-upgrade/templates/groups.yaml · 347 B

# database and queue deploy together; app depends on both
{{ include "e2e.workload.upgrade" (dict "root" $ "name" "db" "group" "database") }}
---
{{ include "e2e.workload.upgrade" (dict "root" $ "name" "queue" "group" "queue") }}
---
{{ include "e2e.workload.upgrade" (dict "root" $ "name" "app" "group" "app" "deps" (list "database" "queue")) }}

hip-groups-upgrade/values.yaml · 61 B

image: nginx:1.27-alpine
readyDelay: 3
patchValue: "initial"