fix: k8s resource creation failed with no error message (#1277)

This commit is contained in:
yangkaa 2022-08-08 09:55:01 +08:00 committed by GitHub
parent 6506ef27b1
commit a5e17dfb11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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