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

Fix to validate spec.types of MultiClusterService Webhook #4096

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

lonelyCZ
Copy link
Member

@lonelyCZ lonelyCZ commented Oct 4, 2023

What type of PR is this?
/kind bug

What this PR does / why we need it:
Fix to validate spec.types of MultiClusterService Webhook

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:
/cc @yike21 @XiShanYongYe-Chang

Does this PR introduce a user-facing change?:

`karmada-webhook`: Fixed to validate spec.types of MultiClusterService api.

@karmada-bot karmada-bot added kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 4, 2023
@codecov-commenter
Copy link

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (48b8e9f) 53.50% compared to head (30723ae) 53.51%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4096   +/-   ##
=======================================
  Coverage   53.50%   53.51%           
=======================================
  Files         234      234           
  Lines       23281    23281           
=======================================
+ Hits        12457    12459    +2     
+ Misses      10143    10142    -1     
+ Partials      681      680    -1     
Flag Coverage Δ
unittests 53.51% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
pkg/webhook/multiclusterservice/validating.go 56.96% <100.00%> (ø)

... and 2 files with indirect coverage changes

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

Copy link
Member

@yike21 yike21 left a comment

Choose a reason for hiding this comment

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

This was an oversight on my part earlier, thank you very much!
/lgtm

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 4, 2023
@RainbowMango
Copy link
Member

Seems the CI failed because of can't create new clusters:

------------------------------
• [FAILED] [280.857 seconds]
[karmada-search] karmada search testing reconcile ResourceRegistry when clusters joined, updated when cluster joined [BeforeAll] [member clusters joined] could reconcile ResourceRegistry
  [BeforeAll] /home/runner/work/karmada/karmada/test/e2e/search_test.go:737
  [It] /home/runner/work/karmada/karmada/test/e2e/search_test.go:788

  Timeline >>
  STEP: Creating cluster: member-e2e-9rmq9 @ 10/04/23 07:15:20.585
  [FAILED] in [BeforeAll] - /home/runner/work/karmada/karmada/test/e2e/search_test.go:750 @ 10/04/23 07:20:01.432
  STEP: Removing ResourceRegistry() @ 10/04/23 07:20:01.437
  [FAILED] in [AfterAll] - /home/runner/work/karmada/karmada/test/e2e/framework/resourceregistry.go:27 @ 10/04/23 07:20:01.441
  << Timeline

https://github.com/karmada-io/karmada/actions/runs/6402483929/job/17379406759?pr=4096

Let's give it another try.

@RainbowMango RainbowMango added this to the v1.8 milestone Oct 7, 2023
@XiShanYongYe-Chang
Copy link
Member

Thanks @lonelyCZ, when the ports array is larger than the types array, a panic is triggered.
Can you help add the release note, and maybe we need to cherry-pick it to the previous branch,

@XiShanYongYe-Chang
Copy link
Member

Seems the CI failed because of can't create new clusters:

------------------------------
• [FAILED] [280.857 seconds]
[karmada-search] karmada search testing reconcile ResourceRegistry when clusters joined, updated when cluster joined [BeforeAll] [member clusters joined] could reconcile ResourceRegistry
  [BeforeAll] /home/runner/work/karmada/karmada/test/e2e/search_test.go:737
  [It] /home/runner/work/karmada/karmada/test/e2e/search_test.go:788

  Timeline >>
  STEP: Creating cluster: member-e2e-9rmq9 @ 10/04/23 07:15:20.585
  [FAILED] in [BeforeAll] - /home/runner/work/karmada/karmada/test/e2e/search_test.go:750 @ 10/04/23 07:20:01.432
  STEP: Removing ResourceRegistry() @ 10/04/23 07:20:01.437
  [FAILED] in [AfterAll] - /home/runner/work/karmada/karmada/test/e2e/framework/resourceregistry.go:27 @ 10/04/23 07:20:01.441
  << Timeline

https://github.com/karmada-io/karmada/actions/runs/6402483929/job/17379406759?pr=4096

Let's give it another try.

The space of the CI node is insufficient. A new cluster cannot be created.
Decode the returned error code to obtain the specific error information:

docker: Error response from daemon: failed to copy files: userspace copy failed: write /var/lib/docker/volumes/2327c2e7db1d02182f9548a35cb698441826dee2e599d9ba9079c61a56d7f367/_data/lib/containerd/io.containerd.content.v1.content/blobs/sha256/742c09864161856ed0e0f64bc2bb789be72e4d10db60138442dfff8d0f3e1b9e: no space left on device.
See 'docker run --help'.

@lonelyCZ
Copy link
Member Author

lonelyCZ commented Oct 7, 2023

Can you help add the release note, and maybe we need to cherry-pick it to the previous branch,

Done. We need to cherry-pick it to v1.7. I will do it after this pr is merged.

@XiShanYongYe-Chang
Copy link
Member

Hi @lonelyCZ, we have fixed the CI failed, can you help rebase the master branch?

@karmada-bot karmada-bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 9, 2023
Copy link
Member

@XiShanYongYe-Chang XiShanYongYe-Chang left a comment

Choose a reason for hiding this comment

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

Thanks a lot
/lgtm

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 9, 2023
Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/approve

@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RainbowMango

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 9, 2023
@karmada-bot karmada-bot merged commit ff433ce into karmada-io:master Oct 9, 2023
11 checks passed
@XiShanYongYe-Chang
Copy link
Member

Hi @lonelyCZ, can you help cherry-pick this branch into the previous v1.7 branch?

@lonelyCZ
Copy link
Member Author

Hi @lonelyCZ, can you help cherry-pick this branch into the previous v1.7 branch?

Ok, I will do it ASAP.

karmada-bot added a commit that referenced this pull request Oct 11, 2023
…-upstream-release-1.7

Automated cherry pick of #4096: Fix to validate spec.types of MultiClusterService Webhook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants