Skip to content

Commit d68ead5

Browse files
authored
Merge branch 'main' into helm-oci-digest-install
2 parents 73634d2 + 5e9a2a4 commit d68ead5

File tree

17 files changed

+416
-303
lines changed

17 files changed

+416
-303
lines changed

content/en/docs/chart_template_guide/function_list.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ The following type conversion functions are provided by Helm:
701701
- `fromJson`: Convert a JSON string to an object.
702702
- `fromJsonArray`: Convert a JSON array to a list.
703703
- `toYaml`: Convert list, slice, array, dict, or object to indented yaml, can be used to copy chunks of yaml from any source. This function is equivalent to GoLang yaml.Marshal function, see docs here: https://pkg.go.dev/gopkg.in/yaml.v2#Marshal
704+
- `toYamlPretty`: Convert list, slice, array, dict, or object to indented yaml. Equivalent to `toYaml` but will additionally indent lists by 2 spaces.
704705
- `toToml`: Convert list, slice, array, dict, or object to toml, can be used to copy chunks of toml from any source.
705706
- `fromYamlArray`: Convert a YAML array to a list.
706707

@@ -826,6 +827,32 @@ greeting: |
826827
{{ end }}
827828
```
828829

830+
### toYaml, toYamlPretty
831+
832+
The `toYaml` and `toYamlPretty` functions encode an object (list, slice, array, dict, or object) into an indented YAML string.
833+
834+
> Note that `toYamlPretty` is functionally equivalent but will output YAML with additional indents for list elements
835+
836+
```yaml
837+
# toYaml
838+
- name: bob
839+
age: 25
840+
hobbies:
841+
- hiking
842+
- fishing
843+
- cooking
844+
```
845+
846+
```yaml
847+
# toYamlPretty
848+
- name: bob
849+
age: 25
850+
hobbies:
851+
- hiking
852+
- fishing
853+
- cooking
854+
```
855+
829856
### fromYamlArray
830857

831858
The `fromYamlArray` function takes a YAML Array and returns a list that can be used in templates.
@@ -1578,7 +1605,7 @@ $myList := list 1 2 3 4 5
15781605
The above creates a list of `[1 2 3 4 5]`.
15791606
15801607
Helm provides the following list functions: [append
1581-
(mustAppend)](#append-mustappend), [compact
1608+
(mustAppend)](#append-mustappend), [chunk](#chunk), [compact
15821609
(mustCompact)](#compact-mustcompact), [concat](#concat), [first
15831610
(mustFirst)](#first-mustfirst), [has (mustHas)](#has-musthas), [initial
15841611
(mustInitial)](#initial-mustinitial), [last (mustLast)](#last-mustlast),
@@ -1795,6 +1822,16 @@ seq 0 2 10 => 0 2 4 6 8 10
17951822
seq 0 -2 -5 => 0 -2 -4
17961823
```
17971824
1825+
### chunk
1826+
1827+
To split a list into chunks of given size, use `chunk size list`. This is useful for pagination.
1828+
1829+
```
1830+
chunk 3 (list 1 2 3 4 5 6 7 8)
1831+
```
1832+
1833+
This produces list of lists `[ [ 1 2 3 ] [ 4 5 6 ] [ 7 8 ] ]`.
1834+
17981835
## Math Functions
17991836
18001837
All math functions operate on `int64` values unless specified otherwise.

content/en/docs/helm/helm_completion_bash.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ helm completion bash [flags]
6161

6262
* [helm completion](helm_completion.md) - generate autocompletion scripts for the specified shell
6363

64-
###### Auto generated by spf13/cobra on 15-Jan-2025
64+
###### Auto generated by spf13/cobra on 30-May-2025

content/en/docs/helm/helm_completion_fish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ helm completion fish [flags]
5858

5959
* [helm completion](helm_completion.md) - generate autocompletion scripts for the specified shell
6060

61-
###### Auto generated by spf13/cobra on 15-Jan-2025
61+
###### Auto generated by spf13/cobra on 30-May-2025

content/en/docs/helm/helm_completion_powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ helm completion powershell [flags]
5454

5555
* [helm completion](helm_completion.md) - generate autocompletion scripts for the specified shell
5656

57-
###### Auto generated by spf13/cobra on 15-Jan-2025
57+
###### Auto generated by spf13/cobra on 30-May-2025

content/en/docs/helm/helm_completion_zsh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ helm completion zsh [flags]
5656

5757
* [helm completion](helm_completion.md) - generate autocompletion scripts for the specified shell
5858

59-
###### Auto generated by spf13/cobra on 15-Jan-2025
59+
###### Auto generated by spf13/cobra on 30-May-2025

content/en/docs/helm/helm_registry_login.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ helm registry login [host] [flags]
2626
--key-file string identify registry client using this SSL key file
2727
-p, --password string registry password or identity token
2828
--password-stdin read password or identity token from stdin
29+
--plain-http use insecure HTTP connections for the chart upload
2930
-u, --username string registry username
3031
```
3132

@@ -54,4 +55,4 @@ helm registry login [host] [flags]
5455

5556
* [helm registry](helm_registry.md) - login to or logout from a registry
5657

57-
###### Auto generated by spf13/cobra on 15-Jan-2025
58+
###### Auto generated by spf13/cobra on 30-May-2025

content/en/docs/helm/helm_repo_add.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ helm repo add [NAME] [URL] [flags]
5252

5353
* [helm repo](helm_repo.md) - add, list, remove, update, and index chart repositories
5454

55-
###### Auto generated by spf13/cobra on 15-Jan-2025
55+
###### Auto generated by spf13/cobra on 30-May-2025

content/en/docs/topics/chart_tests.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,4 @@ Phase: Succeeded
103103
- A test is a [Helm hook](/docs/charts_hooks/), so annotations like
104104
`helm.sh/hook-weight` and `helm.sh/hook-delete-policy` may be used with test
105105
resources.
106+
- Often the contents in the `tests/` directory does not need to be packaged and published. Consider adding `tests/` to the `.helmignore` file.

content/en/docs/topics/registries.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ There are several hosted container registries with OCI support that you can use
6060
- [Harbor](https://goharbor.io/docs/main/administration/user-defined-oci-artifact/)
6161
- [IBM Cloud Container Registry](https://cloud.ibm.com/docs/Registry?topic=Registry-registry_helm_charts)
6262
- [JFrog Artifactory](https://jfrog.com/help/r/jfrog-artifactory-documentation/helm-oci-repositories)
63+
- [RepoFlow](https://docs.repoflow.io/PackageTypes/helm#oci-helm-support)
6364

6465

6566
Follow the hosted container registry provider's documentation to create and configure a registry with OCI support.

content/en/docs/topics/version_skew.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ with your cluster.
4646

4747
| Helm Version | Supported Kubernetes Versions |
4848
|--------------|-------------------------------|
49+
| 3.18.x | 1.33.x - 1.30.x |
4950
| 3.17.x | 1.32.x - 1.29.x |
5051
| 3.16.x | 1.31.x - 1.28.x |
5152
| 3.15.x | 1.30.x - 1.27.x |

0 commit comments

Comments
 (0)