Skip to content

Commit

Permalink
fix(components) Use right replicas fields for deployments
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 30, 2020
1 parent 7dc03cc commit e8197ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/harbor/components/clair/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (c *Clair) GetDeployments(ctx context.Context) []*appsv1.Deployment { // no
"operator": operatorName,
},
},
Replicas: c.harbor.Spec.Components.Core.Replicas,
Replicas: c.harbor.Spec.Components.Clair.Replicas,
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{
Expand Down
2 changes: 1 addition & 1 deletion controllers/harbor/components/jobservice/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (j *JobService) GetDeployments(ctx context.Context) []*appsv1.Deployment {
"operator": operatorName,
},
},
Replicas: j.harbor.Spec.Components.Core.Replicas,
Replicas: j.harbor.Spec.Components.JobService.Replicas,
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{
Expand Down
2 changes: 1 addition & 1 deletion controllers/harbor/components/registry/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (r *Registry) GetDeployments(ctx context.Context) []*appsv1.Deployment { //
"operator": operatorName,
},
},
Replicas: r.harbor.Spec.Components.Core.Replicas,
Replicas: r.harbor.Spec.Components.Registry.Replicas,
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{
Expand Down

0 comments on commit e8197ba

Please sign in to comment.