Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): additionalConfig #1613

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -234,6 +234,10 @@ The following table lists the configurable parameters of the Harbor chart and th
| `core.priorityClassName` | The priority class to run the pod as | |
| `core.artifactPullAsyncFlushDuration` | The time duration for async update artifact pull_time and repository pull_count | |
| `core.gdpr.deleteUser` | Enable GDPR compliant user delete | `false` |
| `core.additionalConfig` | Additional configuration file content | `""` |



| **Jobservice** | | |
| `jobservice.image.repository` | Repository for jobservice image | `goharbor/harbor-jobservice` |
| `jobservice.image.tag` | Tag for jobservice image | `dev` |
Expand Down
7 changes: 6 additions & 1 deletion templates/core/core-cm.yaml
Expand Up @@ -12,6 +12,11 @@ data:

[prod]
httpport = {{ ternary "8443" "8080" .Values.internalTLS.enabled }}


{{- with .Values.core.additionalConfig }}
{{ . }}
{{- end }}
PORT: "{{ ternary "8443" "8080" .Values.internalTLS.enabled }}"
DATABASE_TYPE: "postgresql"
POSTGRESQL_HOST: "{{ template "harbor.database.host" . }}"
Expand Down Expand Up @@ -84,4 +89,4 @@ data:

{{- if .Values.core.quotaUpdateProvider }}
QUOTA_UPDATE_PROVIDER: "{{ .Values.core.quotaUpdateProvider }}"
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions values.yaml
Expand Up @@ -509,6 +509,10 @@ core:
artifactPullAsyncFlushDuration:
gdpr:
deleteUser: false
# Additional configurations (known as harbor.yml). Refer to https://goharbor.io/docs/2.9.0/install-config/configure-yml-file/
additionalConfig: ""
# additionalConfig: |
# external_url = true

jobservice:
image:
Expand Down