Skip to content

Commit

Permalink
update Replace to overwrite non-versioned resources (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjberry16 committed Jul 14, 2023
1 parent 2851213 commit cca37ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (c *client) Replace(u *unstructured.Unstructured) (Metadata, error) {

exists := true
// Determine if the resource currently exists.
if err := info.Get(); err != nil {
if _, err := helper.Get(info.Namespace, info.Name); err != nil {
if !errors.IsNotFound(err) {
return metadata, err
}
Expand Down

0 comments on commit cca37ce

Please sign in to comment.