Skip to content

[Plugin] Remove plugin name from the arg when calling sdk.NewPlugin#5935

Merged
t-kikuc merged 2 commits into
masterfrom
update-sdk-verson
Jun 11, 2025
Merged

[Plugin] Remove plugin name from the arg when calling sdk.NewPlugin#5935
t-kikuc merged 2 commits into
masterfrom
update-sdk-verson

Conversation

@ffjlabo
Copy link
Copy Markdown
Member

@ffjlabo ffjlabo commented Jun 10, 2025

What this PR does:

as title

Why we need it:

We need to support --name option for each plugin to pipedv1 start them from #5931.

Which issue(s) this PR fixes:

Follow #5931

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):

@ffjlabo ffjlabo changed the title [Plugin] Update SDK verson [Plugin] Remove plugin name from the arg when calling sdk.NewPlugin Jun 10, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 10, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 28.47%. Comparing base (d18cc19) to head (55cbac0).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/app/pipedv1/plugin/example/main.go 0.00% 1 Missing ⚠️
pkg/app/pipedv1/plugin/kubernetes/main.go 0.00% 1 Missing ⚠️
...app/pipedv1/plugin/kubernetes_multicluster/main.go 0.00% 1 Missing ⚠️
pkg/app/pipedv1/plugin/wait/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5935      +/-   ##
==========================================
- Coverage   28.48%   28.47%   -0.02%     
==========================================
  Files         520      520              
  Lines       56416    56416              
==========================================
- Hits        16070    16064       -6     
- Misses      39080    39086       +6     
  Partials     1266     1266              
Flag Coverage Δ
. 23.75% <ø> (-0.02%) ⬇️
.-pkg-app-pipedv1-plugin-example 0.00% <0.00%> (ø)
.-pkg-app-pipedv1-plugin-kubernetes 66.42% <0.00%> (ø)
.-pkg-app-pipedv1-plugin-kubernetes_multicluster 67.51% <0.00%> (ø)
.-pkg-app-pipedv1-plugin-wait 35.51% <0.00%> (ø)
.-pkg-plugin-sdk 49.25% <ø> (ø)
.-tool-actions-gh-release 19.23% <ø> (ø)
.-tool-actions-plan-preview 25.30% <ø> (ø)
.-tool-codegen-protoc-gen-auth 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ffjlabo ffjlabo closed this Jun 10, 2025
@ffjlabo ffjlabo force-pushed the update-sdk-verson branch from e77011a to 073f3aa Compare June 10, 2025 15:58
@ffjlabo ffjlabo reopened this Jun 10, 2025
@ffjlabo ffjlabo marked this pull request as ready for review June 10, 2025 16:09
@ffjlabo ffjlabo requested a review from a team as a code owner June 10, 2025 16:09
t-kikuc
t-kikuc previously approved these changes Jun 11, 2025
Copy link
Copy Markdown
Member

@t-kikuc t-kikuc left a comment

Choose a reason for hiding this comment

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

Thank you! it's so helpful

@t-kikuc t-kikuc enabled auto-merge (squash) June 11, 2025 01:08
Comment thread pkg/app/pipedv1/cmd/piped/piped.go Outdated
return nil, fmt.Errorf("failed to prepare plugin %s config: %w", pCfg.Name, err)
}
args = append(args, "--config", string(b))
args = append(args, "--name", pCfg.Name)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It might be better to git pull origin master??
I guess this diff will be removed.

ffjlabo added 2 commits June 11, 2025 11:05
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
@ffjlabo ffjlabo force-pushed the update-sdk-verson branch from f45557e to 55cbac0 Compare June 11, 2025 02:05
@ffjlabo ffjlabo requested a review from t-kikuc June 11, 2025 02:09
Copy link
Copy Markdown
Member

@t-kikuc t-kikuc left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Copy Markdown
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

LGTM

@t-kikuc t-kikuc merged commit 6c01542 into master Jun 11, 2025
38 of 40 checks passed
@t-kikuc t-kikuc deleted the update-sdk-verson branch June 11, 2025 02:13
@github-actions github-actions Bot mentioned this pull request Jul 14, 2025
@github-actions github-actions Bot mentioned this pull request Aug 15, 2025
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