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

modify lvscare name #1937

Merged
merged 1 commit into from
Jan 16, 2023
Merged

modify lvscare name #1937

merged 1 commit into from
Jan 16, 2023

Conversation

Stevent-fei
Copy link
Collaborator

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@codecov-commenter
Copy link

codecov-commenter commented Dec 27, 2022

Codecov Report

Base: 17.51% // Head: 17.99% // Increases project coverage by +0.47% 🎉

Coverage data is based on head (af383a5) compared to base (beeae84).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1937      +/-   ##
==========================================
+ Coverage   17.51%   17.99%   +0.47%     
==========================================
  Files         103      104       +1     
  Lines        9139     9360     +221     
==========================================
+ Hits         1601     1684      +83     
- Misses       7325     7454     +129     
- Partials      213      222       +9     
Impacted Files Coverage Δ
build/kubefile/parser/kubefile.go 36.82% <0.00%> (-19.03%) ⬇️
cmd/sealer/cmd/utils/cluster.go 32.14% <0.00%> (-9.72%) ⬇️
pkg/config/config.go 27.95% <0.00%> (-1.59%) ⬇️
cmd/sealer/cmd/utils/validate.go 38.35% <0.00%> (-0.54%) ⬇️
utils/decode.go 0.00% <0.00%> (ø)
pkg/config/pre_process.go 0.00% <0.00%> (ø)
pkg/cluster-runtime/apps.go 0.00% <0.00%> (ø)
pkg/cluster-runtime/installer.go 0.00% <0.00%> (ø)
build/kubefile/parser/app_handler.go 45.94% <0.00%> (ø)
pkg/imagedistributor/scp_distributor.go 0.00% <0.00%> (ø)
... and 8 more

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.

@kakaZhou719
Copy link
Member

how about make it as a const value , replace it including registry lvscare and k8s runtime lvscare

common/common.go Outdated
@@ -40,6 +40,7 @@ const (
KubeLvsCareStaticPodName = "kube-lvscare"
RegLvsCareStaticPodName = "reg-lvscare"
StaticPodDir = "/etc/kubernetes/manifests"
LvsCare = "sealerio/lvscare:v1.1.3-beta.8"
Copy link
Member

Choose a reason for hiding this comment

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

LvsCareRepoAndTag

@@ -162,7 +162,7 @@ func (c *localConfigurator) configureLvs(registryHosts, clientHosts []net.IP) er
}

//todo should make lvs image name as const value in sealer repo.
lvsImageURL := fmt.Sprintf("%s/sealer/lvscare:v1.1.3-beta.8", net.JoinHostPort(c.Domain, strconv.Itoa(c.Port)))
lvsImageURL := filepath.Join(net.JoinHostPort(c.Domain, strconv.Itoa(c.Port)), common.LvsCare)
Copy link
Member

Choose a reason for hiding this comment

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

in cluster runtime, we also need to replace this value.

Copy link
Collaborator

@starnop starnop left a comment

Choose a reason for hiding this comment

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

LGTM

@starnop starnop merged commit 1bd7c72 into sealerio:main Jan 16, 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.

4 participants