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

feat : add cluster registration in pull mode to installation workflow #6005

Closed
wants to merge 517 commits into from

Conversation

SkySingh04
Copy link
Contributor

@SkySingh04 SkySingh04 commented Dec 31, 2024

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #5916

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@karmada-bot karmada-bot added do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 31, 2024
XiShanYongYe-Chang and others added 26 commits December 31, 2024 22:58
Signed-off-by: changzhen <[email protected]>
Signed-off-by: Akash <[email protected]>
In this commit, we introduce unit tests for both the `MutatingAdmission`
and `ValidatingAdmission` webhooks specifically for the `FederatedHPA`
resource.

The tests include:

- Validation webhook tests:
  - Verifies that admission is denied with an appropriate error message
    when decoding the request object fails.
  - Ensures admission is denied when the `FederatedHPA` spec contains
    invalid values, such as a `minReplicas` set to zero, and the correct
    error message is returned.
  - Confirms that a valid `FederatedHPA` object is allowed through without
    errors.

- Mutation webhook tests:
  - Verifies that admission is denied when decoding the request object
    fails, returning the appropriate error message.
  - Ensures that the `FederatedHPA` object is correctly mutated when
    provided with default values, including scale policies and CPU
    utilization.
  - Confirms that no patches are applied when the `FederatedHPA` object is
    handled correctly and that admission is allowed for valid
    `FederatedHPA` objects.

Signed-off-by: Mohamed Awnallah <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: RainbowMango <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: Mohamed Awnallah <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: Anuj Agrawal <[email protected]>
Signed-off-by: Akash <[email protected]>
In this commit, we unit test the init scheme functionality of the operator
by checking that both k8s core scheme and operator v1alpha1 scheme are added.

Signed-off-by: Mohamed Awnallah <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: Anuj Agrawal <[email protected]>
Signed-off-by: Akash <[email protected]>
In this commit, we introduce unit tests for mutating and validating webhook
configurations to make sure they are working as expected.

Signed-off-by: Mohamed Awnallah <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: wangxiaofei67 <[email protected]>

fix: add signoff

Signed-off-by: wangxiaofei67 <[email protected]>

fix: optimize prompt messages in the logs
Signed-off-by: Akash <[email protected]>
Signed-off-by: Anuj Agrawal <[email protected]>

Changed the resource to clusterrole

Signed-off-by: Anuj Agrawal <[email protected]>

Added tests for workloadrebalancer controller

Signed-off-by: Anuj Agrawal <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: Mohamed Awnallah <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: zhzhuang-zju <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: chaosi-zju <[email protected]>
Signed-off-by: Akash <[email protected]>
Co-authored-by: yelshall <[email protected]>
Signed-off-by: Julian Lawrence <[email protected]>
Signed-off-by: Akash <[email protected]>
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](sigstore/cosign-installer@v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

add

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

add file change

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix doc

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix comment

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>

fix

Signed-off-by: tiansuo114 <[email protected]>
Signed-off-by: Akash <[email protected]>
mohamedawnallah and others added 18 commits December 31, 2024 22:58
In this commit, we unit test apiclient on creating restconfig.

Signed-off-by: Mohamed Awnallah <[email protected]>
Signed-off-by: Akash <[email protected]>
…eted in the dependencies distribution scenario

Signed-off-by: changzhen <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: LavredisG <[email protected]>
Signed-off-by: Akash <[email protected]>
…ooks[*].clientConfig.service.port is nil

Signed-off-by: changzhen <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: Mohamed Awnallah <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: changzhen <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: Joe Nathan Abellard <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: chaosi-zju <[email protected]>
Signed-off-by: Akash <[email protected]>
Signed-off-by: Anuj Agrawal <[email protected]>

Added tests for pkg/util/helper/work.go

Signed-off-by: Anuj Agrawal <[email protected]>
Signed-off-by: Akash <[email protected]>
@karmada-bot karmada-bot removed the do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. label Dec 31, 2024
@karmada-bot karmada-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 31, 2024
@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign rainbowmango for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. label Dec 31, 2024
@karmada-bot
Copy link
Collaborator

Adding label do-not-merge/contains-merge-commits because PR contains merge commits, which are not allowed in this repository.
Use git rebase to reapply your commits on top of the target branch. Detailed instructions for doing so can be found here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@karmada-bot karmada-bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 31, 2024
@SkySingh04 SkySingh04 closed this Dec 31, 2024
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.38%. Comparing base (ba1e68d) to head (8bc564c).

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

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6005   +/-   ##
=======================================
  Coverage   48.37%   48.38%           
=======================================
  Files         665      665           
  Lines       54795    54795           
=======================================
+ Hits        26507    26510    +3     
+ Misses      26569    26567    -2     
+ Partials     1719     1718    -1     
Flag Coverage Δ
unittests 48.38% <ø> (+<0.01%) ⬆️

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. 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.

Integration karmadactl register to ci for registering PULL mode clusters