07070100000000000081a400000000000000000000000167b365af00000248000000000000000000000000000000000000001b00000000patches/1-Remove-README.sh    #!/usr/bin/env bash
#
# @file 1-Remove-README.md
# @brief Remove the README.md file
# @description Remove the README.md file from the Helm chart.
#   Users are expected to use Application Collection Reference Guides.
#
# @noargs
#
# @env PACKAGE_PATH string Path to the package in the repository.

# Strict mode
set -euo pipefail

# Debug mode
# set -x

GIT_ROOT_PATH="$(git rev-parse --show-toplevel)"
source "$GIT_ROOT_PATH/scripts/functions.sh"

check_required_environment_variables PACKAGE_PATH

README_FILE="$GIT_ROOT_PATH/packages/$PACKAGE_PATH/README.md"
rm -rf "$README_FILE"
07070100000001000081a400000000000000000000000167b365af00000229000000000000000000000000000000000000002a00000000patches/2-Standardize-global-values.patch diff --git a/packages/harbor/2.11/values.yaml b/packages/harbor/2.11/values.yaml
index 529ec92..ea973f2 100644
--- a/packages/harbor/2.11/values.yaml
+++ b/packages/harbor/2.11/values.yaml
@@ -1,3 +1,9 @@
+global:
+  # -- Global override for container image registry
+  imageRegistry: ""
+  # -- Global override for container image registry pull secrets
+  imagePullSecrets: []
+
 expose:
   # Set how to expose the service. Set the type as "ingress", "clusterIP", "nodePort" or "loadBalancer"
   # and fill the information in the corresponding section
   07070100000002000081a400000000000000000000000167b365af00002ce6000000000000000000000000000000000000002d00000000patches/3-Standardize-imagePullSecrets.patch  diff --git a/packages/harbor/2.11/templates/core/core-dpl.yaml b/packages/harbor/2.11/templates/core/core-dpl.yaml
index 2ee8fd5..bbb9d15 100644
--- a/packages/harbor/2.11/templates/core/core-dpl.yaml
+++ b/packages/harbor/2.11/templates/core/core-dpl.yaml
@@ -41,9 +41,17 @@ spec:
 {{- if .Values.core.serviceAccountName }}
       serviceAccountName: {{ .Values.core.serviceAccountName }}
 {{- end -}}
-      {{- with .Values.imagePullSecrets }}
+      {{- with (coalesce .Values.global.imagePullSecrets .Values.imagePullSecrets) }}
       imagePullSecrets:
-        {{- toYaml . | nindent 8 }}
+        {{- $imagePullSecrets := list }}
+        {{- range . }}
+            {{- if kindIs "string" . }}
+                {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }}
+            {{- else }}
+                {{- $imagePullSecrets = append $imagePullSecrets . }}
+            {{- end }}
+        {{- end }}
+        {{- toYaml $imagePullSecrets | nindent 8 }}
       {{- end }}
       automountServiceAccountToken: {{ .Values.core.automountServiceAccountToken | default false }}
       terminationGracePeriodSeconds: 120
diff --git a/packages/harbor/2.11/templates/core/core-pre-upgrade-job.yaml b/packages/harbor/2.11/templates/core/core-pre-upgrade-job.yaml
index ce0b131..4e7eefb 100644
--- a/packages/harbor/2.11/templates/core/core-pre-upgrade-job.yaml
+++ b/packages/harbor/2.11/templates/core/core-pre-upgrade-job.yaml
@@ -25,9 +25,17 @@ spec:
 {{- if .Values.core.serviceAccountName }}
       serviceAccountName: {{ .Values.core.serviceAccountName }}
 {{- end -}}
-      {{- with .Values.imagePullSecrets }}
+      {{- with (coalesce .Values.global.imagePullSecrets .Values.imagePullSecrets) }}
       imagePullSecrets:
-        {{- toYaml . | nindent 8 }}
+        {{- $imagePullSecrets := list }}
+        {{- range . }}
+            {{- if kindIs "string" . }}
+                {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }}
+            {{- else }}
+                {{- $imagePullSecrets = append $imagePullSecrets . }}
+            {{- end }}
+        {{- end }}
+        {{- toYaml $imagePullSecrets | nindent 8 }}
       {{- end }}
       terminationGracePeriodSeconds: 120
       containers:
