mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
fix: k8s resource creation failed with no error message (#1277)
This commit is contained in:
parent
6506ef27b1
commit
a5e17dfb11
@ -127,7 +127,7 @@ func (c *clusterAction) SyncAppK8SResources(ctx context.Context, req *model.Sync
|
||||
func (c *clusterAction) HandleResourceYaml(resourceYaml []byte, namespace string, change string, name string) []*model.BuildResource {
|
||||
var buildResourceList []*model.BuildResource
|
||||
var state int
|
||||
if change == "create" {
|
||||
if change == "create" || change == "re-create" {
|
||||
state = model.CreateError
|
||||
} else if change == "update" {
|
||||
state = model.UpdateError
|
||||
|
Loading…
Reference in New Issue
Block a user