Skip to content

Commit

Permalink
feat: add basic auth configuration for dfdaemon (#330)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Oct 18, 2024
1 parent 240d603 commit 4872c78
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
12 changes: 6 additions & 6 deletions charts/dragonfly/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: dragonfly
description: Dragonfly is an intelligent P2P based image and file distribution system
icon: https://raw.githubusercontent.com/dragonflyoss/Dragonfly2/main/docs/images/logo/dragonfly.svg
type: application
version: 1.2.18
appVersion: 2.1.60
version: 1.2.19
appVersion: 2.1.61
keywords:
- dragonfly
- d7y
Expand All @@ -27,8 +27,8 @@ sources:

annotations:
artifacthub.io/changes: |
- Rename `certs` to `cert` in client configuration.
- Update tag of the client image to v2.1.112.
- Add basic auth configuration for dfdaemon.
- Update tag of the image to v2.1.61.
artifacthub.io/links: |
- name: Chart Source
Expand All @@ -39,9 +39,9 @@ annotations:
url: https://github.com/dragonflyoss/client
artifacthub.io/images: |
- name: manager
image: dragonflyoss/manager:v2.1.60
image: dragonflyoss/manager:v2.1.61
- name: scheduler
image: dragonflyoss/scheduler:v2.1.60
image: dragonflyoss/scheduler:v2.1.61
- name: client
image: dragonflyoss/client:v0.1.112
- name: seed-client
Expand Down
4 changes: 2 additions & 2 deletions charts/dragonfly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ helm delete dragonfly --namespace dragonfly-system
| manager.image.pullSecrets | list | `[]` (defaults to global.imagePullSecrets). | Image pull secrets. |
| manager.image.registry | string | `"docker.io"` | Image registry. |
| manager.image.repository | string | `"dragonflyoss/manager"` | Image repository. |
| manager.image.tag | string | `"v2.1.60"` | Image tag. |
| manager.image.tag | string | `"v2.1.61"` | Image tag. |
| manager.ingress.annotations | object | `{}` | Ingress annotations. |
| manager.ingress.className | string | `""` | Ingress class name. Requirement: kubernetes >=1.18. |
| manager.ingress.enable | bool | `false` | Enable ingress. |
Expand Down Expand Up @@ -394,7 +394,7 @@ helm delete dragonfly --namespace dragonfly-system
| scheduler.image.pullSecrets | list | `[]` (defaults to global.imagePullSecrets). | Image pull secrets. |
| scheduler.image.registry | string | `"docker.io"` | Image registry. |
| scheduler.image.repository | string | `"dragonflyoss/scheduler"` | Image repository. |
| scheduler.image.tag | string | `"v2.1.60"` | Image tag. |
| scheduler.image.tag | string | `"v2.1.61"` | Image tag. |
| scheduler.initContainer.image.digest | string | `""` | Image digest. |
| scheduler.initContainer.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
| scheduler.initContainer.image.registry | string | `"docker.io"` | Image registry. |
Expand Down
24 changes: 22 additions & 2 deletions charts/dragonfly/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ manager:
# -- Image repository.
repository: dragonflyoss/manager
# -- Image tag.
tag: v2.1.60
tag: v2.1.61
# -- Image digest.
digest: ""
# -- Image pull policy.
Expand Down Expand Up @@ -333,7 +333,7 @@ scheduler:
# -- Image repository.
repository: dragonflyoss/scheduler
# -- Image tag.
tag: v2.1.60
tag: v2.1.61
# -- Image digest.
digest: ""
# -- Image pull policy.
Expand Down Expand Up @@ -940,6 +940,16 @@ seedClient:
# # the proxy can intercept the request by the server cert.
# caKey: ""
#
# # basic_auth is the basic auth configuration for HTTP proxy in dfdaemon. If basic_auth is not
# # empty, the proxy will use the basic auth to authenticate the client by Authorization
# # header. The value of the Authorization header is "Basic base64(username:password)", refer
# # to https://en.wikipedia.org/wiki/Basic_access_authentication.
# basicAuth:
# # username is the username for basic auth.
# username: "admin"
# # password is the password for basic auth.
# password: "dragonfly"
#
# -- rules is the list of rules for the proxy server.
# regex is the regex of the request url.
# useTLS indicates whether use tls for the proxy backend.
Expand Down Expand Up @@ -1339,6 +1349,16 @@ client:
# # the proxy can intercept the request by the server cert.
# caKey: ""
#
# # basic_auth is the basic auth configuration for HTTP proxy in dfdaemon. If basic_auth is not
# # empty, the proxy will use the basic auth to authenticate the client by Authorization
# # header. The value of the Authorization header is "Basic base64(username:password)", refer
# # to https://en.wikipedia.org/wiki/Basic_access_authentication.
# basicAuth:
# # username is the username for basic auth.
# username: "admin"
# # password is the password for basic auth.
# password: "dragonfly"
#
# -- rules is the list of rules for the proxy server.
# regex is the regex of the request url.
# useTLS indicates whether use tls for the proxy backend.
Expand Down

0 comments on commit 4872c78

Please sign in to comment.