Skip to content

Commit

Permalink
Merge pull request #121 from intelligentfu/secret
Browse files Browse the repository at this point in the history
some apiserver will check the resourceVersion when update
  • Loading branch information
catpineapple authored Mar 7, 2024
2 parents f531fc3 + 1cc0d7d commit e8e0c13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/common/utils/k8s/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func ApplyService(ctx context.Context, k8sclient client.Client, svc *corev1.Serv
return nil
}

//resolve the bug: metadata.resourceversion invalid value '' must be specified for an update
svc.ResourceVersion = esvc.ResourceVersion
return UpdateClientObject(ctx, k8sclient, svc)
}

Expand Down

0 comments on commit e8e0c13

Please sign in to comment.