-
Notifications
You must be signed in to change notification settings - Fork 172
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
feat: support heterogeneous pods by managing pods directly #6776
Conversation
// Defines the name of the instance. | ||
// Only applied when Replicas is 1. | ||
// +optional | ||
Name *string `json:"name,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.
why not using instanceName
, Name
gave me the illusion of being a template name
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.
This name should be unique, right?
// group the pod templates by template.Name if set or by template.GenerateName | ||
replicaTemplateGroups := make(map[string][]*podTemplateSpecExt) | ||
for _, template := range podTemplates { | ||
name := template.Name |
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.
template.name must be unique. otherwise will be override
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.
duplicate template.name is an invalid request and will be refused by the rsm2 controller.
} | ||
} | ||
if isCreated(pod) && !isTerminating(pod) { | ||
switch revision, ok := rsm.Status.UpdateRevisions[pod.Name]; { |
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.
If the replicas of RSM are large, will it cause the struct to swell?
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.
will add instance template compression API in next PR.
close #5799
pod name
,pod name prefix
,annotation
,label
,node name
,node selector
,toleration
,image
,resources
,volume
,volume mount
andvolume claim template
)todo:
annotation
,label
,tolerations
,image
,activeDeadlineSeconds
andresources
)