Fix: skip last-applied-configuration error for threewaymergepatch (#5402)

Signed-off-by: Somefive <yd219913@alibaba-inc.com>
This commit is contained in:
Somefive
2023-02-01 15:58:57 +08:00
committed by GitHub
parent 17bff50005
commit a38bbc72cf
+1 -1
View File
@@ -164,7 +164,7 @@ func getOriginalConfiguration(obj runtime.Object) ([]byte, error) {
return nil, nil
}
original, ok := annots[oam.AnnotationLastAppliedConfig]
if !ok {
if !ok || original == "-" || original == "skip" {
return nil, nil
}
return []byte(original), nil