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

Deploying Openyurt on top of kubernetes & knative #887

Merged
merged 1 commit into from
Dec 29, 2023
Merged

Conversation

jchua99
Copy link
Contributor

@jchua99 jchua99 commented Nov 18, 2023

Summary

Deploying openyurt on top of initial configs of k8s and knative.
To run, go build and ./openyurt_deployer deploy-yurt.

Implementation Notes ⚒️

  • YurtMasterInit() init openyurt on master node
  • masterNode info is extracted and stored into temp folder
  • YurtMasterExpand() expands openyurt to workerNode
  • temp folder is clean for all nodes

External Dependencies 🍀

Breaking API Changes ⚠️

Simply specify none (N/A) if not applicable.

@jchua99 jchua99 force-pushed the openyurt-deploy branch 3 times, most recently from bdc0839 to 5e29798 Compare November 26, 2023 14:00
@jchua99 jchua99 force-pushed the openyurt-deploy branch 5 times, most recently from 999853b to 72eb921 Compare December 4, 2023 07:25
@jchua99 jchua99 force-pushed the openyurt-deploy branch 3 times, most recently from fcee46d to a400526 Compare December 20, 2023 03:58
@lrq619 lrq619 marked this pull request as ready for review December 20, 2023 06:21
@lrq619
Copy link
Collaborator

lrq619 commented Dec 20, 2023

Please add me as the reviewer, also, you only have two added checks here, but it should pass through all tests that was previously there

@lrq619 lrq619 marked this pull request as draft December 20, 2023 06:23
@lrq619 lrq619 self-requested a review December 20, 2023 06:28
@lrq619 lrq619 marked this pull request as ready for review December 20, 2023 06:29
@jchua99 jchua99 force-pushed the openyurt-deploy branch 6 times, most recently from 9a73816 to 425a26e Compare December 21, 2023 06:15
Copy link
Collaborator

@lrq619 lrq619 left a comment

Choose a reason for hiding this comment

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

Looks fine to me now, but make sure to delete the build binary file

scripts/openyurt-deployer/openyurt_deployer Outdated Show resolved Hide resolved
scripts/openyurt-deployer/openyurt_deployer Outdated Show resolved Hide resolved
@lrq619 lrq619 requested a review from ustiugov December 21, 2023 11:30
Copy link
Member

@ustiugov ustiugov left a comment

Choose a reason for hiding this comment

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

  • use Golang 1.19 everywhere. we should update it later to 1.20 but in a different PR
  • add the vHive copyrights to all the source files
  • I suggest making the whole deployer a single Golang module to make our life easier in future. We don't need moule versioning at this fine granularity. vHive can be a good example: it's a single module despite the folder structure. I suggesting having 1 module for vHive and 1 for deployer. No need for other modules, too complicated.
  • remove binaries from the commit history (prune it! not just remove in a new commit)
  • remove the YAML files duplication in golang files (I see 2 cases).

scripts/openyurt-deployer/README.md Outdated Show resolved Hide resolved
scripts/openyurt-deployer/go.work Outdated Show resolved Hide resolved
scripts/openyurt-deployer/node/go.mod Outdated Show resolved Hide resolved
scripts/openyurt-deployer/node/knative.go Outdated Show resolved Hide resolved
scripts/openyurt-deployer/node/node_test.go Outdated Show resolved Hide resolved
scripts/openyurt-deployer/openyurt_deployer Outdated Show resolved Hide resolved
scripts/openyurt-deployer/template/yurtAppSetTemplate.go Outdated Show resolved Hide resolved
scripts/openyurt-deployer/template/yurtTemplate.go Outdated Show resolved Hide resolved
@jchua99 jchua99 force-pushed the openyurt-deploy branch 2 times, most recently from 4c83dbc to 9b9204b Compare December 21, 2023 17:11
unit test with github workflows
change template to yaml

Signed-off-by: Jason Chua <chua0990@e.ntu.edu.sg>
@jchua99 jchua99 merged commit 9101708 into openyurt Dec 29, 2023
41 of 47 checks passed
@jchua99 jchua99 deleted the openyurt-deploy branch December 29, 2023 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants