mirror of
https://github.com/helm/helm.git
synced 2026-03-27 12:53:33 -04:00
Added tests for different combinations of subcharts & requirements.yaml
Added more tests to test following comibnations of subcharts and requirements.yaml - [ ] subcharts not specified in requirements.yaml - [ ] some subcharts specified in requirements.yaml while others should be picked directly from "charts\" - [ ] all subcharts specified in requirements.yaml without alias - [ ] subcharts specified in requirements.yaml with alias is already tested
This commit is contained in:
parent
7ce5c7925b
commit
82da721c0a
60 changed files with 353 additions and 0 deletions
|
|
@ -383,3 +383,84 @@ func TestDependentChartAliases(t *testing.T) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
func TestDependentChartWithSubChartsAbsentInRequirements(t *testing.T) {
|
||||
c, err := Load("testdata/dependent-chart-no-requirements-yaml")
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to load testdata: %s", err)
|
||||
}
|
||||
|
||||
if len(c.Dependencies) != 2 {
|
||||
t.Fatalf("Expected 2 dependencies for this chart, but got %d", len(c.Dependencies))
|
||||
}
|
||||
|
||||
origLength := len(c.Dependencies)
|
||||
if err := ProcessRequirementsEnabled(c, c.Values); err != nil {
|
||||
t.Fatalf("Expected no errors but got %q", err)
|
||||
}
|
||||
|
||||
if len(c.Dependencies) != origLength {
|
||||
t.Fatal("Expected no changes in dependencies to be, but did something got changed")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestDependentChartsWithSubchartsAllSpecifiedInRequirements(t *testing.T) {
|
||||
c, err := Load("testdata/dependent-chart-with-all-in-requirements-yaml")
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to load testdata: %s", err)
|
||||
}
|
||||
|
||||
if len(c.Dependencies) == 0 {
|
||||
t.Fatal("There are no dependencies to run this test")
|
||||
}
|
||||
|
||||
origLength := len(c.Dependencies)
|
||||
if err := ProcessRequirementsEnabled(c, c.Values); err != nil {
|
||||
t.Fatalf("Expected no errors but got %q", err)
|
||||
}
|
||||
|
||||
if len(c.Dependencies) != origLength {
|
||||
t.Fatal("Expected no changes in dependencies to be, but did something got changed")
|
||||
}
|
||||
|
||||
reqmts, err := LoadRequirements(c)
|
||||
if err != nil {
|
||||
t.Fatalf("Cannot load requirements for test chart, %v", err)
|
||||
}
|
||||
|
||||
if len(c.Dependencies) != len(reqmts.Dependencies) {
|
||||
t.Fatalf("Expected number of chart dependencies %d, but got %d", len(reqmts.Dependencies), len(c.Dependencies))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestDependentChartsWithSomeSubchartsSpecifiedInRequirements(t *testing.T) {
|
||||
c, err := Load("testdata/dependent-chart-with-mixed-requirements-yaml")
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to load testdata: %s", err)
|
||||
}
|
||||
|
||||
if len(c.Dependencies) == 0 {
|
||||
t.Fatal("There are no dependencies to run this test")
|
||||
}
|
||||
|
||||
origLength := len(c.Dependencies)
|
||||
if err := ProcessRequirementsEnabled(c, c.Values); err != nil {
|
||||
t.Fatalf("Expected no errors but got %q", err)
|
||||
}
|
||||
|
||||
if len(c.Dependencies) != origLength {
|
||||
t.Fatal("Expected no changes in dependencies to be, but did something got changed")
|
||||
}
|
||||
|
||||
reqmts, err := LoadRequirements(c)
|
||||
if err != nil {
|
||||
t.Fatalf("Cannot load requirements for test chart, %v", err)
|
||||
}
|
||||
|
||||
if len(c.Dependencies) <= len(reqmts.Dependencies) {
|
||||
t.Fatalf("Expected more dependencies than specified in requirements.yaml(%d), but got %d", len(reqmts.Dependencies), len(c.Dependencies))
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/.helmignore
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/.helmignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
ignore/
|
||||
17
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/Chart.yaml
vendored
Normal file
17
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/Chart.yaml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: v1
|
||||
name: frobnitz
|
||||
description: This is a frobnitz.
|
||||
version: "1.2.3"
|
||||
keywords:
|
||||
- frobnitz
|
||||
- sprocket
|
||||
- dodad
|
||||
maintainers:
|
||||
- name: The Helm Team
|
||||
email: helm@example.com
|
||||
- name: Someone Else
|
||||
email: nobody@example.com
|
||||
sources:
|
||||
- https://example.com/foo/bar
|
||||
home: http://example.com
|
||||
icon: https://example.com/64x64.png
|
||||
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/INSTALL.txt
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/INSTALL.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
This is an install document. The client may display this.
|
||||
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/LICENSE
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/LICENSE
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
LICENSE placeholder.
|
||||
11
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/README.md
vendored
Normal file
11
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/README.md
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Frobnitz
|
||||
|
||||
This is an example chart.
|
||||
|
||||
## Usage
|
||||
|
||||
This is an example. It has no usage.
|
||||
|
||||
## Development
|
||||
|
||||
For developer info, see the top-level repository.
|
||||
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/_ignore_me
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/_ignore_me
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
This should be ignored by the loader, but may be included in a chart.
|
||||
4
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/alpine/Chart.yaml
vendored
Normal file
4
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/alpine/Chart.yaml
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
name: alpine
|
||||
description: Deploy a basic Alpine Linux pod
|
||||
version: 0.1.0
|
||||
home: https://k8s.io/helm
|
||||
9
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/alpine/README.md
vendored
Normal file
9
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/alpine/README.md
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
This example was generated using the command `helm create alpine`.
|
||||
|
||||
The `templates/` directory contains a very simple pod resource with a
|
||||
couple of parameters.
|
||||
|
||||
The `values.toml` file contains the default values for the
|
||||
`alpine-pod.yaml` template.
|
||||
|
||||
You can install this example using `helm install docs/examples/alpine`.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
name: mast1
|
||||
description: A Helm chart for Kubernetes
|
||||
version: 0.1.0
|
||||
home: ""
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# Default values for mast1.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare name/value pairs to be passed into your templates.
|
||||
# name = "value"
|
||||
BIN
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/alpine/charts/mast2-0.1.0.tgz
vendored
Normal file
BIN
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/alpine/charts/mast2-0.1.0.tgz
vendored
Normal file
Binary file not shown.
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: {{.Release.Name}}-{{.Chart.Name}}
|
||||
labels:
|
||||
heritage: {{.Release.Service}}
|
||||
chartName: {{.Chart.Name}}
|
||||
chartVersion: {{.Chart.Version | quote}}
|
||||
annotations:
|
||||
"helm.sh/created": "{{.Release.Time.Seconds}}"
|
||||
spec:
|
||||
restartPolicy: {{default "Never" .restart_policy}}
|
||||
containers:
|
||||
- name: waiter
|
||||
image: "alpine:3.3"
|
||||
command: ["/bin/sleep","9000"]
|
||||
2
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/alpine/values.yaml
vendored
Normal file
2
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/alpine/values.yaml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# The pod name
|
||||
name: "my-alpine"
|
||||
BIN
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/mariner-4.3.2.tgz
vendored
Normal file
BIN
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/charts/mariner-4.3.2.tgz
vendored
Normal file
Binary file not shown.
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/docs/README.md
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/docs/README.md
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
This is a placeholder for documentation.
|
||||
8
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/icon.svg
vendored
Normal file
8
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/icon.svg
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
version="1.0" width="256" height="256" id="test">
|
||||
<desc>Example icon</desc>
|
||||
<rect id="first" x="2" y="2" width="40" height="60" fill="navy"/>
|
||||
<rect id="second" x="15" y="4" width="40" height="60" fill="red"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 374 B |
0
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/ignore/me.txt
vendored
Normal file
0
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/ignore/me.txt
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/templates/template.tpl
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/templates/template.tpl
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
Hello {{.Name | default "world"}}
|
||||
6
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/values.yaml
vendored
Normal file
6
pkg/chartutil/testdata/dependent-chart-no-requirements-yaml/values.yaml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# A values file contains configuration.
|
||||
|
||||
name: "Some Name"
|
||||
|
||||
section:
|
||||
name: "Name in a section"
|
||||
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/.helmignore
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/.helmignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
ignore/
|
||||
17
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/Chart.yaml
vendored
Normal file
17
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/Chart.yaml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: v1
|
||||
name: frobnitz
|
||||
description: This is a frobnitz.
|
||||
version: "1.2.3"
|
||||
keywords:
|
||||
- frobnitz
|
||||
- sprocket
|
||||
- dodad
|
||||
maintainers:
|
||||
- name: The Helm Team
|
||||
email: helm@example.com
|
||||
- name: Someone Else
|
||||
email: nobody@example.com
|
||||
sources:
|
||||
- https://example.com/foo/bar
|
||||
home: http://example.com
|
||||
icon: https://example.com/64x64.png
|
||||
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/INSTALL.txt
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/INSTALL.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
This is an install document. The client may display this.
|
||||
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/LICENSE
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/LICENSE
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
LICENSE placeholder.
|
||||
11
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/README.md
vendored
Normal file
11
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/README.md
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Frobnitz
|
||||
|
||||
This is an example chart.
|
||||
|
||||
## Usage
|
||||
|
||||
This is an example. It has no usage.
|
||||
|
||||
## Development
|
||||
|
||||
For developer info, see the top-level repository.
|
||||
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/charts/_ignore_me
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/charts/_ignore_me
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
This should be ignored by the loader, but may be included in a chart.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
name: alpine
|
||||
description: Deploy a basic Alpine Linux pod
|
||||
version: 0.1.0
|
||||
home: https://k8s.io/helm
|
||||
9
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/charts/alpine/README.md
vendored
Normal file
9
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/charts/alpine/README.md
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
This example was generated using the command `helm create alpine`.
|
||||
|
||||
The `templates/` directory contains a very simple pod resource with a
|
||||
couple of parameters.
|
||||
|
||||
The `values.toml` file contains the default values for the
|
||||
`alpine-pod.yaml` template.
|
||||
|
||||
You can install this example using `helm install docs/examples/alpine`.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
name: mast1
|
||||
description: A Helm chart for Kubernetes
|
||||
version: 0.1.0
|
||||
home: ""
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# Default values for mast1.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare name/value pairs to be passed into your templates.
|
||||
# name = "value"
|
||||
Binary file not shown.
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: {{.Release.Name}}-{{.Chart.Name}}
|
||||
labels:
|
||||
heritage: {{.Release.Service}}
|
||||
chartName: {{.Chart.Name}}
|
||||
chartVersion: {{.Chart.Version | quote}}
|
||||
annotations:
|
||||
"helm.sh/created": "{{.Release.Time.Seconds}}"
|
||||
spec:
|
||||
restartPolicy: {{default "Never" .restart_policy}}
|
||||
containers:
|
||||
- name: waiter
|
||||
image: "alpine:3.3"
|
||||
command: ["/bin/sleep","9000"]
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# The pod name
|
||||
name: "my-alpine"
|
||||
BIN
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/charts/mariner-4.3.2.tgz
vendored
Normal file
BIN
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/charts/mariner-4.3.2.tgz
vendored
Normal file
Binary file not shown.
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/docs/README.md
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/docs/README.md
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
This is a placeholder for documentation.
|
||||
8
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/icon.svg
vendored
Normal file
8
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/icon.svg
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
version="1.0" width="256" height="256" id="test">
|
||||
<desc>Example icon</desc>
|
||||
<rect id="first" x="2" y="2" width="40" height="60" fill="navy"/>
|
||||
<rect id="second" x="15" y="4" width="40" height="60" fill="red"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 374 B |
0
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/ignore/me.txt
vendored
Normal file
0
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/ignore/me.txt
vendored
Normal file
7
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/requirements.yaml
vendored
Normal file
7
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/requirements.yaml
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
dependencies:
|
||||
- name: alpine
|
||||
version: "0.1.0"
|
||||
repository: https://example.com/charts
|
||||
- name: mariner
|
||||
version: "4.3.2"
|
||||
repository: https://example.com/charts
|
||||
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/templates/template.tpl
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/templates/template.tpl
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
Hello {{.Name | default "world"}}
|
||||
6
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/values.yaml
vendored
Normal file
6
pkg/chartutil/testdata/dependent-chart-with-all-in-requirements-yaml/values.yaml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# A values file contains configuration.
|
||||
|
||||
name: "Some Name"
|
||||
|
||||
section:
|
||||
name: "Name in a section"
|
||||
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/.helmignore
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/.helmignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
ignore/
|
||||
17
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/Chart.yaml
vendored
Normal file
17
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/Chart.yaml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: v1
|
||||
name: frobnitz
|
||||
description: This is a frobnitz.
|
||||
version: "1.2.3"
|
||||
keywords:
|
||||
- frobnitz
|
||||
- sprocket
|
||||
- dodad
|
||||
maintainers:
|
||||
- name: The Helm Team
|
||||
email: helm@example.com
|
||||
- name: Someone Else
|
||||
email: nobody@example.com
|
||||
sources:
|
||||
- https://example.com/foo/bar
|
||||
home: http://example.com
|
||||
icon: https://example.com/64x64.png
|
||||
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/INSTALL.txt
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/INSTALL.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
This is an install document. The client may display this.
|
||||
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/LICENSE
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/LICENSE
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
LICENSE placeholder.
|
||||
11
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/README.md
vendored
Normal file
11
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/README.md
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Frobnitz
|
||||
|
||||
This is an example chart.
|
||||
|
||||
## Usage
|
||||
|
||||
This is an example. It has no usage.
|
||||
|
||||
## Development
|
||||
|
||||
For developer info, see the top-level repository.
|
||||
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/charts/_ignore_me
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/charts/_ignore_me
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
This should be ignored by the loader, but may be included in a chart.
|
||||
4
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/charts/alpine/Chart.yaml
vendored
Normal file
4
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/charts/alpine/Chart.yaml
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
name: alpine
|
||||
description: Deploy a basic Alpine Linux pod
|
||||
version: 0.1.0
|
||||
home: https://k8s.io/helm
|
||||
9
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/charts/alpine/README.md
vendored
Normal file
9
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/charts/alpine/README.md
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
This example was generated using the command `helm create alpine`.
|
||||
|
||||
The `templates/` directory contains a very simple pod resource with a
|
||||
couple of parameters.
|
||||
|
||||
The `values.toml` file contains the default values for the
|
||||
`alpine-pod.yaml` template.
|
||||
|
||||
You can install this example using `helm install docs/examples/alpine`.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
name: mast1
|
||||
description: A Helm chart for Kubernetes
|
||||
version: 0.1.0
|
||||
home: ""
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# Default values for mast1.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare name/value pairs to be passed into your templates.
|
||||
# name = "value"
|
||||
Binary file not shown.
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: {{.Release.Name}}-{{.Chart.Name}}
|
||||
labels:
|
||||
heritage: {{.Release.Service}}
|
||||
chartName: {{.Chart.Name}}
|
||||
chartVersion: {{.Chart.Version | quote}}
|
||||
annotations:
|
||||
"helm.sh/created": "{{.Release.Time.Seconds}}"
|
||||
spec:
|
||||
restartPolicy: {{default "Never" .restart_policy}}
|
||||
containers:
|
||||
- name: waiter
|
||||
image: "alpine:3.3"
|
||||
command: ["/bin/sleep","9000"]
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# The pod name
|
||||
name: "my-alpine"
|
||||
BIN
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/charts/mariner-4.3.2.tgz
vendored
Normal file
BIN
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/charts/mariner-4.3.2.tgz
vendored
Normal file
Binary file not shown.
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/docs/README.md
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/docs/README.md
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
This is a placeholder for documentation.
|
||||
8
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/icon.svg
vendored
Normal file
8
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/icon.svg
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
version="1.0" width="256" height="256" id="test">
|
||||
<desc>Example icon</desc>
|
||||
<rect id="first" x="2" y="2" width="40" height="60" fill="navy"/>
|
||||
<rect id="second" x="15" y="4" width="40" height="60" fill="red"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 374 B |
0
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/ignore/me.txt
vendored
Normal file
0
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/ignore/me.txt
vendored
Normal file
4
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/requirements.yaml
vendored
Normal file
4
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/requirements.yaml
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
dependencies:
|
||||
- name: alpine
|
||||
version: "0.1.0"
|
||||
repository: https://example.com/charts
|
||||
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/templates/template.tpl
vendored
Normal file
1
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/templates/template.tpl
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
Hello {{.Name | default "world"}}
|
||||
6
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/values.yaml
vendored
Normal file
6
pkg/chartutil/testdata/dependent-chart-with-mixed-requirements-yaml/values.yaml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# A values file contains configuration.
|
||||
|
||||
name: "Some Name"
|
||||
|
||||
section:
|
||||
name: "Name in a section"
|
||||
Loading…
Reference in a new issue