You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spec/v1beta2/helmrepositories.md
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -368,7 +368,7 @@ metadata:
368
368
namespace: default
369
369
spec:
370
370
interval: 5m0s
371
-
url: oci://ghcr.io/stefanprodan/charts
371
+
url: oci://ghcr.io/my-user/my-private-repo
372
372
type: "oci"
373
373
secretRef:
374
374
name: oci-creds
@@ -383,6 +383,17 @@ stringData:
383
383
password: 123456
384
384
```
385
385
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
+
386
397
#### TLS authentication
387
398
388
399
**Note:** TLS authentication is not yet supported by OCI Helm repositories.
0 commit comments