Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chart/files/component-pins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ components:
- name: authn-crd
kind: AuthnCrds
chart: authn-crds
version: 0.27.0
version: 0.27.1
tier: platform
feature: portal
- name: oasgen-provider-crd
Expand All @@ -26,7 +26,7 @@ components:
- name: authn
kind: Authn
chart: authn
version: 0.27.0
version: 0.27.1
deps:
- authn-crd
tier: platform
Expand Down
11 changes: 11 additions & 0 deletions chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
{{- printf "composition.krateo.io/v%s" ($ver | toString | replace "." "-") -}}
{{- end -}}

{{/* Image for the installer's own lifecycle hook Jobs (self-bootstrap waves + the pre/post-delete
teardown/cleanup reapers). These hooks only ever run `kubectl` inside `/bin/sh` poll loops
(no helm/jq/yq/kustomize), so they use the minimal official-family alpine/kubectl (~21MB
compressed, busybox shell) instead of alpine/k8s (~250MB compressed / 822MB unpacked). The
smaller pull keeps every hook Job inside its activeDeadlineSeconds on fresh multi-node clusters
where the fat image previously blew the 300s self-register/self-instance budget (#66). Pinned to
kubectl 1.36.x to match the installer's k8s>=1.36 floor (was 1.31, already skewed). Single source
of truth: a pure template constant, NOT a values key, so it never has to be threaded through
values.schema.json / the crdgen'd Installer CRD / the composition-mode CR (cf. #68). */}}
{{- define "inst.hookImage" -}}alpine/kubectl:1.36.3{{- end -}}

{{/* Optional CompositionDefinition spec.chart extras (registry-level): insecureSkipVerifyTLS
and credentials, rendered ONLY when set so the chart spec stays minimal on public
registries. arg: (list $). passwordRef.namespace defaults to the krateo namespace.
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/bootstrap-teardown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
restartPolicy: Never
containers:
- name: drain
image: alpine/k8s:1.31.0
image: {{ include "inst.hookImage" . }}
command: ["/bin/sh", "-c"]
args:
- |
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/ordered-teardown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
restartPolicy: Never
containers:
- name: order
image: alpine/k8s:1.31.0
image: {{ include "inst.hookImage" . }}
command: ["/bin/sh", "-c"]
args:
- |
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/post-delete-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ spec:
restartPolicy: Never
containers:
- name: sweep
image: alpine/k8s:1.31.0
image: {{ include "inst.hookImage" . }}
command: ["/bin/sh", "-c"]
args:
- |
Expand Down
8 changes: 4 additions & 4 deletions chart/templates/self-bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ spec:
name: installer-self-cr
containers:
- name: register
image: alpine/k8s:1.31.0
image: {{ include "inst.hookImage" . }}
volumeMounts:
- name: cr
mountPath: /cr
Expand Down Expand Up @@ -320,7 +320,7 @@ spec:
restartPolicy: Never
containers:
- name: await
image: alpine/k8s:1.31.0
image: {{ include "inst.hookImage" . }}
command: ["/bin/sh", "-c"]
args:
- |
Expand Down Expand Up @@ -355,7 +355,7 @@ spec:
name: installer-self-cr
containers:
- name: instance
image: alpine/k8s:1.31.0
image: {{ include "inst.hookImage" . }}
volumeMounts:
- name: cr
mountPath: /cr
Expand Down Expand Up @@ -400,7 +400,7 @@ spec:
restartPolicy: Never
containers:
- name: finalize
image: alpine/k8s:1.31.0
image: {{ include "inst.hookImage" . }}
command: ["/bin/sh", "-c"]
args:
- |
Expand Down
Loading