Skip to content

feat: keypair garbage collection#2467

Merged
fanux merged 1 commit intolabring:mainfrom
xiaohan1202:keypair-gc
Feb 1, 2023
Merged

feat: keypair garbage collection#2467
fanux merged 1 commit intolabring:mainfrom
xiaohan1202:keypair-gc

Conversation

@xiaohan1202
Copy link
Copy Markdown
Contributor

add keypair tag to support keypair gc

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 31, 2023

Codecov Report

Base: 65.09% // Head: 65.09% // No change to project coverage 👍

Coverage data is based on head (4e08042) compared to base (271c25c).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2467   +/-   ##
=======================================
  Coverage   65.09%   65.09%           
=======================================
  Files           8        8           
  Lines         573      573           
=======================================
  Hits          373      373           
  Misses        168      168           
  Partials       32       32           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@xiaohan1202 xiaohan1202 force-pushed the keypair-gc branch 2 times, most recently from d898af6 to e3096af Compare January 31, 2023 07:46
Comment thread controllers/infra/common/common.go Outdated
DefaultRegion = "cn-north-1b"
KeyPairUser = "user"
KeyPairGeneral = "general"
KeyPairRoot = "root"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"sealos.io/aws/keypair/root"

infra.Status.Status = infrav1.Pending.String()
r.recorder.Eventf(infra, corev1.EventTypeNormal, "InfraPending", "Infra %s status is pending", infra.Name)
if err := r.Status().Update(ctx, infra); err != nil {
r.recorder.Eventf(infra, corev1.EventTypeWarning, "infra status to pending failed", "%v", err)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"failed to update infra pending status"

@fanux fanux merged commit 6a5c873 into labring:main Feb 1, 2023
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.

2 participants