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

fix: 修复使用nacos/nacos-server:2.4.x 镜像启动报错 #473

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions operator/pkg/service/operator/Kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for element in ${array[@]}
do
while true
do
ping $element -c 1 > /dev/stdout
ping -c 1 $element > /dev/stdout
if [[ $? -eq 0 ]]; then
echo $element "all domain ready"
break
Expand Down Expand Up @@ -858,7 +858,7 @@ func (e *KindClient) buildStatefulsetCluster(nacos *nacosgroupv1alpha1.Nacos, ss
}
ss.Spec.Template.Spec.Containers[0].Env = append(ss.Spec.Template.Spec.Containers[0].Env, env...)
// 先检查域名解析再启动
ss.Spec.Template.Spec.Containers[0].Command = []string{"sh", "-c", fmt.Sprintf("%s&&bin/docker-startup.sh", fmt.Sprintf(initScrit, serivceNoPort))}
ss.Spec.Template.Spec.Containers[0].Command = []string{"/bin/bash", "-c", fmt.Sprintf("%s&&bin/docker-startup.sh", fmt.Sprintf(initScrit, serivceNoPort))}
return ss
}

Expand Down