Adding Stickiness option for Target Groups - #711
Conversation
47dcaa6 to
cbedc5b
Compare
|
All golden files tests would have a CF stack change because of the new parameter. I am not sure if you can do this such that default is nil instead of "false", then you don't need to update tests. |
Signed-off-by: drmudgett <drmudgett@users.noreply.github.com> Signed-off-by: Drew Mudgett <drewmudgett@rocketmortgage.com>
Signed-off-by: Drew Mudgett <drewmudgett@quickenloans.com> Signed-off-by: Drew Mudgett <drewmudgett@rocketmortgage.com>
Signed-off-by: Drew Mudgett <drewmudgett@rocketmortgage.com>
918e812 to
363686d
Compare
I've updated the tests and they're passing locally now, thanks. |
We have to check if we can allow this. The problem that might happen is that cloud load balancers could be forced to be new created. |
Signed-off-by: Drew Mudgett <drewmudgett@rocketmortgage.com>
Ok, I think I've got it working the way you'd like now. |
| }, | ||
| { | ||
| "parameterKey": "Stickiness", | ||
| "parameterValue": "false" |
There was a problem hiding this comment.
I guess these fields should not be there if we have not sticky configuration.
There was a problem hiding this comment.
I've removed the line that the linter was complaining about, but I still see this error locally:
Error: kubernetes/pods.go:103:9: S1009: should omit nil check; len() for []k8s.io/api/core/v1.ContainerStatus is defined as zero (gosimple)
return p.Status.ContainerStatuses != nil &&
But it looks like that error was there before my commits (i locally tested against main).
There was a problem hiding this comment.
that's a new staticcheck version, so would be great if you just fix it :)
https://staticcheck.dev/docs/checks#S1009
There was a problem hiding this comment.
no problem, this is fixed in the latest commit
There was a problem hiding this comment.
but the result params should not change and as far as I read the code.
This should not be there in the PR:
},
{
"parameterKey": "Stickiness",
"parameterValue": "false"
Ah and please add a test that actually tests the feature with "true" and "false" set :)
Signed-off-by: Drew Mudgett <drewmudgett@rocketmortgage.com>
Signed-off-by: Drew Mudgett <drewmudgett@rocketmortgage.com>
|
@drmudgett sorry can I ask you to rebase the PR, please? |
Adds the option to enable Sticky Sessions to the ALB, defaults to false (off).
Closes #267