mirror of https://github.com/helm/helm
commit
977f864e93
@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
# Source: issue-9027/charts/subchart/templates/values.yaml
|
||||||
|
global:
|
||||||
|
hash:
|
||||||
|
key3: 13
|
||||||
|
key4: 4
|
||||||
|
key5: 5
|
||||||
|
key6: 6
|
||||||
|
hash:
|
||||||
|
key3: 13
|
||||||
|
key4: 4
|
||||||
|
key5: 5
|
||||||
|
key6: 6
|
||||||
|
---
|
||||||
|
# Source: issue-9027/templates/values.yaml
|
||||||
|
global:
|
||||||
|
hash:
|
||||||
|
key1: null
|
||||||
|
key2: null
|
||||||
|
key3: 13
|
||||||
|
subchart:
|
||||||
|
global:
|
||||||
|
hash:
|
||||||
|
key3: 13
|
||||||
|
key4: 4
|
||||||
|
key5: 5
|
||||||
|
key6: 6
|
||||||
|
hash:
|
||||||
|
key3: 13
|
||||||
|
key4: 4
|
||||||
|
key5: 5
|
||||||
|
key6: 6
|
@ -1,4 +0,0 @@
|
|||||||
==> Linting testdata/testcharts/chart-with-only-crds
|
|
||||||
[WARNING] templates/: directory not found
|
|
||||||
|
|
||||||
1 chart(s) linted, 0 chart(s) failed
|
|
@ -0,0 +1,122 @@
|
|||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/serviceaccount.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: subchart-sa
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/configmap.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: subchart-cm
|
||||||
|
data:
|
||||||
|
value: qux
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/role.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: Role
|
||||||
|
metadata:
|
||||||
|
name: subchart-role
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods"]
|
||||||
|
verbs: ["get","list","watch"]
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/rolebinding.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
name: subchart-binding
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: Role
|
||||||
|
name: subchart-role
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: subchart-sa
|
||||||
|
namespace: default
|
||||||
|
---
|
||||||
|
# Source: subchart/charts/subcharta/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subcharta
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subcharta-0.1.0"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: apache
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subcharta
|
||||||
|
---
|
||||||
|
# Source: subchart/charts/subchartb/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subchartb
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subchartb-0.1.0"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: nginx
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subchartb
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subchart
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subchart-0.1.0"
|
||||||
|
app.kubernetes.io/instance: "release-name"
|
||||||
|
kube-version/major: "1"
|
||||||
|
kube-version/minor: "20"
|
||||||
|
kube-version/version: "v1.20.0"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: nginx
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subchart
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/tests/test-config.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: "release-name-testconfig"
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": test
|
||||||
|
data:
|
||||||
|
message: Hello World
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/tests/test-nothing.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: "release-name-test"
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": test
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: test
|
||||||
|
image: "alpine:latest"
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: "release-name-testconfig"
|
||||||
|
command:
|
||||||
|
- echo
|
||||||
|
- "$message"
|
||||||
|
restartPolicy: Never
|
@ -0,0 +1,122 @@
|
|||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/serviceaccount.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: subchart-sa
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/configmap.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: subchart-cm
|
||||||
|
data:
|
||||||
|
value: baz
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/role.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: Role
|
||||||
|
metadata:
|
||||||
|
name: subchart-role
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods"]
|
||||||
|
verbs: ["get","list","watch"]
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/rolebinding.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
name: subchart-binding
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: Role
|
||||||
|
name: subchart-role
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: subchart-sa
|
||||||
|
namespace: default
|
||||||
|
---
|
||||||
|
# Source: subchart/charts/subcharta/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subcharta
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subcharta-0.1.0"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: apache
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subcharta
|
||||||
|
---
|
||||||
|
# Source: subchart/charts/subchartb/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subchartb
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subchartb-0.1.0"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: nginx
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subchartb
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subchart
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subchart-0.1.0"
|
||||||
|
app.kubernetes.io/instance: "release-name"
|
||||||
|
kube-version/major: "1"
|
||||||
|
kube-version/minor: "20"
|
||||||
|
kube-version/version: "v1.20.0"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: nginx
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subchart
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/tests/test-config.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: "release-name-testconfig"
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": test
|
||||||
|
data:
|
||||||
|
message: Hello World
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/tests/test-nothing.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: "release-name-test"
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": test
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: test
|
||||||
|
image: "alpine:latest"
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: "release-name-testconfig"
|
||||||
|
command:
|
||||||
|
- echo
|
||||||
|
- "$message"
|
||||||
|
restartPolicy: Never
|
@ -0,0 +1,122 @@
|
|||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/serviceaccount.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: subchart-sa
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/configmap.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: subchart-cm
|
||||||
|
data:
|
||||||
|
value: bar
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/role.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: Role
|
||||||
|
metadata:
|
||||||
|
name: subchart-role
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods"]
|
||||||
|
verbs: ["get","list","watch"]
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/subdir/rolebinding.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
name: subchart-binding
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: Role
|
||||||
|
name: subchart-role
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: subchart-sa
|
||||||
|
namespace: default
|
||||||
|
---
|
||||||
|
# Source: subchart/charts/subcharta/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subcharta
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subcharta-0.1.0"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: apache
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subcharta
|
||||||
|
---
|
||||||
|
# Source: subchart/charts/subchartb/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subchartb
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subchartb-0.1.0"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: nginx
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subchartb
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subchart
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subchart-0.1.0"
|
||||||
|
app.kubernetes.io/instance: "release-name"
|
||||||
|
kube-version/major: "1"
|
||||||
|
kube-version/minor: "20"
|
||||||
|
kube-version/version: "v1.20.0"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: nginx
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subchart
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/tests/test-config.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: "release-name-testconfig"
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": test
|
||||||
|
data:
|
||||||
|
message: Hello World
|
||||||
|
---
|
||||||
|
# Source: subchart/templates/tests/test-nothing.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: "release-name-test"
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": test
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: test
|
||||||
|
image: "alpine:latest"
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: "release-name-testconfig"
|
||||||
|
command:
|
||||||
|
- echo
|
||||||
|
- "$message"
|
||||||
|
restartPolicy: Never
|
@ -1 +1 @@
|
|||||||
version.BuildInfo{Version:"v3.11", GitCommit:"", GitTreeState:"", GoVersion:""}
|
version.BuildInfo{Version:"v3.12", GitCommit:"", GitTreeState:"", GoVersion:""}
|
||||||
|
@ -1 +1 @@
|
|||||||
version.BuildInfo{Version:"v3.11", GitCommit:"", GitTreeState:"", GoVersion:""}
|
version.BuildInfo{Version:"v3.12", GitCommit:"", GitTreeState:"", GoVersion:""}
|
||||||
|
@ -1 +1 @@
|
|||||||
v3.11
|
v3.12
|
||||||
|
@ -1 +1 @@
|
|||||||
Version: v3.11
|
Version: v3.12
|
@ -1 +1 @@
|
|||||||
version.BuildInfo{Version:"v3.11", GitCommit:"", GitTreeState:"", GoVersion:""}
|
version.BuildInfo{Version:"v3.12", GitCommit:"", GitTreeState:"", GoVersion:""}
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: issue-9027
|
||||||
|
version: 0.1.0
|
||||||
|
dependencies:
|
||||||
|
- name: subchart
|
||||||
|
version: 0.1.0
|
@ -0,0 +1,3 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: subchart
|
||||||
|
version: 0.1.0
|
@ -0,0 +1 @@
|
|||||||
|
{{ .Values | toYaml }}
|
@ -0,0 +1,17 @@
|
|||||||
|
global:
|
||||||
|
hash:
|
||||||
|
key1: 1
|
||||||
|
key2: 2
|
||||||
|
key3: 3
|
||||||
|
key4: 4
|
||||||
|
key5: 5
|
||||||
|
key6: 6
|
||||||
|
|
||||||
|
|
||||||
|
hash:
|
||||||
|
key1: 1
|
||||||
|
key2: 2
|
||||||
|
key3: 3
|
||||||
|
key4: 4
|
||||||
|
key5: 5
|
||||||
|
key6: 6
|
@ -0,0 +1 @@
|
|||||||
|
{{ .Values | toYaml }}
|
@ -0,0 +1,11 @@
|
|||||||
|
global:
|
||||||
|
hash:
|
||||||
|
key1: null
|
||||||
|
key2: null
|
||||||
|
key3: 13
|
||||||
|
|
||||||
|
subchart:
|
||||||
|
hash:
|
||||||
|
key1: null
|
||||||
|
key2: null
|
||||||
|
key3: 13
|
@ -0,0 +1,5 @@
|
|||||||
|
# This file is used to test values passed by file at the command line
|
||||||
|
|
||||||
|
configmap:
|
||||||
|
enabled: true
|
||||||
|
value: "qux"
|
@ -0,0 +1,8 @@
|
|||||||
|
{{ if .Values.configmap.enabled -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}-cm
|
||||||
|
data:
|
||||||
|
value: {{ .Values.configmap.value }}
|
||||||
|
{{- end }}
|
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: app3
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: library
|
||||||
|
version: 0.1.0
|
||||||
|
import-values:
|
||||||
|
- defaults
|
@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: library
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: library
|
||||||
|
version: 0.1.0
|
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
spec:
|
||||||
|
type: {{ .Values.service.type }}
|
||||||
|
ports:
|
||||||
|
- port: {{ .Values.service.port }}
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
@ -0,0 +1,5 @@
|
|||||||
|
exports:
|
||||||
|
defaults:
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 9090
|
@ -0,0 +1 @@
|
|||||||
|
{{- include "library.service" . }}
|
@ -0,0 +1,2 @@
|
|||||||
|
service:
|
||||||
|
type: ClusterIP
|
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: app4
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: library
|
||||||
|
version: 0.1.0
|
@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: library
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: library
|
||||||
|
version: 0.1.0
|
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
spec:
|
||||||
|
type: {{ .Values.service.type }}
|
||||||
|
ports:
|
||||||
|
- port: {{ .Values.service.port }}
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
@ -0,0 +1,5 @@
|
|||||||
|
exports:
|
||||||
|
defaults:
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 9090
|
@ -0,0 +1 @@
|
|||||||
|
{{- include "library.service" . }}
|
@ -0,0 +1,3 @@
|
|||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 1234
|
@ -0,0 +1,23 @@
|
|||||||
|
# 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
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: test
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
|
||||||
|
# A chart can be either an 'application' or a 'library' chart.
|
||||||
|
#
|
||||||
|
# Application charts are a collection of templates that can be packaged into versioned archives
|
||||||
|
# to be deployed.
|
||||||
|
#
|
||||||
|
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
||||||
|
# a dependency of application charts to inject those utilities and functions into the rendering
|
||||||
|
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
||||||
|
type: application
|
||||||
|
|
||||||
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
|
# to the chart and its templates, including the app version.
|
||||||
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
|
version: 0.1.0
|
||||||
|
|
||||||
|
# This is the version number of the application being deployed. This version number should be
|
||||||
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
|
# It is recommended to use it with quotes.
|
||||||
|
appVersion: "1.16.0"
|
||||||
|
icon: https://riverrun.io
|
@ -0,0 +1 @@
|
|||||||
|
{ {- $relname := .Release.Name -}}
|
@ -0,0 +1,82 @@
|
|||||||
|
# Default values for test.
|
||||||
|
# This is a YAML-formatted file.
|
||||||
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: nginx
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
|
tag: ""
|
||||||
|
|
||||||
|
imagePullSecrets: []
|
||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
# Specifies whether a service account should be created
|
||||||
|
create: true
|
||||||
|
# Annotations to add to the service account
|
||||||
|
annotations: {}
|
||||||
|
# The name of the service account to use.
|
||||||
|
# If not set and create is true, a name is generated using the fullname template
|
||||||
|
name: ""
|
||||||
|
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
|
podSecurityContext: {}
|
||||||
|
# fsGroup: 2000
|
||||||
|
|
||||||
|
securityContext: {}
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
|
className: ""
|
||||||
|
annotations: {}
|
||||||
|
# kubernetes.io/ingress.class: nginx
|
||||||
|
# kubernetes.io/tls-acme: "true"
|
||||||
|
hosts:
|
||||||
|
- host: chart-example.local
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
tls: []
|
||||||
|
# - secretName: chart-example-tls
|
||||||
|
# hosts:
|
||||||
|
# - chart-example.local
|
||||||
|
|
||||||
|
resources: {}
|
||||||
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
|
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
||||||
|
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
||||||
|
# limits:
|
||||||
|
# cpu: 100m
|
||||||
|
# memory: 128Mi
|
||||||
|
# requests:
|
||||||
|
# cpu: 100m
|
||||||
|
# memory: 128Mi
|
||||||
|
|
||||||
|
autoscaling:
|
||||||
|
enabled: false
|
||||||
|
minReplicas: 1
|
||||||
|
maxReplicas: 100
|
||||||
|
targetCPUUtilizationPercentage: 80
|
||||||
|
# targetMemoryUtilizationPercentage: 80
|
||||||
|
|
||||||
|
nodeSelector: {}
|
||||||
|
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
|
affinity: {}
|
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
Copyright The Helm Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package registry
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/containerd/containerd/errdefs"
|
||||||
|
"github.com/stretchr/testify/suite"
|
||||||
|
)
|
||||||
|
|
||||||
|
type HTTPRegistryClientTestSuite struct {
|
||||||
|
TestSuite
|
||||||
|
}
|
||||||
|
|
||||||
|
func (suite *HTTPRegistryClientTestSuite) SetupSuite() {
|
||||||
|
// init test client
|
||||||
|
dockerRegistry := setup(&suite.TestSuite, false, false)
|
||||||
|
|
||||||
|
// Start Docker registry
|
||||||
|
go dockerRegistry.ListenAndServe()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (suite *HTTPRegistryClientTestSuite) TearDownSuite() {
|
||||||
|
teardown(&suite.TestSuite)
|
||||||
|
os.RemoveAll(suite.WorkspaceDir)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (suite *HTTPRegistryClientTestSuite) Test_1_Push() {
|
||||||
|
testPush(&suite.TestSuite)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (suite *HTTPRegistryClientTestSuite) Test_2_Pull() {
|
||||||
|
testPull(&suite.TestSuite)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (suite *HTTPRegistryClientTestSuite) Test_3_Tags() {
|
||||||
|
testTags(&suite.TestSuite)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (suite *HTTPRegistryClientTestSuite) Test_4_ManInTheMiddle() {
|
||||||
|
ref := fmt.Sprintf("%s/testrepo/supposedlysafechart:9.9.9", suite.CompromisedRegistryHost)
|
||||||
|
|
||||||
|
// returns content that does not match the expected digest
|
||||||
|
_, err := suite.RegistryClient.Pull(ref)
|
||||||
|
suite.NotNil(err)
|
||||||
|
suite.True(errdefs.IsFailedPrecondition(err))
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestHTTPRegistryClientTestSuite(t *testing.T) {
|
||||||
|
suite.Run(t, new(HTTPRegistryClientTestSuite))
|
||||||
|
}
|
@ -1,21 +0,0 @@
|
|||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIIDhzCCAm+gAwIBAgIUdI/ees1mQ4N++1jpF5xI5fq6TSUwDQYJKoZIhvcNAQEL
|
|
||||||
BQAwUjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMQswCQYDVQQHDAJTRjENMAsG
|
|
||||||
A1UECgwEaGVsbTEaMBgGA1UEAwwRcmVnaXN0cnktdGVzdC5jb20wIBcNMjIwOTIw
|
|
||||||
MDgyMDQ2WhgPMzAyMjAxMjEwODIwNDZaMFIxCzAJBgNVBAYTAlVTMQswCQYDVQQI
|
|
||||||
DAJDQTELMAkGA1UEBwwCU0YxDTALBgNVBAoMBGhlbG0xGjAYBgNVBAMMEXJlZ2lz
|
|
||||||
dHJ5LXRlc3QuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0mxP
|
|
||||||
WVkpDo3PnXalJhy9rSYuK8OIxcO1kBroEnILYrNWn5zpKioaBXZEYcaU6crc5N4j
|
|
||||||
wQRC16wucyQAQh/d3ty7j5Wyy79CgH5AAKDbCacii4BgGUJ2xY6UXuKvwdsROAXN
|
|
||||||
wEtXT5f3yO8bVboYrZRxJ4UuTUFndtuz2b230JFs2FzTv4QdLaPHo/S4FTW5xRn5
|
|
||||||
Irhmcmkns+XY4AduscYtzydvIuuOS3CVmB8/sClo62F5DpBl68b+/WFwqLrkX5Sn
|
|
||||||
ZWKx/fJPIxln5SavPXHEEcI14ZGNUhsv+4+sABHzVjBPK8oKjoNo8QmxDWdeWPgR
|
|
||||||
sPj/H2oldE6KfgyoQQIDAQABo1MwUTAdBgNVHQ4EFgQUkkmPK6SIj4PY8YOw+Yer
|
|
||||||
hKCOS7owHwYDVR0jBBgwFoAUkkmPK6SIj4PY8YOw+YerhKCOS7owDwYDVR0TAQH/
|
|
||||||
BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEADSz9s8rcObLrUo8DpVRptWUxK3NH
|
|
||||||
hvD7bYGQ9eJO9B4ojKSBKJRchP0m5kpVLorMRZDRw17T2GouKQn3g+Wcy+8CygxW
|
|
||||||
1JDO/1iCZ8QX3vfwIfHTaKuY6eYcJyVmxL58bRI3qQNRZIU4s18tKFIazBluxS3g
|
|
||||||
5Wp8kOCBssttsM+lEgC/cj7skl9CBKhUFupHPzXzha+1upJUK51Egc7M7nsrnpaZ
|
|
||||||
2SY+PBEhSY5Wcuzb5m9tw7PJnkdRDS/dUOY6kSzJXgNMVV0GnN+Smucqmvrez0M5
|
|
||||||
vHFMiQjlRxViVLJDNOCJYIjWNygAOvhJyRU2cTodIhZ/jbYqpNGAPc5Eyg==
|
|
||||||
-----END CERTIFICATE-----
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue