Skip to content

Commit

Permalink
Fix the update process
Browse files Browse the repository at this point in the history
  • Loading branch information
Alby Hernández committed Mar 9, 2022
1 parent 13203c5 commit bef9a22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ kind: Kustomization
images:
- name: controller
newName: prosimcorp/replika
newTag: v0.2.2
newTag: v0.2.3
10 changes: 1 addition & 9 deletions controllers/replika_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,7 @@ func (r *ReplikaReconciler) UpdateTarget(ctx context.Context, target *unstructur

// Update the object
patch, err := target.MarshalJSON()
err = r.Patch(context.Background(), target, client.RawPatch(types.MergePatchType, patch))

// Objects in Kubernetes are uniquely identified
// Set target UID to the UID received from de created resource
//target.SetUID(tmpTarget.GetUID())

//res := target.DeepCopy()
//res.SetResourceVersion(tmpTarget.GetResourceVersion())
//err = r.Update(ctx, target.DeepCopy())
err = r.Patch(ctx, target, client.RawPatch(types.MergePatchType, patch))

return err
}
Expand Down
2 changes: 1 addition & 1 deletion deploy/deployment/replika-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
- --leader-elect
command:
- /manager
image: prosimcorp/replika:v0.2.2
image: prosimcorp/replika:v0.2.3
livenessProbe:
httpGet:
path: /healthz
Expand Down

0 comments on commit bef9a22

Please sign in to comment.