Skip to content

Commit

Permalink
set default k8s entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed Sep 23, 2024
1 parent 8d16ba6 commit 385396b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion grid-client/deployer/k8s_deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,11 @@ func assignNodesFlistsAndEntryPoints(k *workloads.K8sCluster) {
k.Flist = k.Master.Flist
}
if k.Entrypoint == "" {
k.Entrypoint = k.Master.Entrypoint
if k.Master.Entrypoint != "" {
k.Entrypoint = k.Master.Entrypoint
} else {
k.Entrypoint = "/sbin/zinit init" // set default value
}
}

k.Master.Flist = k.Flist
Expand Down

0 comments on commit 385396b

Please sign in to comment.