-
Notifications
You must be signed in to change notification settings - Fork 205
Simplify config by merge CloudProviderType with ApplicationKind #3402
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
|
Code coverage for golang is
|
|
Nice catch🙌 |
| Type model.CloudProviderType `json:"type"` | ||
| Config json.RawMessage `json:"config"` | ||
| Name string `json:"name"` | ||
| Type string `json:"type"` |
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.
nits, should we do the same thing we did at L338, instead of using type string, should we use type model.ApplicationKind?
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.
I think it will not work since model.ApplicationKind is int32 not a string.
Or we have to add a custom Marshal function.
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.
Yes, I mean to that since currently, we convert it at L360. But you're right, add a custom marshal function is not worth doing here. Thanks for clarification 🙏
|
Nice improvement 🙆♂️ |
What this PR does / why we need it:
This PR deletes CloudProviderType and uses ApplicationKind instead for CloudProvider configuration.
This allows us to remove unneeded syncing between ApplicationKind and CloudProviderType.
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: