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

Delete platform-specific specs from configv1 #5300

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

Warashi
Copy link
Contributor

@Warashi Warashi commented Oct 31, 2024

What this PR does:

as title

Why we need it:

We move platform-specific config to plugins, so we don't want these at the configv1 package.
I copied them on #5237, but I realized it was not a good way to copy all of them, so I removed some parts on this PR.

Which issue(s) this PR fixes:

Part of #4980

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
@@ -104,30 +105,10 @@ func (c *Config) init(kind Kind, apiVersion string) error {
c.APIVersion = apiVersion

switch kind {
case KindApplication:
case KindApplication, KindKubernetesApp, KindTerraformApp, KindCloudRunApp, KindLambdaApp, KindECSApp:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To have backward compatibility, we treat them as the same as the KindApplication.

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.16%. Comparing base (ad3c877) to head (58c922b).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5300      +/-   ##
==========================================
+ Coverage   25.14%   25.16%   +0.01%     
==========================================
  Files         449      444       -5     
  Lines       47642    47504     -138     
==========================================
- Hits        11980    11954      -26     
+ Misses      34717    34606     -111     
+ Partials      945      944       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

LGTM 👋

@Warashi Warashi enabled auto-merge (squash) October 31, 2024 02:56
Copy link
Member

@ffjlabo ffjlabo left a comment

Choose a reason for hiding this comment

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

LGTM

@Warashi Warashi merged commit 04eb2fc into master Oct 31, 2024
16 of 18 checks passed
@Warashi Warashi deleted the configv1-delete-platform-specific-codes branch October 31, 2024 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants