-
Notifications
You must be signed in to change notification settings - Fork 32
K8SPS-550: apply serviceAccountName
for haproxy pods
#1098
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
Conversation
pkg/haproxy/haproxy_test.go
Outdated
var e string | ||
assert.Equal(t, e, sts.Spec.Template.Spec.ServiceAccountName) |
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.
Here we can do assert.Empty(t, sts.Spec.Template.Spec.ServiceAccountName)
instead.
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.
pkg/mysql/mysql_test.go
Outdated
var e string | ||
assert.Equal(t, e, sts.Spec.Template.Spec.ServiceAccountName) |
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.
Here we can do assert.Empty(t, sts.Spec.Template.Spec.ServiceAccountName)
instead.
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.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Pull Request Overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
commit: 8877131 |
https://perconadev.atlassian.net/browse/K8SPS-550
DESCRIPTION
Problem:
serviceAccountName
is not applied to the HAProxy statefulset.Solution:
This is a common bug where some fields from the PodSpec are not applied to statefulsets. To fix this, the
(s *PodSpec) Core
method was created to return acorev1.PodSpec
with all fields populated.CHECKLIST
Jira
Needs Doc
) and QA (Needs QA
)?Tests
Config/Logging/Testability