diff --git a/deploy/helm-chart/harbor-operator/templates/instance/replication.yaml b/deploy/helm-chart/harbor-operator/templates/instance/replication.yaml index 5863bf8..edc46d0 100644 --- a/deploy/helm-chart/harbor-operator/templates/instance/replication.yaml +++ b/deploy/helm-chart/harbor-operator/templates/instance/replication.yaml @@ -27,12 +27,12 @@ spec: destNamespace: {{ $repl.destNamespace }} {{- end }} - {{- if $repl.srcRegistry }} + {{- if $repl.srcRegistryName }} srcRegistry: name: {{ $instance.name }}-{{ $repl.srcRegistryName }} {{- end }} - {{- if $repl.destRegistry }} + {{- if $repl.srcRegistryName }} destRegistry: name: {{ $instance.name }}-{{ $repl.destRegistryName }} {{- end }}