Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: zvlb <[email protected]>
  • Loading branch information
zvlb committed Apr 16, 2024
1 parent f0f328d commit faeec01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/infrastructure/kubernetes/infra_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func (i *Infra) createOrUpdateDeployment(ctx context.Context, r ResourceRender)
return err
}

// skip deployment creation if it is not needed
// delete the deployment and return early
// this handles the case where a daemonset has been
// congured
if deployment == nil {
return i.deleteDeployment(ctx, r)
}
Expand Down Expand Up @@ -103,7 +105,9 @@ func (i *Infra) createOrUpdateDaemonSet(ctx context.Context, r ResourceRender) e
return err
}

// skip daemonset creation if it is not needed
// delete the daemonset and return early
// this handles the case where a deployment has been
// congured
if daemonSet == nil {
return i.deleteDaemonSet(ctx, r)
}
Expand Down

0 comments on commit faeec01

Please sign in to comment.