-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: adapt license for poc #3594
Conversation
π€ Generated by lychee actionSummary
Full action output |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #3594 +/- ##
=======================================
Coverage 67.92% 67.92%
=======================================
Files 8 8
Lines 664 664
=======================================
Hits 451 451
Misses 171 171
Partials 42 42 β View full report in Codecov by Sentry. |
8875f01
to
e8ae68a
Compare
.github/workflows/ci.yml
Outdated
@@ -24,6 +24,7 @@ on: | |||
- "service/**" | |||
- "webhooks/**" | |||
- "frontend/**" | |||
- "deploy/cloud/manifests/free-license.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why add this?
@@ -609,7 +609,7 @@ spec: | |||
secretKeyRef: | |||
key: isMonitor | |||
name: licenseissuer-env | |||
image: ghcr.io/labring/sealos-licenseissuer-controller:latest | |||
image: registry.cn-hangzhou.aliyuncs.com/fckc/cloud-controller:v3.3.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use personal registry.
deploy/cloud/scripts/init.sh
Outdated
|
||
# wait for admin-user ready | ||
echo "waiting for admin-user generated" | ||
sleep 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use while
to make sure.
@@ -0,0 +1,7 @@ | |||
apiVersion: infostream.sealos.io/v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add // nosemgrep: generic.secrets.security.detected-jwt-token.detected-jwt-token
to ingore semgrep ci .
π€ Generated by Copilot at dfdccdc
Summary
β¨π§π¨
Added support for free license feature in sealos. This involved removing license expiration check, moving license recharge logic, creating admin user and free license resources, and applying them to the cluster.
Walkthrough
Reconcile
function ofLicenseReconciler
struct (link,link)Reconcile
function ofLicenseReconciler
struct (link)controller
package for readability and formatting (link)User
resource namedadmin
with custom CSR expiration time toadmin-user.yaml
file indeploy/cloud/manifests
directory (link)License
resource namedlicense
with token containing free license for admin user tofree-license.yaml
file indeploy/cloud/manifests
directory (link)admin-user.yaml
andfree-license.yaml
manifests to Kubernetes cluster ininit.sh
script indeploy/cloud/scripts
directory (link)