Merge pull request #813 from souleb/clarify-accpeted-secret-types

[helm-oci] Add docker-registry secrets to OCI doc
This commit is contained in:
Stefan Prodan 2022-08-26 19:36:52 +03:00 committed by GitHub
commit 430f5071b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -368,7 +368,7 @@ metadata:
namespace: default
spec:
interval: 5m0s
url: oci://ghcr.io/stefanprodan/charts
url: oci://ghcr.io/my-user/my-private-repo
type: "oci"
secretRef:
name: oci-creds
@ -383,6 +383,17 @@ stringData:
password: 123456
```
For OCI Helm repositories, Kubernetes secrets of type [kubernetes.io/dockerconfigjson](https://kubernetes.io/docs/concepts/configuration/secret/#secret-types) are also supported.
It is possible to create one such secret with `kubectl create secret docker-registry`
or using the Flux CLI:
```yaml
flux create secret oci ghcr-auth \
--url=ghcr.io \
--username=flux \
--password=${GITHUB_PAT}
```
#### TLS authentication
**Note:** TLS authentication is not yet supported by OCI Helm repositories.