Skip to content

Commit

Permalink
fix(version) notaryserver.go (#657)
Browse files Browse the repository at this point in the history
Signed-off-by: Ziming Zhang <zziming@vmware.com>
  • Loading branch information
bitsf committed May 18, 2021
1 parent 53ffaea commit c59f620
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions controllers/goharbor/harbor/notaryserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ func (r *Reconciler) GetNotaryServerCertificate(ctx context.Context, harbor *goh

return &certv1.Certificate{
ObjectMeta: metav1.ObjectMeta{
Name: r.NormalizeName(ctx, harbor.GetName(), controllers.NotaryServer.String(), "authentication"),
Namespace: harbor.GetNamespace(),
Annotations: version.SetVersion(nil, harbor.Spec.Version),
Name: r.NormalizeName(ctx, harbor.GetName(), controllers.NotaryServer.String(), "authentication"),
Namespace: harbor.GetNamespace(),
},
Spec: certv1.CertificateSpec{
SecretName: secretName,
Expand Down Expand Up @@ -196,9 +195,9 @@ func (r *Reconciler) GetNotaryServer(ctx context.Context, harbor *goharborv1.Har
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: namespace,
Annotations: map[string]string{
Annotations: version.SetVersion(map[string]string{
harbormetav1.NetworkPoliciesAnnotationName: harbormetav1.NetworkPoliciesAnnotationDisabled,
},
}, harbor.Spec.Version),
},
Spec: goharborv1.NotaryServerSpec{
ComponentSpec: harbor.GetComponentSpec(ctx, harbormetav1.NotaryServerComponent),
Expand Down

0 comments on commit c59f620

Please sign in to comment.