-
Notifications
You must be signed in to change notification settings - Fork 72
[WiP] [Feature] Multi-arch image discovery #928
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
Conversation
|
|
||
| // ArchitectureTypesInUse returns ArchitectureType list which is really used by the members | ||
| func (s DeploymentSpec) ArchitectureTypesInUse(membersStatuses DeploymentStatusMemberElements) (ArangoDeploymentArchitecture, error) { | ||
| var exists = struct{}{} |
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 bool?
| } | ||
|
|
||
| if len(result) == 0 { | ||
| result = append(result, s.Architecture.GetDefault()) |
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.
Default should be always on list
| // OldImage holds old image defails | ||
| OldImage *ImageInfo `json:"old-image,omitempty"` | ||
| // Architecture defines Image architecture type | ||
| Architecture ArangoDeploymentArchitectureType `json:"architecture,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.
Use pointer
| m.PodSpecVersion = template.PodSpecChecksum | ||
| m.ArangoVersion = m.Image.ArangoDBVersion | ||
| m.ImageID = m.Image.ImageID | ||
| m.ImageID = m.Image.ArchImageID[m.Architecture] |
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.
Panic expected
| info.ArchImageID[arch] = imgID | ||
|
|
||
| // set ImageID for backward compatibility | ||
| if imgID, ok := info.ArchImageID[ArangoDeploymentArchitectureDefault]; ok { |
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.
Default from spec, not from here
|
Closing - here is the newer version of this PR: #930 |
No description provided.