@@ -1071,7 +1071,7 @@ func deleteConfigMap(ctx context.Context, meta *TFConfigurationMeta, k8sClient c
1071
1071
for _ , combination := range possibleCombination {
1072
1072
if err := k8sClient .Get (ctx , client.ObjectKey {Name : combination [0 ], Namespace : combination [1 ]}, & cm ); err == nil {
1073
1073
if err := k8sClient .Delete (ctx , & cm ); err != nil {
1074
- return err
1074
+ return client . IgnoreNotFound ( err )
1075
1075
}
1076
1076
}
1077
1077
}
@@ -1090,7 +1090,7 @@ func deleteVariableSecret(ctx context.Context, meta *TFConfigurationMeta, k8sCli
1090
1090
for _ , combination := range possibleCombination {
1091
1091
if err := k8sClient .Get (ctx , client.ObjectKey {Name : combination [0 ], Namespace : combination [1 ]}, & variableSecret ); err == nil {
1092
1092
if err := k8sClient .Delete (ctx , & variableSecret ); err != nil {
1093
- return err
1093
+ return client . IgnoreNotFound ( err )
1094
1094
}
1095
1095
}
1096
1096
}
@@ -1109,7 +1109,7 @@ func deleteApplyJob(ctx context.Context, meta *TFConfigurationMeta, k8sClient cl
1109
1109
for _ , combination := range possibleCombination {
1110
1110
if err := k8sClient .Get (ctx , client.ObjectKey {Name : combination [0 ], Namespace : combination [1 ]}, & job ); err == nil {
1111
1111
if err := k8sClient .Delete (ctx , & job ); err != nil {
1112
- return err
1112
+ return client . IgnoreNotFound ( err )
1113
1113
}
1114
1114
}
1115
1115
}
@@ -1128,7 +1128,7 @@ func deleteDestroyJob(ctx context.Context, meta *TFConfigurationMeta, k8sClient
1128
1128
for _ , combination := range possibleCombination {
1129
1129
if err := k8sClient .Get (ctx , client.ObjectKey {Name : combination [0 ], Namespace : combination [1 ]}, & job ); err == nil {
1130
1130
if err := k8sClient .Delete (ctx , & job ); err != nil {
1131
- return err
1131
+ return client . IgnoreNotFound ( err )
1132
1132
}
1133
1133
}
1134
1134
}
0 commit comments