Add hostAlias-Support to the Harbor helm-chart (#4345)

This commit is contained in:
Maximilian Rink
2020-11-13 12:42:21 +01:00
committed by GitHub
parent 51632f4060
commit e11d109dca
14 changed files with 121 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: harbor
version: 8.1.5
version: 8.2.0
appVersion: 2.1.1
description: Harbor is an an open source trusted cloud native registry project that stores, signs, and scans content
keywords:

View File

@@ -232,6 +232,7 @@ The following tables list the configurable parameters of the Harbor chart and th
| `nginx.updateStrategy` | Deployment update strategy | `nil` |
| `nginx.extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `nil` |
| `nginx.extraVolumeMounts` | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes`. | `nil` |
| `nginx.hostAliases` | Specify hostAliases for the Pod to use | `nil` |
| `nginx.sidecars` | Attach additional containers to the pod (evaluated as a template) | `nil` |
| `nginx.initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
| `nginx.podLabels` | Add additional labels to the pod (evaluated as a template) | `nil` |
@@ -266,6 +267,7 @@ The following tables list the configurable parameters of the Harbor chart and th
| `portal.updateStrategy` | Deployment update strategy | `nil` |
| `portal.extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `nil` |
| `portal.extraVolumeMounts` | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes`. | `nil` |
| `portal.hostAliases` | Specify hostAliases for the Pod to use | `nil` |
| `portal.sidecars` | Attach additional containers to the pod (evaluated as a template) | `nil` |
| `portal.initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
| `portal.podLabels` | Add additional labels to the pod (evaluated as a template) | `nil` |
@@ -305,6 +307,7 @@ The following tables list the configurable parameters of the Harbor chart and th
| `core.updateStrategy` | Deployment update strategy | `nil` |
| `core.extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `nil` |
| `core.extraVolumeMounts` | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes`. | `nil` |
| `core.hostAliases` | Specify hostAliases for the Pod to use | `nil` |
| `core.sidecars` | Attach additional containers to the pod (evaluated as a template) | `nil` |
| `core.initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
| `core.podLabels` | Add additional labels to the pod (evaluated as a template) | `nil` |
@@ -343,6 +346,7 @@ The following tables list the configurable parameters of the Harbor chart and th
| `jobservice.updateStrategy` | Deployment update strategy | `nil` |
| `jobservice.extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `nil` |
| `jobservice.extraVolumeMounts` | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes`. | `nil` |
| `jobservice.hostAliases` | Specify hostAliases for the Pod to use | `nil` |
| `jobservice.sidecars` | Attach additional containers to the pod (evaluated as a template) | `nil` |
| `jobservice.initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
| `jobservice.podLabels` | Add additional labels to the pod (evaluated as a template) | `nil` |
@@ -383,6 +387,7 @@ The following tables list the configurable parameters of the Harbor chart and th
| `registry.middleware.cloudFront.privateKeySecret` | CloudFront CDN settings: Secret name with the private key | |
| `registry.secret` | Secret is used to secure the upload state from client and registry storage backend. See: https://github.com/docker/distribution/blob/master/docs/configuration.md#http. If a secret key is not specified, Helm will generate one. Must be a string of 16 chars. | `nil` |
| `registry.extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `nil` |
| `registry.hostAliases` | Specify hostAliases for the Pod to use | `nil` |
| `registry.updateStrategy` | Deployment update strategy | `nil` |
| `registry.sidecars` | Attach additional containers to the pod (evaluated as a template) | `nil` |
| `registry.initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
@@ -461,6 +466,7 @@ The following tables list the configurable parameters of the Harbor chart and th
| `chartmuseum.updateStrategy` | Deployment update strategy | `nil` |
| `chartmuseum.extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `nil` |
| `chartmuseum.extraVolumeMounts` | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes`. | `nil` |
| `chartmuseum.hostAliases` | Specify hostAliases for the Pod to use | `nil` |
| `chartmuseum.sidecars` | Attach additional containers to the pod (evaluated as a template) | `nil` |
| `chartmuseum.initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
| `chartmuseum.podLabels` | Add additional labels to the pod (evaluated as a template) | `nil` |
@@ -494,6 +500,7 @@ The following tables list the configurable parameters of the Harbor chart and th
| `clair.podAnnotations` | Annotations to add to the clair pod | `{}` |
| `clair.podLabels` | Add additional labels to the pod (evaluated as a template) | `nil` |
| `clair.extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `nil` |
| `clair.hostAliases` | Specify hostAliases for the Pod to use | `nil` |
| `clair.sidecars` | Attach additional containers to the pod (evaluated as a template) | `nil` |
| `clair.initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
| `clair.server.resources` | The [resources] to allocate for container | undefined |
@@ -563,6 +570,7 @@ The following tables list the configurable parameters of the Harbor chart and th
| `notary.server.livenessProbe` | Liveness probe configuration for Portal | `Check values.yaml file` |
| `notary.server.readinessProbe` | Readines probe configuration for Portal | `Check values.yaml file` |
| `notary.server.extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `nil` |
| `notary.server.hostAliases` | Specify hostAliases for the Pod to use | `nil` |
| `notary.server.sidecars` | Attach additional containers to the pod (evaluated as a template) | `nil` |
| `notary.server.initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
| `notary.server.updateStrategy` | Deployment update strategy | `nil` |
@@ -584,6 +592,7 @@ The following tables list the configurable parameters of the Harbor chart and th
| `notary.signer.livenessProbe` | Liveness probe configuration for Portal | `Check values.yaml file` |
| `notary.signer.readinessProbe` | Readines probe configuration for Portal | `Check values.yaml file` |
| `notary.signer.extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `nil` |
| `notary.signer.hostAliases` | Specify hostAliases for the Pod to use | `nil` |
| `notary.signer.sidecars` | Attach additional containers to the pod (evaluated as a template) | `nil` |
| `notary.signer.initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
| `notary.signer.updateStrategy` | Deployment update strategy | `nil` |
@@ -628,6 +637,7 @@ The following tables list the configurable parameters of the Harbor chart and th
| `trivy.updateStrategy` | Deployment update strategy | `nil` |
| `trivy.extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `nil` |
| `trivy.extraVolumeMounts` | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes`. | `nil` |
| `trivy.hostAliases` | Specify hostAliases for the Pod to use | `nil` |
| `trivy.sidecars` | Attach additional containers to the pod (evaluated as a template) | `nil` |
| `trivy.initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
| `trivy.podLabels` | Add additional labels to the pod (evaluated as a template) | `nil` |

View File

@@ -56,6 +56,9 @@ spec:
{{- if .Values.chartmuseum.initContainers }}
initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.chartmuseum.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.chartmuseum.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.chartmuseum.hostAliases "context" $) | nindent 8 }}
{{- end }}
containers:
- name: chartmuseum
image: {{ include "harbor.chartMuseumImage" . }}

