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

proposal:Single cluster deployment application #654

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

yeyeye2333
Copy link
Contributor

@yeyeye2333 yeyeye2333 commented Jul 24, 2024

What type of PR is this?
/kind feature

What this PR does / why we need it:
Modify the application API to allow setting the application's destination to a cluster, reducing the operational steps required for Kurator in a single-cluster environment and increasing Kurator's flexibility.

Which issue(s) this PR fixes:
a part of #653

Does this PR introduce a user-facing change?:

Can set the application's destination to a cluster.

@kurator-bot
Copy link
Collaborator

Welcome @yeyeye2333! It looks like this is your first PR to kurator-dev/kurator 🎉

Copy link

netlify bot commented Jul 24, 2024

Deploy Preview for kurator-dev ready!

Name Link
🔨 Latest commit b095fb6
🔍 Latest deploy log https://app.netlify.com/sites/kurator-dev/deploys/66b4feb17467dd00083d0a62
😎 Deploy Preview https://deploy-preview-654--kurator-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

```go
// ApplicationDestination defines the configuration to dispatch an artifact to a fleet or specific clusters.
// Fleet and cluster are mutually exclusive.
type ApplicationDestination struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

change fleet-manager API or cluster-operator API ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The application is currently under fleet-manager, and I want to put it under cluster-operator

Copy link
Contributor

Choose a reason for hiding this comment

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

application as a feature that depends on fleet, why put it in cluster-operator?
Even if you don't rely on fleet in a single cluster, fleet is still needed in a multi-cluster environment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deployment of application in single cluster without Fleet, does it mean that Fleet Manager does not need to be installed? So I need to register the application in cluster-operator. Will registering the application in cluster-operator affect fleet's use of the application?

Copy link
Contributor

Choose a reason for hiding this comment

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

No.
Deployment of application in single cluster without Fleet, means not need to create fleet.
Rather than do not install fleet manager.

@LiZhenCheng9527
Copy link
Contributor

/lgtm

@LiZhenCheng9527
Copy link
Contributor

@hzxuzhonghu This PR is Ready to Merge

Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

/lgtm

@kurator-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

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

@kurator-bot kurator-bot merged commit 993ede0 into kurator-dev:main Aug 26, 2024
20 checks passed
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.

4 participants