Skip to content

Commit

Permalink
feat(docker-registry-ui): add extraEnv option for registry (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgrath207 authored Oct 25, 2022
1 parent 24d6a9a commit 225424d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/docker-registry-ui/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: docker-registry-ui
version: 0.4.0
version: 0.4.1
appVersion: "2.3.0"
kubeVersion: ">=1.19.0-0"
description: The simplest and most complete UI for your private registry
Expand Down
1 change: 1 addition & 0 deletions charts/docker-registry-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ helm upgrade --install docker-registry-ui joxit/docker-registry-ui
| `registry.resources` | `{}` | The resource settings for registry server pod. |
| `registry.nodeSelector` | `{}` | Optional YAML string to specify a nodeSelector config. |
| `registry.tolerations` | `[]` | Optional YAML string to specify tolerations. |
| `registry.extraEnv` | `[]` | Extra Environmental Variables for Registry. |
| `registry.affinity` | `{}` | This value defines the [affinity](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) for server pods. |
| `registry.annotations` | `{}` | Annotations to apply to the registry server deployment. |
| `registry.additionalSpec` | `{}` | Optional YAML string that will be appended to the deployment spec. |
Expand Down
4 changes: 4 additions & 0 deletions charts/docker-registry-ui/templates/registry-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
env:
- name: REGISTRY_HTTP_ADDR
value: {{ printf "%s:%d" "0.0.0.0" (.Values.registry.service.targetPort | int) }}
{{- range .Values.registry.extraEnv }}
- name: {{ .name }}
value: {{ .value }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.registry.service.targetPort }}
Expand Down
2 changes: 2 additions & 0 deletions charts/docker-registry-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ registry:
annotations: {}
# Optional YAML string that will be appended to the deployment spec.
additionalSpec: {}
# Extra Environmental Variables for Registry
extraEnv: []

service:
# Type of service: `LoadBalancer`, `ClusterIP` or `NodePort`. If using `NodePort` service
Expand Down

0 comments on commit 225424d

Please sign in to comment.