Skip to content

Commit b75c75b

Browse files
authored
bugfix: no need to validate if placement mode is set for vineyard runtime (#5186)
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
1 parent c1ec51a commit b75c75b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

pkg/ddc/vineyard/validate.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
package vineyard
1818

1919
import (
20-
"github.com/fluid-cloudnative/fluid/pkg/ddc/base"
20+
fluiderrs "github.com/fluid-cloudnative/fluid/pkg/errors"
2121
cruntime "github.com/fluid-cloudnative/fluid/pkg/runtime"
2222
)
2323

@@ -29,9 +29,8 @@ func (e *VineyardEngine) Validate(ctx cruntime.ReconcileRequestContext) (err err
2929
return err
3030
}
3131

32-
err = base.ValidateRuntimeInfo(runtimeInfo)
33-
if err != nil {
34-
return err
32+
if len(runtimeInfo.GetOwnerDatasetUID()) == 0 {
33+
return fluiderrs.NewTemporaryValidationFailed("OwnerDatasetUID is not set in runtime info, this is usually a temporary state, retrying")
3534
}
3635

3736
// TODO: impl validation logic for VineyardEngine

0 commit comments

Comments
 (0)