-
Notifications
You must be signed in to change notification settings - Fork 0
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
issue-467, use the latest clusters version for packaged provisioning was implemented #468
Conversation
6753995
to
12bb4e5
Compare
controllers/clusters/helpers.go
Outdated
func getSortedAppVersions(versions []*models.AppVersions, appType string) []*version.Version { | ||
for _, apps := range versions { | ||
if apps.Application == appType { | ||
versions := make([]*version.Version, len(apps.Versions)) |
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.
Let's rename the versions
array to newVersions
or something similar
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.
Fixed
controllers/clusters/helpers.go
Outdated
for _, apps := range versions { | ||
if apps.Application == appType { | ||
versions := make([]*version.Version, len(apps.Versions)) | ||
for i, raw := range apps.Versions { |
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.
Let's rename raw
to version
, wdyt?
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.
Fixed
@@ -48,7 +48,7 @@ type OpenSearchSpec struct { | |||
NotificationsPlugin bool `json:"notificationsPlugin,omitempty"` | |||
AnomalyDetectionPlugin bool `json:"anomalyDetectionPlugin,omitempty"` | |||
LoadBalancer bool `json:"loadBalancer,omitempty"` | |||
ClusterManagerNodes []*ClusterManagerNodes `json:"clusterManagerNodes"` | |||
ClusterManagerNodes []*ClusterManagerNodes `json:"clusterManagerNodes,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.
this field is required
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.
@RostislavPorohnya said that we need it for restore operations
Closes #467