Skip to content
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

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

DoodgeMatvey
Copy link
Contributor

Closes #467

@DoodgeMatvey DoodgeMatvey added the enhancement New feature or request label Jul 13, 2023
@DoodgeMatvey DoodgeMatvey self-assigned this Jul 13, 2023
@DoodgeMatvey DoodgeMatvey force-pushed the issue-467 branch 2 times, most recently from 6753995 to 12bb4e5 Compare July 13, 2023 10:57
func getSortedAppVersions(versions []*models.AppVersions, appType string) []*version.Version {
for _, apps := range versions {
if apps.Application == appType {
versions := make([]*version.Version, len(apps.Versions))
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

for _, apps := range versions {
if apps.Application == appType {
versions := make([]*version.Version, len(apps.Versions))
for i, raw := range apps.Versions {
Copy link
Collaborator

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?

Copy link
Contributor Author

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"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this field is required

Copy link
Contributor Author

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

@taaraora taaraora merged commit c061168 into main Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Packaged provisioning is not working, because we hardcoded Cassandra and Kafka versions
4 participants