Skip to content

Commit

Permalink
fix(pg) remove pg default resource define (#545)
Browse files Browse the repository at this point in the history
remove pg default resource define

fix #539

Signed-off-by: zhuhuijun <zhuhuijunzhj@gmail.com>

Co-authored-by: Steven Zou <szou@vmware.com>
  • Loading branch information
Ghostbaby and steven-zou committed Apr 12, 2021
1 parent e89ced9 commit 187c0de
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/cluster/controllers/database/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,6 @@ func (p *PostgreSQLController) GetPostgreResource(harborcluster *goharborv1.Harb
resources := api.Resources{}

if harborcluster.Spec.InClusterDatabase.PostgresSQLSpec == nil {
resources.ResourceRequests = api.ResourceDescription{
CPU: "1",
Memory: "1Gi",
}
resources.ResourceRequests = api.ResourceDescription{
CPU: "2",
Memory: "2Gi",
}

return resources
}

Expand Down

0 comments on commit 187c0de

Please sign in to comment.