diff --git a/packages/harbor/2.11/templates/database/database-ss.yaml b/packages/harbor/2.11/templates/database/database-ss.yaml
index 71c5eb1..ebc8cb6 100644
--- a/packages/harbor/2.11/templates/database/database-ss.yaml
+++ b/packages/harbor/2.11/templates/database/database-ss.yaml
@@ -36,9 +36,17 @@ spec:
 {{- if .Values.database.internal.serviceAccountName }}
       serviceAccountName: {{ .Values.database.internal.serviceAccountName }}
 {{- end -}}
-      {{- with .Values.imagePullSecrets }}
+      {{- with (coalesce .Values.global.imagePullSecrets .Values.imagePullSecrets) }}
       imagePullSecrets:
-        {{- toYaml . | nindent 8 }}
+        {{- $imagePullSecrets := list }}
+        {{- range . }}
+            {{- if kindIs "string" . }}
+                {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }}
+            {{- else }}
+                {{- $imagePullSecrets = append $imagePullSecrets . }}
+            {{- end }}
+        {{- end }}
+        {{- toYaml $imagePullSecrets | nindent 8 }}
       {{- end }}
       automountServiceAccountToken: {{ .Values.database.internal.automountServiceAccountToken | default false }}
       terminationGracePeriodSeconds: 120
diff --git a/packages/harbor/2.11/templates/exporter/exporter-dpl.yaml b/packages/harbor/2.11/templates/exporter/exporter-dpl.yaml
index 01e9258..2846850 100644
--- a/packages/harbor/2.11/templates/exporter/exporter-dpl.yaml
+++ b/packages/harbor/2.11/templates/exporter/exporter-dpl.yaml
@@ -41,9 +41,17 @@ spec:
 {{- if .Values.exporter.serviceAccountName }}
       serviceAccountName: {{ .Values.exporter.serviceAccountName }}
 {{- end -}}
-      {{- with .Values.imagePullSecrets }}
+      {{- with (coalesce .Values.global.imagePullSecrets .Values.imagePullSecrets) }}
       imagePullSecrets:
-        {{- toYaml . | nindent 8 }}
+        {{- $imagePullSecrets := list }}
+        {{- range . }}
+            {{- if kindIs "string" . }}
+                {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }}
+            {{- else }}
+                {{- $imagePullSecrets = append $imagePullSecrets . }}
+            {{- end }}
+        {{- end }}
+        {{- toYaml $imagePullSecrets | nindent 8 }}
       {{- end }}
       automountServiceAccountToken: {{ .Values.exporter.automountServiceAccountToken | default false }}
 {{- with .Values.exporter.topologySpreadConstraints }}
diff --git a/packages/harbor/2.11/templates/jobservice/jobservice-dpl.yaml b/packages/harbor/2.11/templates/jobservice/jobservice-dpl.yaml
index 1bb6690..843d960 100644
--- a/packages/harbor/2.11/templates/jobservice/jobservice-dpl.yaml
+++ b/packages/harbor/2.11/templates/jobservice/jobservice-dpl.yaml
@@ -47,9 +47,17 @@ spec:
 {{- if .Values.jobservice.serviceAccountName }}
       serviceAccountName: {{ .Values.jobservice.serviceAccountName }}
 {{- end -}}
-      {{- with .Values.imagePullSecrets }}
+      {{- with (coalesce .Values.global.imagePullSecrets .Values.imagePullSecrets) }}
       imagePullSecrets:
-        {{- toYaml . | nindent 8 }}
+        {{- $imagePullSecrets := list }}
+        {{- range . }}
+            {{- if kindIs "string" . }}
+                {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }}
+            {{- else }}
+                {{- $imagePullSecrets = append $imagePullSecrets . }}
+            {{- end }}
+        {{- end }}
+        {{- toYaml $imagePullSecrets | nindent 8 }}
       {{- end }}
       automountServiceAccountToken: {{ .Values.jobservice.automountServiceAccountToken | default false }}
       terminationGracePeriodSeconds: 120
diff --git a/packages/harbor/2.11/templates/nginx/deployment.yaml b/packages/harbor/2.11/templates/nginx/deployment.yaml
index 3abc941..716b765 100644
--- a/packages/harbor/2.11/templates/nginx/deployment.yaml
+++ b/packages/harbor/2.11/templates/nginx/deployment.yaml
@@ -42,9 +42,17 @@ spec:
       securityContext:
         runAsUser: 10000
         fsGroup: 10000
