Skip to content

Commit 430f507

Browse files
authored
Merge pull request #813 from souleb/clarify-accpeted-secret-types
[helm-oci] Add docker-registry secrets to OCI doc
2 parents 9df0102 + 6a8369f commit 430f507

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/spec/v1beta2/helmrepositories.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ metadata:
368368
namespace: default
369369
spec:
370370
interval: 5m0s
371-
url: oci://ghcr.io/stefanprodan/charts
371+
url: oci://ghcr.io/my-user/my-private-repo
372372
type: "oci"
373373
secretRef:
374374
name: oci-creds
@@ -383,6 +383,17 @@ stringData:
383383
password: 123456
384384
```
385385

386+
For OCI Helm repositories, Kubernetes secrets of type [kubernetes.io/dockerconfigjson](https://kubernetes.io/docs/concepts/configuration/secret/#secret-types) are also supported.
387+
It is possible to create one such secret with `kubectl create secret docker-registry`
388+
or using the Flux CLI:
389+
390+
```yaml
391+
flux create secret oci ghcr-auth \
392+
--url=ghcr.io \
393+
--username=flux \
394+
--password=${GITHUB_PAT}
395+
```
396+
386397
#### TLS authentication
387398

388399
**Note:** TLS authentication is not yet supported by OCI Helm repositories.

0 commit comments

Comments
 (0)