mirror of https://github.com/helm/helm
StampModTimes now normalizes the input time.Time to UTC and truncates to whole seconds before stamping, ensuring Chart.lock generated field is deterministic regardless of how the caller constructs the time.Time. Add chart-with-lock test fixture and TestRunWithSourceDateEpochAndLock to verify that a chart with a Chart.lock gets its generated field stamped with the SourceDateEpoch, and that two builds with the same epoch produce byte-identical output. Closes #32396 Co-authored-by: atlarix-agent <agent@atlarix.dev> Signed-off-by: Amariah Kamau <110414493+AmariahAK@users.noreply.github.com>pull/32403/head
parent
06978bd8c5
commit
15fd16f9d2
@ -0,0 +1,6 @@
|
|||||||
|
dependencies:
|
||||||
|
- name: nginx
|
||||||
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
version: 1.0.0
|
||||||
|
digest: sha256:abc123def456
|
||||||
|
generated: "2024-01-01T12:00:00Z"
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: chart-with-lock
|
||||||
|
description: Test chart with Chart.lock for reproducibility testing
|
||||||
|
version: 0.1.0
|
||||||
@ -0,0 +1 @@
|
|||||||
|
# This file is intentionally blank
|
||||||
Loading…
Reference in new issue