-      {{- with .Values.imagePullSecrets }}
+      {{- with (coalesce .Values.global.imagePullSecrets .Values.imagePullSecrets) }}
       imagePullSecrets:
-        {{- toYaml . | nindent 8 }}
+        {{- $imagePullSecrets := list }}
+        {{- range . }}
+            {{- if kindIs "string" . }}
+                {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }}
+            {{- else }}
+                {{- $imagePullSecrets = append $imagePullSecrets . }}
+            {{- end }}
+        {{- end }}
+        {{- toYaml $imagePullSecrets | nindent 8 }}
       {{- end }}
       automountServiceAccountToken: {{ .Values.nginx.automountServiceAccountToken | default false }}
 {{- with .Values.nginx.topologySpreadConstraints}}
diff --git a/packages/harbor/2.11/templates/portal/deployment.yaml b/packages/harbor/2.11/templates/portal/deployment.yaml
index 4dea944..3d638e0 100644
--- a/packages/harbor/2.11/templates/portal/deployment.yaml
+++ b/packages/harbor/2.11/templates/portal/deployment.yaml
@@ -36,9 +36,17 @@ spec:
       securityContext:
         runAsUser: 10000
         fsGroup: 10000
-      {{- with .Values.imagePullSecrets }}
+      {{- with (coalesce .Values.global.imagePullSecrets .Values.imagePullSecrets) }}
       imagePullSecrets:
-        {{- toYaml . | nindent 8 }}
+        {{- $imagePullSecrets := list }}
+        {{- range . }}
+            {{- if kindIs "string" . }}
+                {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }}
+            {{- else }}
+                {{- $imagePullSecrets = append $imagePullSecrets . }}
+            {{- end }}
+        {{- end }}
+        {{- toYaml $imagePullSecrets | nindent 8 }}
       {{- end }}
 {{- if .Values.portal.serviceAccountName }}
       serviceAccountName: {{ .Values.portal.serviceAccountName }}
diff --git a/packages/harbor/2.11/templates/redis/statefulset.yaml b/packages/harbor/2.11/templates/redis/statefulset.yaml
index 1d37fb1..1bf0c4b 100644
--- a/packages/harbor/2.11/templates/redis/statefulset.yaml
+++ b/packages/harbor/2.11/templates/redis/statefulset.yaml
@@ -35,9 +35,17 @@ spec:
 {{- if .Values.redis.internal.serviceAccountName }}
       serviceAccountName: {{ .Values.redis.internal.serviceAccountName }}
 {{- end -}}
-      {{- with .Values.imagePullSecrets }}
+      {{- with (coalesce .Values.global.imagePullSecrets .Values.imagePullSecrets) }}
       imagePullSecrets:
-        {{- toYaml . | nindent 8 }}
+        {{- $imagePullSecrets := list }}
+        {{- range . }}
+            {{- if kindIs "string" . }}
+                {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }}
+            {{- else }}
+                {{- $imagePullSecrets = append $imagePullSecrets . }}
+            {{- end }}
+        {{- end }}
+        {{- toYaml $imagePullSecrets | nindent 8 }}
       {{- end }}
       automountServiceAccountToken: {{ .Values.redis.internal.automountServiceAccountToken | default false }}
       terminationGracePeriodSeconds: 120
diff --git a/packages/harbor/2.11/templates/registry/registry-dpl.yaml b/packages/harbor/2.11/templates/registry/registry-dpl.yaml
index 0965cf2..0b99b4e 100644
--- a/packages/harbor/2.11/templates/registry/registry-dpl.yaml
+++ b/packages/harbor/2.11/templates/registry/registry-dpl.yaml
@@ -50,9 +50,17 @@ spec:
 {{- if .Values.registry.serviceAccountName }}
       serviceAccountName: {{ .Values.registry.serviceAccountName }}
 {{- end -}}
-      {{- with .Values.imagePullSecrets }}
+      {{- with (coalesce .Values.global.imagePullSecrets .Values.imagePullSecrets) }}
       imagePullSecrets:
-        {{- toYaml . | nindent 8 }}
+        {{- $imagePullSecrets := list }}
+        {{- range . }}
+            {{- if kindIs "string" . }}
+                {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }}
+            {{- else }}
+                {{- $imagePullSecrets = append $imagePullSecrets . }}
+            {{- end }}
+        {{- end }}
+        {{- toYaml $imagePullSecrets | nindent 8 }}
       {{- end }}
       automountServiceAccountToken: {{ .Values.registry.automountServiceAccountToken | default false }}
       terminationGracePeriodSeconds: 120
