Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pod resources in the instance #61

Merged
merged 2 commits into from
May 27, 2024
Merged

add pod resources in the instance #61

merged 2 commits into from
May 27, 2024

Conversation

xosk31
Copy link
Collaborator

@xosk31 xosk31 commented May 27, 2024

No description provided.

@xosk31 xosk31 requested a review from m-terra May 27, 2024 12:42
@coveralls
Copy link

coveralls commented May 27, 2024

Pull Request Test Coverage Report for Build 9256410379

Details

  • 14 of 16 (87.5%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 65.667%

Changes Missing Coverage Covered Lines Changed/Added Lines %
controllers/instance/statefulset.go 14 16 87.5%
Totals Coverage Status
Change from base Build 9188845474: 0.2%
Covered Lines: 1226
Relevant Lines: 1867

💛 - Coveralls

@@ -266,6 +275,27 @@ func (r *Reconciler) reconcileStatefulSet(ctx context.Context, instance *proxyv1
return nil
}

func getResources(instance *proxyv1alpha1.Instance) corev1.ResourceRequirements {
resources := corev1.ResourceRequirements{}
if instance.Spec.Resources.Requests != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this cannot be nil

@xosk31 xosk31 merged commit 84e0a18 into main May 27, 2024
4 checks passed
@xosk31 xosk31 deleted the add_instance_resources branch May 27, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants