Skip to content

Commit

Permalink
fix(registry) Set notification url
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Péronnet <pierre.peronnet@corp.ovh.com>
  • Loading branch information
holyhope committed Jan 15, 2020
1 parent b698685 commit 40a5f91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/templates/registry/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ notifications:
- name: harbor
disabled: false
timeout: 3000ms
url: {{ printf "http://%s/service/notifications" env.Getenv "CORE_HOSTNAME" | quote }}
threshold: 5
backoff: 1s
auth:
Expand Down Expand Up @@ -70,7 +71,7 @@ storage:
enabled: false
{{ range file.Walk ( env.Getenv "STORAGE_CONFIG" ) }}
{{- if not (file.IsDir .) }}
{{- filepath.Base . | strings.Indent 1 " " }}:
{{ file.Read . | data.YAML | data.ToYAML | strings.Indent 2 " " }}
{{- filepath.Base . | strings.Indent 1 " " }}:
{{- file.Read . | data.YAML | data.ToYAML | strings.Indent 2 " " }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions controllers/harbor/components/registry/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ func (r *Registry) GetDeployments(ctx context.Context) []*appsv1.Deployment { //
{
Name: "STORAGE_CONFIG",
Value: "/opt/configuration/storage",
}, {
Name: "CORE_HOSTNAME",
Value: r.harbor.NormalizeComponentName(containerregistryv1alpha1.CoreName),
},
cacheEnv,
},
Expand Down

0 comments on commit 40a5f91

Please sign in to comment.