diff --git a/packages/harbor/2.11/templates/trivy/trivy-sts.yaml b/packages/harbor/2.11/templates/trivy/trivy-sts.yaml
index c876ba3..894a39f 100644
--- a/packages/harbor/2.11/templates/trivy/trivy-sts.yaml
+++ b/packages/harbor/2.11/templates/trivy/trivy-sts.yaml
@@ -35,9 +35,17 @@ spec:
 {{ toYaml .Values.trivy.podAnnotations | indent 8 }}
 {{- end }}
     spec:
-{{- with .Values.imagePullSecrets }}
+{{- with (coalesce .Values.global.imagePullSecrets .Values.imagePullSecrets) }}
       imagePullSecrets:
-        {{- toYaml . | nindent 8 }}
+        {{- $imagePullSecrets := list }}
+        {{- range . }}
+            {{- if kindIs "string" . }}
+                {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }}
+            {{- else }}
+                {{- $imagePullSecrets = append $imagePullSecrets . }}
+            {{- end }}
+        {{- end }}
+        {{- toYaml $imagePullSecrets | nindent 8 }}
 {{- end }}
 {{- if .Values.trivy.serviceAccountName }}
       serviceAccountName: {{ .Values.trivy.serviceAccountName }}
  07070100000003000081a400000000000000000000000167b365af0000243f000000000000000000000000000000000000002a00000000patches/4-Standardize-imageRegistry.patch diff --git a/packages/harbor/2.11/templates/core/core-dpl.yaml b/packages/harbor/2.11/templates/core/core-dpl.yaml
index 2ee8fd5..2f08f8d 100644
--- a/packages/harbor/2.11/templates/core/core-dpl.yaml
+++ b/packages/harbor/2.11/templates/core/core-dpl.yaml
@@ -63,7 +63,7 @@ spec:
       {{- end }}
       containers:
       - name: core
-        image: {{ .Values.core.image.repository }}:{{ .Values.core.image.tag }}
+        image: {{ with (coalesce .Values.global.imageRegistry .Values.core.image.registry) }}{{ . }}/{{ end }}{{ .Values.core.image.repository }}:{{ .Values.core.image.tag }}
         imagePullPolicy: {{ .Values.imagePullPolicy }}
         {{- if .Values.core.startupProbe.enabled }}
         startupProbe:
diff --git a/packages/harbor/2.11/templates/core/core-pre-upgrade-job.yaml b/packages/harbor/2.11/templates/core/core-pre-upgrade-job.yaml
index ce0b131..3ca4e59 100644
--- a/packages/harbor/2.11/templates/core/core-pre-upgrade-job.yaml
+++ b/packages/harbor/2.11/templates/core/core-pre-upgrade-job.yaml
@@ -32,7 +32,7 @@ spec:
       terminationGracePeriodSeconds: 120
       containers:
       - name: core-job
-        image: {{ .Values.core.image.repository }}:{{ .Values.core.image.tag }}
+        image: {{ with (coalesce .Values.global.imageRegistry .Values.core.image.registry) }}{{ . }}/{{ end }}{{ .Values.core.image.repository }}:{{ .Values.core.image.tag }}
         imagePullPolicy: {{ .Values.imagePullPolicy }}
         command: ["/harbor/harbor_core", "-mode=migrate"]
         envFrom:
diff --git a/packages/harbor/2.11/templates/database/database-ss.yaml b/packages/harbor/2.11/templates/database/database-ss.yaml
index 71c5eb1..42392bc 100644
--- a/packages/harbor/2.11/templates/database/database-ss.yaml
+++ b/packages/harbor/2.11/templates/database/database-ss.yaml
@@ -48,7 +48,7 @@ spec:
       # use this init container to correct the permission
       # as "fsGroup" applied before the init container running, the container has enough permission to execute the command
       - name: "data-permissions-ensurer"
-        image: {{ .Values.database.internal.image.repository }}:{{ .Values.database.internal.image.tag }}
+        image: {{ with (coalesce .Values.global.imageRegistry .Values.database.internal.image.registry) }}{{ . }}/{{ end }}{{ .Values.database.internal.image.repository }}:{{ .Values.database.internal.image.tag }}
         imagePullPolicy: {{ .Values.imagePullPolicy }}
         {{- if not (empty .Values.containerSecurityContext) }}
         securityContext: {{ .Values.containerSecurityContext | toYaml | nindent 10 }}
