-
Notifications
You must be signed in to change notification settings - Fork 141
Add SessionAffinity and SessionAffinityConfig fields to ServiceOptions #571
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
f0b677b
f0319dc
17ae494
2ced036
3d14bca
ef96586
9ce1072
911d8df
2eec5a4
256f2c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -164,6 +164,14 @@ type ServiceOptions struct { | |||||
| // Labels to be added for the Service. | ||||||
| // +optional | ||||||
| Labels map[string]string `json:"labels,omitempty"` | ||||||
|
|
||||||
| // Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None | ||||||
| // +optional | ||||||
| SessionAffinity string `json:"sessionAffinity,omitempty"` | ||||||
|
|
||||||
| // sessionAffinityConfig contains the configurations of session affinity. | ||||||
| // +optional | ||||||
| SessionAffinityConfig corev1.SessionAffinityConfig `json:"sessionAffinityConfig,omitempty"` | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Making this field a pointer, makes it easier for us to know whether the user provided one or not!
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense |
||||||
| } | ||||||
|
|
||||||
| // IngressOptions defines custom options for ingresses | ||||||
|
|
||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.