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

Update RunnerPodSpec to include more fields #910

Merged
merged 10 commits into from
Sep 5, 2023

Conversation

luizbafilho
Copy link
Contributor

@luizbafilho luizbafilho commented Aug 29, 2023

Update RunnerPodSpec to include PriorityClassName, SecurityContext, and Resources

Related to #786

@luizbafilho luizbafilho marked this pull request as ready for review September 1, 2023 14:31
@luizbafilho luizbafilho changed the title Update RunnerPodSpec to include PriorityClassName, SecurityContext, a… Update RunnerPodSpec to include more fields Sep 1, 2023
@luizbafilho luizbafilho requested review from chanwit and yitsushi and removed request for chanwit September 5, 2023 14:42
@@ -1,3 +1,5 @@
//go:build flaky
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are you sure 340 is flaky and not related to you changes?

<                         "spec": <map[string]interface {} | len:1>{
<                             "resources": <map[string]interface {} | len:0>{},
<                         },
---
>                         "spec": <map[string]interface {} | len:0>{},

That diff doesn't feel like a flaky test, it feels like it changes the structure itself.

This is part of the runnerPodTemplate:

                    "runnerPodTemplate": <map[string]interface {} | len:2>{
                        "metadata": <map[string]interface {} | len:0>{},
                        "spec": <map[string]interface {} | len:1>{
                            "resources": <map[string]interface {} | len:0>{},
                        },
                    },

compared to:

                    "runnerPodTemplate": <map[string]interface {} | len:2>{
                        "metadata": <map[string]interface {} | len:0>{},
                        "spec": <map[string]interface {} | len:0>{},
                    },

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 it's related to this as it's not a reference (*corev1.ResourceRequirements):

	// Set Resources for the Runner Pod container
	// +optional
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`

@chanwit ? ^^

Copy link
Collaborator

Choose a reason for hiding this comment

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

(originally it was a top level comment on the PR, but I moved it to here, easier to discuss)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I saw that but there are runs where it doesn't break (https://github.com/weaveworks/tf-controller/actions/runs/6050809758/job/16510347856), but let me make it a reference, that's an issue anyway.

Copy link
Collaborator

@yitsushi yitsushi left a comment

Choose a reason for hiding this comment

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

lgtm

@luizbafilho luizbafilho merged commit 8775d86 into main Sep 5, 2023
@bigkevmcd bigkevmcd deleted the 786-add-priority-resources branch September 14, 2023 08:19
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.

2 participants