@@ -68,7 +68,7 @@ spec:
       {{- end }}
       containers:
       - name: database
-        image: {{ .Values.database.internal.image.repository }}:{{ .Values.database.internal.image.tag }}
+        image: {{ with (coalesce .Values.global.imageRegistry .Values.database.internal.image.registry) }}{{ . }}/{{ end }}{{ .Values.database.internal.image.repository }}:{{ .Values.database.internal.image.tag }}
         imagePullPolicy: {{ .Values.imagePullPolicy }}
         {{- if not (empty .Values.containerSecurityContext) }}
         securityContext: {{ .Values.containerSecurityContext | toYaml | nindent 10 }}
diff --git a/packages/harbor/2.11/templates/exporter/exporter-dpl.yaml b/packages/harbor/2.11/templates/exporter/exporter-dpl.yaml
index 01e9258..bcb76ae 100644
--- a/packages/harbor/2.11/templates/exporter/exporter-dpl.yaml
+++ b/packages/harbor/2.11/templates/exporter/exporter-dpl.yaml
@@ -58,7 +58,7 @@ spec:
 {{- end }}
       containers:
       - name: exporter
-        image: {{ .Values.exporter.image.repository }}:{{ .Values.exporter.image.tag }}
+        image: {{ with (coalesce .Values.global.imageRegistry .Values.exporter.image.registry) }}{{ . }}/{{ end }}{{ .Values.exporter.image.repository }}:{{ .Values.exporter.image.tag }}
         imagePullPolicy: {{ .Values.imagePullPolicy }}
         livenessProbe:
           httpGet:
diff --git a/packages/harbor/2.11/templates/jobservice/jobservice-dpl.yaml b/packages/harbor/2.11/templates/jobservice/jobservice-dpl.yaml
index 1bb6690..fe49f34 100644
--- a/packages/harbor/2.11/templates/jobservice/jobservice-dpl.yaml
+++ b/packages/harbor/2.11/templates/jobservice/jobservice-dpl.yaml
@@ -69,7 +69,7 @@ spec:
       {{- end }}
       containers:
       - name: jobservice
-        image: {{ .Values.jobservice.image.repository }}:{{ .Values.jobservice.image.tag }}
+        image: {{ with (coalesce .Values.global.imageRegistry .Values.jobservice.image.registry) }}{{ . }}/{{ end }}{{ .Values.jobservice.image.repository }}:{{ .Values.jobservice.image.tag }}
         imagePullPolicy: {{ .Values.imagePullPolicy }}
         livenessProbe:
           httpGet:
diff --git a/packages/harbor/2.11/templates/nginx/deployment.yaml b/packages/harbor/2.11/templates/nginx/deployment.yaml
index 3abc941..a303948 100644
--- a/packages/harbor/2.11/templates/nginx/deployment.yaml
+++ b/packages/harbor/2.11/templates/nginx/deployment.yaml
@@ -59,7 +59,7 @@ spec:
 {{- end }}
       containers:
       - name: nginx
-        image: "{{ .Values.nginx.image.repository }}:{{ .Values.nginx.image.tag }}"
+        image: "{{ with (coalesce .Values.global.imageRegistry .Values.nginx.image.registry) }}{{ . }}/{{ end }}{{ .Values.nginx.image.repository }}:{{ .Values.nginx.image.tag }}"
         imagePullPolicy: "{{ .Values.imagePullPolicy }}"
         {{- $_ := set . "scheme" "HTTP" -}}
         {{- $_ := set . "port" "8080" -}}
diff --git a/packages/harbor/2.11/templates/portal/deployment.yaml b/packages/harbor/2.11/templates/portal/deployment.yaml
index 4dea944..5797920 100644
--- a/packages/harbor/2.11/templates/portal/deployment.yaml
+++ b/packages/harbor/2.11/templates/portal/deployment.yaml
@@ -60,7 +60,7 @@ spec:
       {{- end }}
       containers:
       - name: portal
-        image: {{ .Values.portal.image.repository }}:{{ .Values.portal.image.tag }}
+        image: {{ with (coalesce .Values.global.imageRegistry .Values.portal.image.registry) }}{{ . }}/{{ end }}{{ .Values.portal.image.repository }}:{{ .Values.portal.image.tag }}
         imagePullPolicy: {{ .Values.imagePullPolicy }}
 {{- if .Values.portal.resources }}
         resources:
