-
Notifications
You must be signed in to change notification settings - Fork 64
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 config field for nodePlacement #2530
Conversation
🤖 Created branch: z_pr2530/vthapar/node-placement |
@@ -47,6 +48,10 @@ type ServiceDiscoverySpec struct { | |||
// +listType=set | |||
CustomDomains []string `json:"customDomains,omitempty"` | |||
ImageOverrides map[string]string `json:"imageOverrides,omitempty"` | |||
// +optional | |||
NodeSelector map[string]string `json:"nodeSelector,omitempty"` |
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.
Shouldn’t this be
NodeSelector map[string]string `json:"nodeSelector,omitempty"` | |
NodeSelector v1.NodeSelector `json:"nodeSelector,omitempty"` |
?
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.
I don't think there is a type NodeSelector
. Even PodSpec
uses map[string]string
https://github.com/kubernetes/api/blob/master/core/v1/types.go#L3273
// NodeSelector is a selector which must be true for the pod to fit on a node.
// Selector which must match a node's labels for the pod to be scheduled on that node.
// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
// +optional
// +mapType=atomic
NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,rep,name=nodeSelector"`
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 is a NodeSelector
type, hence my question: https://pkg.go.dev/k8s.io/api/core/v1#NodeSelector. I’ve seen it used in other specs, but it doesn’t really seem to be appropriate for that; let’s follow PodSpec
.
🤖 Closed branches: [z_pr2530/vthapar/node-placement] |
🤖 Created branch: z_pr2530/vthapar/node-placement |
Epic submariner-io/enhancements#149 Refer submariner-io/enhancements#156 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
🤖 Closed branches: [z_pr2530/vthapar/node-placement] |
🤖 Created branch: z_pr2530/vthapar/node-placement |
🤖 Closed branches: [z_pr2530/vthapar/node-placement] |
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Add get, list and watch permissions for AddonDeploymentConfig so submariner addon can track changes to it. Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Add get, list and watch permissions for AddonDeploymentConfig so submariner addon can track changes to it. Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Refer submariner-io/submariner-operator#2530 Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
Epic submariner-io/enhancements#149
Refer submariner-io/enhancements#156