Skip to content

Commit

Permalink
solve some problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Peeknut committed Jan 19, 2021
1 parent 71c7bd2 commit e2f5e52
Show file tree
Hide file tree
Showing 12 changed files with 231 additions and 557 deletions.
5 changes: 1 addition & 4 deletions config/yurtctl-servant/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
FROM alpine:3.8

RUN mkdir -p /var/lib/openyurt
ADD setup_edgenode /var/lib/openyurt
FROM alpine:3.8
238 changes: 0 additions & 238 deletions config/yurtctl-servant/setup_edgenode

This file was deleted.

15 changes: 7 additions & 8 deletions pkg/yurtctl/cmd/convert/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ func (co *ConvertOptions) RunConvert() (err error) {
continue
}
// label node as edge node
//klog.Infof("mark %s as the edge-node", node.GetName())
//edgeNodeNames = append(edgeNodeNames, node.GetName())
//_, err = kubeutil.LabelNode(co.clientSet,
// &node, projectinfo.GetEdgeWorkerLabelKey(), "true")
//if err != nil {
// return
//}
klog.Infof("mark %s as the edge-node", node.GetName())
edgeNodeNames = append(edgeNodeNames, node.GetName())
_, err = kubeutil.LabelNode(co.clientSet,
&node, projectinfo.GetEdgeWorkerLabelKey(), "true")
if err != nil {
return
}
}

// 3. deploy yurt controller manager
Expand Down Expand Up @@ -317,7 +317,6 @@ func (co *ConvertOptions) RunConvert() (err error) {
}
if err = kubeutil.RunServantJobs(co.clientSet, map[string]string{
"provider": string(co.Provider),
//"action": "convert",
"yurtctl_servant_image": co.YurctlServantImage,
"yurthub_image": co.YurhubImage,
"joinToken": joinToken,
Expand Down
Loading

0 comments on commit e2f5e52

Please sign in to comment.