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 license app to cloud. #4196

Merged
merged 1 commit into from
Oct 30, 2023
Merged

feat: add license app to cloud. #4196

merged 1 commit into from
Oct 30, 2023

Conversation

lingdie
Copy link
Collaborator

@lingdie lingdie commented Oct 30, 2023

🤖 Generated by Copilot at b7f96c3

Summary

🗄️🛠️🚀

This pull request updates the deployment scripts and manifests of the sealos-cloud-license-frontend to enable the cloud licensing feature for sealos. It also fixes some typos, removes unused variables and files, and optimizes the resource usage of the MongoDB database.

Sing, O Muse, of the valiant deeds of sealos-cloud-license-frontend
The swift and shining image that runs on the cluster nodes
How it reduced the disk space of the MongoDB statefulset
And fixed the errors in its Kubefile and env.yaml.tmpl

Walkthrough

  • Pull and save the latest image of the sealos-cloud-license-frontend from the GitHub Container Registry (link, link)
  • Run the sealos-cloud-license-frontend image on the cluster with the environment variables for the cloud domain, cloud port, certificate secret name, and license purchase domain (link)
  • Reduce the storage request of the MongoDB statefulset from 30Gi to 10Gi (link)
  • Reorder the sealos run commands in the init.sh script to authorize the cluster before running the frontend services (link)
  • Modify the Kubefile of the sealos-cloud-license-frontend to add the cloudPort variable and correct the licensePurchaseDomain variable (link)
  • Change the namespace of the App custom resource of the sealos-cloud-license-frontend from app-system to ns-admin (link)
  • Remove the empty line from the appcr.yaml.tmpl of the sealos-cloud-license-frontend (link)
  • Correct the spelling of the licensePurchaseDomain variable in the deploy.yaml.tmpl of the sealos-cloud-license-frontend (link)
  • Remove the PASSWORD_SALT environment variable and the password_salt string data from the frontend configuration, as they are no longer used (link, link)
  • Add the license header and the CORS annotations to the ingress.yaml.tmpl of the sealos-cloud-license-frontend, and include the cloudPort variable in the domain names (link, link)
  • Delete the deploy/cloud/manifests/admin-user.yaml file, as it is no longer needed (link)

@sealos-ci-robot
Copy link
Member

sealos-ci-robot commented Oct 30, 2023

🤖 Generated by lychee action

Summary

Status Count
🔍 Total 957
✅ Successful 376
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 580
❓ Unknown 0
🚫 Errors 0

Full action output

Full Github Actions output

@sweep-ai
Copy link

sweep-ai bot commented Oct 30, 2023

Apply Sweep Rules to your PR?

  • Apply: Leftover TODOs in the code should be handled.
  • Apply: All new business logic should have corresponding unit tests in the tests/ directory.
  • Apply: Any clearly inefficient or repeated code should be optimized or refactored.

@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!.

@lingdie lingdie merged commit 5cee7fd into labring:main Oct 30, 2023
48 checks passed
@lingdie lingdie deleted the lic-app branch October 30, 2023 03:54
lingdie added a commit to lingdie/sealos that referenced this pull request Nov 3, 2023
* add license app to cloud. (labring#4196)

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

* feature(main): skip sealos.run rule (labring#4198)

* Update README (labring#4197)

Signed-off-by: Carson Yang <[email protected]>

* add cronjob app to cloud. (labring#4201)

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

* fix run init job. (labring#4202)

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

* feat service license (labring#4195)

* feat: license service

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

* done

* tempalte

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

* done

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

* done

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

* docker build

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

* done

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

* license yaml

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

* image

* fix type bg

* env

* add oss

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

* done

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

cluster done

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

done

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

cluster done

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

done cluster

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

done

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

* fix build

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

* fix oss && only zh

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

* feat checkout wechat

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

* fix ci

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

---------

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

* Docs: update "What is Sealos?" (labring#4200)

Signed-off-by: Carson Yang <[email protected]>

* refactor(main): unmount override container (labring#4161)

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

* feat: Create a demo plugin Monitor (labring#4184)

* feat: lens demo of web version

* chore: add & remove some packages

* fix: connect to desktop bug and change icon

* init: plugin Monitor init

* style: restore frontend/pnpm-workspace.yaml & pnpm-lock.yaml and create new ones in plugins/monitor

* restore: frontend/Makefile

* restore: frontend/pnpm-workspace.yaml

* restore

* feat:frontend license app (labring#4203)

* feat:frontend license app

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

* fix

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

* fix

* fix detail

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

---------

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

* Docs: update introduction (labring#4207)

Signed-off-by: Carson Yang <[email protected]>

* fix license db uri (labring#4211)

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

* update price (labring#4212)

* docs: Automated Changelog Update for v4.3.7 (labring#4210)

* 🤖 add release changelog using robot.

Signed-off-by: sealos-release-robot <[email protected]>

* Update CHANGELOG.md

---------

Signed-off-by: sealos-release-robot <[email protected]>
Co-authored-by: cuisongliu <[email protected]>

* 🤖 add release changelog using rebot. (labring#4213)

* add alt names. (labring#4214)

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

* Update the workflow to automatically update the website image after the image is built (labring#4209)

Signed-off-by: Carson Yang <[email protected]>

* fix(costcenter): fix unit & invoice amount (labring#4194)

* feat:docs add private cloud page (labring#4215)

* fix scripts (labring#4217)

* Fix database provider i18n. (labring#4216)

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

* fix user avator && url (labring#4218)

* fix user avator && url

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

* modify purchase page

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

* fix height

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

* fix docs

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

* fix params

* copy code

* license time

---------

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

* fix oss file name && docs footer (labring#4220)

* feat(frontend/desktop):support modify team limit (labring#4221)

* add acme resolver monitoring (labring#4223)

* feat:docs language-differentiated domain names (labring#4226)

* feat:standard cluster purchase process (labring#4225)

* feat:standard cluster purchase process

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

* fix cronjob

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

---------

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

* add cloud release ci.

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

---------

Signed-off-by: yy <[email protected]>
Signed-off-by: Carson Yang <[email protected]>
Signed-off-by: jingyang <[email protected]>
Signed-off-by: cuisongliu <[email protected]>
Signed-off-by: sealos-release-robot <[email protected]>
Signed-off-by: zzjin <[email protected]>
Co-authored-by: cuisongliu <[email protected]>
Co-authored-by: Carson Yang <[email protected]>
Co-authored-by: zhujingyang <[email protected]>
Co-authored-by: Wishrem <[email protected]>
Co-authored-by: Jiahui <[email protected]>
Co-authored-by: sealos-release-robot <[email protected]>
Co-authored-by: xudaotutou <[email protected]>
Co-authored-by: zzjin <[email protected]>
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