View File

@@ -54,6 +54,9 @@ spec:
{{- if .Values.clair.initContainers }}
initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.clair.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.clair.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.clair.hostAliases "context" $) | nindent 8 }}
{{- end }}
containers:
- name: clair
image: {{ include "harbor.clairImage" . }}

View File

@@ -57,6 +57,9 @@ spec:
{{- if .Values.core.initContainers }}
initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.core.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.core.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.core.hostAliases "context" $) | nindent 8 }}
{{- end }}
containers:
- name: core
image: {{ include "harbor.coreImage" . }}

View File

@@ -78,6 +78,9 @@ spec:
{{- if .Values.jobservice.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.jobservice.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.jobservice.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.jobservice.hostAliases "context" $) | nindent 8 }}
{{- end }}
containers:
- name: jobservice
image: {{ include "harbor.jobserviceImage" . }}

View File

@@ -58,6 +58,9 @@ spec:
{{- if .Values.nginx.initContainers }}
initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.nginx.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.nginx.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.nginx.hostAliases "context" $) | nindent 8 }}
{{- end }}
containers:
- name: nginx
image: {{ include "harbor.nginxImage" . }}

View File

@@ -52,6 +52,9 @@ spec:
{{- if .Values.notary.server.initContainers }}
initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.notary.server.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.notary.server.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.notary.server.hostAliases "context" $) | nindent 8 }}
{{- end }}
containers:
- name: notary-server
image: {{ include "harbor.notaryServerImage" . | quote }}

View File

@@ -51,6 +51,9 @@ spec:
{{- if .Values.notary.signer.initContainers }}
initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.notary.signer.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.notary.signer.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.notary.signer.hostAliases "context" $) | nindent 8 }}
{{- end }}
containers:
- name: notary-signer
image: {{ include "harbor.notarySignerImage" . }}

View File

@@ -52,6 +52,9 @@ spec:
{{- if .Values.portal.initContainers }}
initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.portal.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.portal.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.portal.hostAliases "context" $) | nindent 8 }}
{{- end }}
containers:
- name: portal
image: {{ include "harbor.portalImage" . }}

View File

@@ -77,6 +77,9 @@ spec:
{{- if .Values.registry.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.registry.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.registry.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.registry.hostAliases "context" $) | nindent 8 }}
{{- end }}
containers:
- name: registry
image: {{ include "harbor.registryImage" . }}

View File

@@ -79,6 +79,9 @@ spec:
{{- if .Values.trivy.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.trivy.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.trivy.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.trivy.hostAliases "context" $) | nindent 8 }}
{{- end }}
containers:
- name: trivy
image: {{ include "harbor.trivyImage" . }}

View File

@@ -694,6 +694,10 @@ nginx:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -827,6 +831,10 @@ portal:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -968,6 +976,10 @@ core:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -1121,6 +1133,10 @@ jobservice:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -1360,6 +1376,10 @@ registry:
##
extraVolumes: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -1514,6 +1534,10 @@ chartmuseum:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -1763,6 +1787,10 @@ clair:
##
extraVolumes: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -1898,6 +1926,10 @@ trivy:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -2001,6 +2033,10 @@ notary:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## lifecycleHooks for the container to automate configuration before or after startup.
##
lifecycleHooks:
@@ -2135,6 +2171,10 @@ notary:
##
extraVolumes: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []

View File

@@ -694,6 +694,10 @@ nginx:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -827,6 +831,10 @@ portal:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -968,6 +976,10 @@ core:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -1121,6 +1133,10 @@ jobservice:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -1360,6 +1376,10 @@ registry:
##
extraVolumes: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -1514,6 +1534,10 @@ chartmuseum:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -1763,6 +1787,10 @@ clair:
##
extraVolumes: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -1898,6 +1926,10 @@ trivy:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []
@@ -2001,6 +2033,10 @@ notary:
##
extraVolumeMounts: []
## HostAliases to add to the deployment
##
hostAliases: []
## lifecycleHooks for the container to automate configuration before or after startup.
##
lifecycleHooks:
@@ -2135,6 +2171,10 @@ notary:
##
extraVolumes: []
## HostAliases to add to the deployment
##
hostAliases: []
## Extra init containers to add to the deployment
##
initContainers: []