Skip to content

Commit

Permalink
fix(operator/inventory): copy node object on node update (akash-netwo…
Browse files Browse the repository at this point in the history
…rk#207)

Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored Feb 28, 2024
1 parent 1e36640 commit 343acdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions operator/inventory/node-discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ func (dp *nodeDiscovery) monitor() error {
switch obj := evt.Object.(type) {
case *corev1.Node:
if obj.Name == dp.name {
knode = obj.DeepCopy()
switch evt.Type {
case watch.Modified:
signalLabels()
Expand Down

0 comments on commit 343acdc

Please sign in to comment.