Skip to content

Commit

Permalink
fix: req & limit point to same resource (#91)
Browse files Browse the repository at this point in the history
Co-authored-by: lynnleelhl <[email protected]>
  • Loading branch information
lynnleelhl and lynnleelhl authored Dec 6, 2023
1 parent 4902764 commit 4a81fde
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 1 deletion.
Binary file modified pkg/cluster/charts/apecloud-mysql-cluster.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/kafka-cluster.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/llm-cluster.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/mongodb-cluster.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/postgresql-cluster.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/redis-cluster.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/xinference-cluster.tgz
Binary file not shown.
3 changes: 2 additions & 1 deletion pkg/cmd/cluster/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -1110,8 +1110,9 @@ func buildClusterComp(cd *appsv1alpha1.ClusterDefinition,
}
}
compObj.Resources = corev1.ResourceRequirements{
// deepcopy to make requests and limits point to different resources
Requests: resourceList,
Limits: resourceList,
Limits: resourceList.DeepCopy(),
}
storageSize := getVal(&c, keyStorage, sets)
if storageSize != "" {
Expand Down

0 comments on commit 4a81fde

Please sign in to comment.