-
Notifications
You must be signed in to change notification settings - Fork 143
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
Conversation
@@ -1,3 +1,5 @@ | |||
//go:build flaky |
There was a problem hiding this comment.
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>{},
},
There was a problem hiding this comment.
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 ? ^^
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Update RunnerPodSpec to include PriorityClassName, SecurityContext, and Resources
Related to #786