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

feat(upgrade_to_v3): add migration for repository key for kube-prometheus-stack #394

Merged
merged 3 commits into from
Jan 11, 2023

Conversation

sumo-drosiek
Copy link
Contributor

@sumo-drosiek sumo-drosiek requested a review from a team as a code owner November 28, 2022 14:04
@sumo-drosiek sumo-drosiek force-pushed the drosiek-kube-prometheus-stack-repository branch from 17779c7 to 2e79c3b Compare November 28, 2022 14:09
}

func Migrate(yamlV2 string) (yamlV3 string, err error) {
valuesV2, err := parseValues(yamlV2)
Copy link
Contributor

Choose a reason for hiding this comment

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

valuesV2 should be inputValues

return "", fmt.Errorf("error parsing input yaml: %v", err)
}

valuesV3 := migrate(&valuesV2)
Copy link
Contributor

Choose a reason for hiding this comment

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

valuesV3 should be outputValues

@@ -1,60 +0,0 @@
package kubestatemetricscollectors
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you removing this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

typo 😬

Copy link
Contributor

@andrzej-stencel andrzej-stencel left a comment

Choose a reason for hiding this comment

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

You should not need to change other migrations, kube-state-metrics-collectors in this case.

@sumo-drosiek sumo-drosiek force-pushed the drosiek-kube-prometheus-stack-repository branch 2 times, most recently from a05cb1b to dc78392 Compare November 29, 2022 10:25
…heus-stack

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
@sumo-drosiek sumo-drosiek enabled auto-merge (squash) January 11, 2023 15:31
@sumo-drosiek sumo-drosiek merged commit 49b315a into main Jan 11, 2023
@sumo-drosiek sumo-drosiek deleted the drosiek-kube-prometheus-stack-repository branch January 11, 2023 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants