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

config: move provider id enum into config package #766

Closed
wants to merge 1 commit into from

Conversation

AlexanderYastrebov
Copy link
Member

Move enum into config package to avoid import cycle and eliminate duplicate string literals.

Follow up on https://github.com/zalando-incubator/cluster-lifecycle-manager/pull/765/files#r1601499528

Move enum into config package to avoid import cycle and eliminate
duplicate string literals.

Follow up on https://github.com/zalando-incubator/cluster-lifecycle-manager/pull/765/files#r1601499528

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
@gargravarr
Copy link
Contributor

I was tempted to do this in my original PR, but didn't because it seems to me it makes more sense that this ID is in the provisioner package, where we implement provisioning for the supported providers, what do you think?

const (
// ZalandoAWS Provider is the provider ID for Zalando managed AWS clusters.
ZalandoAWSProvider ProviderID = "zalando-aws"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: have a single const block.

@AlexanderYastrebov
Copy link
Member Author

I think its fine both ways so no need to change it right now.

@AlexanderYastrebov AlexanderYastrebov deleted the config/provider-id branch May 16, 2024 09:30
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.

2 participants