-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add SessionAffinity and SessionAffinityConfig fields to ServiceOptions #571
base: main
Are you sure you want to change the base?
Changes from 1 commit
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"` | ||||||
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! 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.
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.
So we can actually put the default, and the enum constraints into the CRD itself using Kubebuilder CRD markers!
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.
Ah, neat code-gen