diff --git a/packages/harbor/2.11/templates/redis/statefulset.yaml b/packages/harbor/2.11/templates/redis/statefulset.yaml
index 1d37fb1..4eb8cc2 100644
--- a/packages/harbor/2.11/templates/redis/statefulset.yaml
+++ b/packages/harbor/2.11/templates/redis/statefulset.yaml
@@ -47,7 +47,7 @@ spec:
       {{- end }}
       containers:
       - name: redis
-        image: {{ .Values.redis.internal.image.repository }}:{{ .Values.redis.internal.image.tag }}
+        image: {{ with (coalesce .Values.global.imageRegistry .Values.redis.internal.image.registry) }}{{ . }}/{{ end }}{{ .Values.redis.internal.image.repository }}:{{ .Values.redis.internal.image.tag }}
         imagePullPolicy: {{ .Values.imagePullPolicy }}
         {{- if not (empty .Values.containerSecurityContext) }}
         securityContext: {{ .Values.containerSecurityContext | toYaml | nindent 10 }}
diff --git a/packages/harbor/2.11/templates/registry/registry-dpl.yaml b/packages/harbor/2.11/templates/registry/registry-dpl.yaml
index 0965cf2..881bb92 100644
--- a/packages/harbor/2.11/templates/registry/registry-dpl.yaml
+++ b/packages/harbor/2.11/templates/registry/registry-dpl.yaml
@@ -72,7 +72,7 @@ spec:
       {{- end }}
       containers:
       - name: registry
-        image: {{ .Values.registry.registry.image.repository }}:{{ .Values.registry.registry.image.tag }}
+        image: {{ with (coalesce .Values.global.imageRegistry .Values.registry.registry.image.registry) }}{{ . }}/{{ end }}{{ .Values.registry.registry.image.repository }}:{{ .Values.registry.registry.image.tag }}
         imagePullPolicy: {{ .Values.imagePullPolicy }}
         livenessProbe:
           httpGet:
@@ -211,7 +211,7 @@ spec:
 {{ include "harbor.caBundleVolumeMount" . | indent 8 }}
         {{- end }}
       - name: registryctl
-        image: {{ .Values.registry.controller.image.repository }}:{{ .Values.registry.controller.image.tag }}
+        image: {{ with (coalesce .Values.global.imageRegistry .Values.registry.controller.image.registry) }}{{ . }}/{{ end }}{{ .Values.registry.controller.image.repository }}:{{ .Values.registry.controller.image.tag }}
         imagePullPolicy: {{ .Values.imagePullPolicy }}
         livenessProbe:
           httpGet:
diff --git a/packages/harbor/2.11/templates/trivy/trivy-sts.yaml b/packages/harbor/2.11/templates/trivy/trivy-sts.yaml
index c876ba3..63242bf 100644
--- a/packages/harbor/2.11/templates/trivy/trivy-sts.yaml
+++ b/packages/harbor/2.11/templates/trivy/trivy-sts.yaml
@@ -62,7 +62,7 @@ spec:
       {{- end }}
       containers:
         - name: trivy
-          image: {{ .Values.trivy.image.repository }}:{{ .Values.trivy.image.tag }}
+          image: {{ with (coalesce .Values.global.imageRegistry .Values.trivy.image.registry) }}{{ . }}/{{ end }}{{ .Values.trivy.image.repository }}:{{ .Values.trivy.image.tag }}
           imagePullPolicy: {{ .Values.imagePullPolicy }}
           {{- if not (empty .Values.containerSecurityContext) }}
           securityContext: {{ .Values.containerSecurityContext | toYaml | nindent 12 }}
 07070100000004000081a400000000000000000000000167b365af000003a7000000000000000000000000000000000000003200000000patches/5-Fix-harbor-db-healthcheck-command.patch diff --git a/packages/harbor/2.11/templates/database/database-ss.yaml b/packages/harbor/2.11/templates/database/database-ss.yaml
index 558693d..a759d75 100644
--- a/packages/harbor/2.11/templates/database/database-ss.yaml
+++ b/packages/harbor/2.11/templates/database/database-ss.yaml
@@ -84,14 +84,14 @@ spec:
         livenessProbe:
           exec:
             command:
