mirror of https://github.com/helm/helm
fix(chart): lock digest differs when dependency build with Helm 2 and then Helm 3 (#7261)
* Fix issue with apiVersion v1 lock digest When apiVersion v1 chart dependencies are built with Helm 2 and then built with Helm 3, the lock digests differ. To avoid this issue, a depdendency update is forced. Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com> * Check against Helm v2 hash Handle scenario where dependency hash was generated by Helm v2 but need to do a dependency build with Helm v3. Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com> * Add unit test Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com> * Refactor unit test Refactor unit test to use an existing chart as dependency Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com> * Update after review Comments: - https://github.com/helm/helm/pull/7261#discussion_r373827088 - https://github.com/helm/helm/pull/7261#discussion_r373827250 Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>pull/7531/head
parent
7ce29e12fa
commit
5ec70ab27f
@ -0,0 +1,22 @@
|
||||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
@ -0,0 +1,5 @@
|
||||
apiVersion: v1
|
||||
appVersion: "1.0"
|
||||
description: A Helm chart for Kubernetes
|
||||
name: issue-7233
|
||||
version: 0.1.0
|
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: alpine
|
||||
repository: file://../alpine
|
||||
version: 0.1.0
|
||||
digest: sha256:7b380b1a826e7be1eecb089f66209d6d3df54be4bf879d4a8e6f8a9e871710e5
|
||||
generated: "2020-01-31T11:30:21.911547651Z"
|
@ -0,0 +1,4 @@
|
||||
dependencies:
|
||||
- name: alpine
|
||||
version: 0.1.0
|
||||
repository: file://../alpine
|
@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-configmap
|
||||
data:
|
||||
myvalue: "Hello World"
|
||||
drink: {{ .Values.favoriteDrink }}
|
@ -0,0 +1 @@
|
||||
favoriteDrink: coffee
|
Loading…
Reference in new issue