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

Template annotations in all major harbor components #2100

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ The following table lists the configurable parameters of the Harbor chart and th
| `nginx.podAnnotations` | Annotations to add to the nginx pod | `{}` |
| `nginx.priorityClassName` | The priority class to run the pod as | |
| **Portal** | | |
| `portal.annotations` | Annotations to add to the portal Deployment | `{}` |
| `portal.image.repository` | Repository for portal image | `goharbor/harbor-portal` |
| `portal.image.tag` | Tag for portal image | `dev` |
| `portal.replicas` | The replica count | `1` |
Expand All @@ -218,6 +219,7 @@ The following table lists the configurable parameters of the Harbor chart and th
| `portal.priorityClassName` | The priority class to run the pod as | |
| `portal.initContainers` | Init containers to be run before the controller's container starts. | `[]` |
| **Core** | | |
| `core.annotations` | Annotations to add to the core Deployment | `{}` |
| `core.image.repository` | Repository for Harbor core image | `goharbor/harbor-core` |
| `core.image.tag` | Tag for Harbor core image | `dev` |
| `core.replicas` | The replica count | `1` |
Expand All @@ -244,6 +246,7 @@ The following table lists the configurable parameters of the Harbor chart and th
| `core.gdpr.auditLogsCompliant` | Enable GDPR compliant for audit logs by changing username to its CRC32 value if that user was deleted from the system | `false` |
| `core.initContainers` | Init containers to be run before the controller's container starts. | `[]` |
| **Jobservice** | | |
| `jobservice.annotations` | Annotations to add to the jobservice Deployment | `{}` |
| `jobservice.image.repository` | Repository for jobservice image | `goharbor/harbor-jobservice` |
| `jobservice.image.tag` | Tag for jobservice image | `dev` |
| `jobservice.replicas` | The replica count | `1` |
Expand All @@ -266,6 +269,7 @@ The following table lists the configurable parameters of the Harbor chart and th
| `jobservice.secret` | Secret is used when job service communicates with other components. If a secret key is not specified, Helm will generate one. Must be a string of 16 chars. | |
| `jobservice.initContainers` | Init containers to be run before the controller's container starts. | `[]` |
| **Registry** | | |
| `registry.annotations` | Annotations to add to the registry Deployment | `{}` |
| `registry.registry.image.repository` | Repository for registry image | `goharbor/registry-photon` |
| `registry.registry.image.tag` | Tag for registry image | `dev` |
| `registry.registry.resources` | The [resources] to allocate for container | undefined |
Expand Down
4 changes: 4 additions & 0 deletions templates/core/core-dpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ kind: Deployment
metadata:
name: {{ template "harbor.core" . }}
namespace: {{ .Release.Namespace | quote }}
{{- with .Values.core.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{ include "harbor.labels" . | indent 4 }}
component: core
Expand Down
4 changes: 4 additions & 0 deletions templates/exporter/exporter-dpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ kind: Deployment
metadata:
name: {{ template "harbor.exporter" . }}
namespace: {{ .Release.Namespace | quote }}
{{- with .Values.exporter.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{ include "harbor.labels" . | indent 4 }}
component: exporter
Expand Down
4 changes: 4 additions & 0 deletions templates/jobservice/jobservice-dpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ kind: Deployment
metadata:
name: "{{ template "harbor.jobservice" . }}"
namespace: {{ .Release.Namespace | quote }}
{{- with .Values.jobservice.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{ include "harbor.labels" . | indent 4 }}
component: jobservice
Expand Down
4 changes: 4 additions & 0 deletions templates/portal/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ kind: Deployment
metadata:
name: "{{ template "harbor.portal" . }}"
namespace: {{ .Release.Namespace | quote }}
{{- with .Values.portal.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{ include "harbor.labels" . | indent 4 }}
component: portal
Expand Down
4 changes: 4 additions & 0 deletions templates/registry/registry-dpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ kind: Deployment
metadata:
name: "{{ template "harbor.registry" . }}"
namespace: {{ .Release.Namespace | quote }}
{{- with .Values.registry.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{ include "harbor.labels" . | indent 4 }}
component: registry
Expand Down
9 changes: 9 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ portal:
serviceAccountName: ""
# mount the service account token
automountServiceAccountToken: false
annotations: {}
replicas: 1
revisionHistoryLimit: 10
# resources:
Expand Down Expand Up @@ -559,6 +560,11 @@ core:
serviceAccountName: ""
# mount the service account token
automountServiceAccountToken: false
# Annotations to add to the harbor-core deployment's. Optional.
#
# If you are using reloader use the following annotation with your HABROR_SECRET_NAME
annotations: {}
# secret.reloader.stakater.com/reload: "<HABROR_SECRET_NAME>"
replicas: 1
revisionHistoryLimit: 10
## Startup probe values
Expand Down Expand Up @@ -648,6 +654,7 @@ jobservice:
serviceAccountName: ""
# mount the service account token
automountServiceAccountToken: false
annotations: {}
replicas: 1
revisionHistoryLimit: 10
# resources:
Expand Down Expand Up @@ -725,6 +732,7 @@ registry:
serviceAccountName: ""
# mount the service account token
automountServiceAccountToken: false
annotations: {}
replicas: 1
revisionHistoryLimit: 10
nodeSelector: {}
Expand Down Expand Up @@ -1035,6 +1043,7 @@ exporter:
serviceAccountName: ""
# mount the service account token
automountServiceAccountToken: false
annotations: {}
replicas: 1
revisionHistoryLimit: 10
# resources:
Expand Down