Skip to content

Commit 2e15490

Browse files
committed
feature: add documentation on OCI install with digest
Signed-off-by: Terry Howe <[email protected]>
1 parent f227710 commit 2e15490

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

docs/topics/registries.mdx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,22 @@ NOTES:
189189
...
190190
```
191191

192+
## Installing charts with digest
193+
194+
Installing a chart with a digest is more secure than a tag because digests are immutable.
195+
The digest is specified in the chart URI:
196+
197+
```
198+
$ helm install myrelease oci://localhost:5000/helm-charts/mychart@sha256:52ccaee6d4dd272e54bfccda77738b42e1edf0e4a20c27e23f0b6c15d01aef79
199+
NAME: myrelease
200+
LAST DEPLOYED: Wed Oct 27 15:11:40 2021
201+
NAMESPACE: default
202+
STATUS: deployed
203+
REVISION: 1
204+
NOTES:
205+
...
206+
```
207+
192208
## Specifying dependencies
193209

194210
Dependencies of a chart can be pulled from a registry using the `dependency update` subcommand.
@@ -257,4 +273,3 @@ The following example contains a
257273
Migrating from classic [chart repositories](/topics/chart_repository.md)
258274
(index.yaml-based repos) is as simple using `helm pull`, then using `helm push` to upload the resulting `.tgz` files to a registry.
259275

260-

versioned_docs/version-3/topics/registries.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,22 @@ NOTES:
185185
...
186186
```
187187

188+
## Installing charts with digest
189+
190+
Installing a chart with a digest is more secure than a tag because digests are immutable.
191+
The digest is specified in the chart URI:
192+
193+
```
194+
$ helm install myrelease oci://localhost:5000/helm-charts/mychart@sha256:52ccaee6d4dd272e54bfccda77738b42e1edf0e4a20c27e23f0b6c15d01aef79
195+
NAME: myrelease
196+
LAST DEPLOYED: Wed Oct 27 15:11:40 2021
197+
NAMESPACE: default
198+
STATUS: deployed
199+
REVISION: 1
200+
NOTES:
201+
...
202+
```
203+
188204
## Specifying dependencies
189205

190206
Dependencies of a chart can be pulled from a registry using the `dependency update` subcommand.

0 commit comments

Comments
 (0)