-            - /docker-healthcheck.sh
+            - /usr/share/harbor-db/docker-healthcheck.sh
           initialDelaySeconds: 300
           periodSeconds: 10
           timeoutSeconds: {{ .Values.database.internal.livenessProbe.timeoutSeconds }}
         readinessProbe:
           exec:
             command:
-            - /docker-healthcheck.sh
+            - /usr/share/harbor-db/docker-healthcheck.sh
           initialDelaySeconds: 1
           periodSeconds: 10
           timeoutSeconds: {{ .Values.database.internal.readinessProbe.timeoutSeconds }}
 07070100000005000081a400000000000000000000000167b365af000006a9000000000000000000000000000000000000001700000000patches/Chart.yaml.tpl    #!BuildTag: harbor:${VERSION}-%RELEASE%
#!BuildTag: harbor:${VERSION}
annotations:
  helm.sh/images: |
    - image: ${CONTAINER_REGISTRY}/containers/nginx:1.26
      name: nginx
    - image: ${CONTAINER_REGISTRY}/containers/harbor-core:${APP_VERSION}
      name: harbor-core
    - image: ${CONTAINER_REGISTRY}/containers/harbor-db:${APP_VERSION}
      name: harbor-db
    - image: ${CONTAINER_REGISTRY}/containers/harbor-exporter:${APP_VERSION}
      name: harbor-exporter
    - image: ${CONTAINER_REGISTRY}/containers/harbor-jobservice:${APP_VERSION}
      name: harbor-jobservice
    - image: ${CONTAINER_REGISTRY}/containers/harbor-portal:${APP_VERSION}
      name: harbor-portal
    - image: ${CONTAINER_REGISTRY}/containers/harbor-registry:${APP_VERSION}
      name: harbor-registry
    - image: ${CONTAINER_REGISTRY}/containers/harbor-registryctl:${APP_VERSION}
      name: harbor-registryctl
    - image: ${CONTAINER_REGISTRY}/containers/harbor-trivy-adapter:${APP_VERSION}
      name: harbor-trivy-adapter
    - image: ${CONTAINER_REGISTRY}/containers/redis:7.2
      name: redis
apiVersion: v2
appVersion: ${APP_VERSION}
description: Harbor is an open source trusted cloud native registry project that stores, signs, and scans content. Harbor extends the open source Docker Distribution by adding the functionalities usually required by users such as security, identity and management. Harbor supports replication of images between registries, and also offers advanced security features such as user management, access control and activity auditing.
home: https://apps.rancher.io/applications/harbor
maintainers:
  - name: SUSE LLC
    url: https://www.suse.com/
name: harbor
version: ${VERSION}
   07070100000006000081a400000000000000000000000167b365af000004dc000000000000000000000000000000000000001d00000000patches/values-suse.yaml.tpl  nginx:
  image:
    registry: ${CONTAINER_REGISTRY}
    repository: containers/nginx
    tag: 1.26

portal:
  image:
    registry: ${CONTAINER_REGISTRY}
    repository: containers/harbor-portal
    tag: ${APP_VERSION}

core:
  image:
    registry: ${CONTAINER_REGISTRY}
    repository: containers/harbor-core
    tag: ${APP_VERSION}

jobservice:
  image:
    registry: ${CONTAINER_REGISTRY}
    repository: containers/harbor-jobservice
    tag: ${APP_VERSION}

registry:
  registry:
    image:
      registry: ${CONTAINER_REGISTRY}
      repository: containers/harbor-registry
      tag: ${APP_VERSION}
  controller:
    image:
      registry: ${CONTAINER_REGISTRY}
      repository: containers/harbor-registryctl
      tag: ${APP_VERSION}

trivy:
  image:
    registry: ${CONTAINER_REGISTRY}
    repository: containers/harbor-trivy-adapter
    tag: ${APP_VERSION}

database:
  internal:
    image:
      registry: ${CONTAINER_REGISTRY}
      repository: containers/harbor-db
      tag: ${APP_VERSION}

redis:
  internal:
    image:
      registry: ${CONTAINER_REGISTRY}
      repository: containers/redis
      tag: 7.2

exporter:
  image:
    registry: ${CONTAINER_REGISTRY}
    repository: containers/harbor-exporter
    tag: ${APP_VERSION}
07070100000007000041ed00000000000000000000000167b365af00000000000000000000000000000000000000000000000800000000patches   07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!    