-
Notifications
You must be signed in to change notification settings - Fork 988
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
Fix pod template node_selectors #42
Conversation
Prior to this fix the provider did not correct set the nodeSelectors attribute of a pod template. This was because it silently failed the type conversion ( map[string]string != map[string]interface{} ).
Great spot, thanks for the fix. This looks good to me from functional perspective. Would you mind attaching an acceptance test covering this particular fix - i.e. something like resource "kubernetes_pod" "test" {
metadata {
name = "%s"
}
spec {
container {
image = "nginx"
name = "containername"
}
node_selector {
"failure-domain.beta.kubernetes.io/region" = "%s"
}
}
} The region can be a variable. We run all acceptance tests nightly on GKE and region is passed as ENV variable, so Let me know if you have any questions regarding the testing suite or if you don't feel confident adding it, I can eventually do it for you - it may just take some extra time. |
Sure thing. I should be able to do that in the next day or so. |
@radeksimko - I added the acc test:
Thanks |
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.
👍 Thanks
Prior to this fix the provider did not correctly set the nodeSelectors
attribute of a pod template.
This was because it silently failed the type conversion:
map[string]string
!=map[string]interface{}