mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-25 17:12:50 +00:00
bugfix: fix builtin package empty graph bug (#2726)
Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
This commit is contained in:
parent
4013fefef8
commit
79fa0a4d8c
|
|
@ -27,6 +27,7 @@ import (
|
|||
kkprojectv1 "github.com/kubesphere/kubekey/api/project/v1"
|
||||
|
||||
"github.com/kubesphere/kubekey/v4/builtin/core"
|
||||
"github.com/kubesphere/kubekey/v4/pkg/utils"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
@ -40,10 +41,11 @@ func init() {
|
|||
}
|
||||
|
||||
return &project{
|
||||
FS: core.BuiltinPlaybook,
|
||||
basePlaybook: playbook.Spec.Playbook,
|
||||
Playbook: &kkprojectv1.Playbook{},
|
||||
config: playbook.Spec.Config.Value(),
|
||||
FS: core.BuiltinPlaybook,
|
||||
basePlaybook: playbook.Spec.Playbook,
|
||||
Playbook: &kkprojectv1.Playbook{},
|
||||
config: playbook.Spec.Config.Value(),
|
||||
playbookGraph: utils.NewKahnGraph(),
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue