Skip to content

Commit

Permalink
neonvm-controller: apply code formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Misha Sakhnov <[email protected]>
  • Loading branch information
mikhail-sakhnov committed Nov 26, 2024
1 parent cc80a6f commit f5246f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/neonvm/controllers/vmmigration_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ func (r *VirtualMachineMigrationReconciler) Reconcile(ctx context.Context, req c
// NB: .Spec.EnableSSH guaranteed non-nil because the k8s API server sets the default for us.
enableSSH := *vm.Spec.EnableSSH
var sshSecret *corev1.Secret

if enableSSH {
// We require the SSH secret to exist because we cannot unmount and
// mount the new secret into the VM after the live migration. If a
Expand Down
2 changes: 0 additions & 2 deletions pkg/neonvm/controllers/vmmigration_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
)

func TestHasArchitectureAffinity(t *testing.T) {

cases := []struct {
name string
result bool
Expand Down Expand Up @@ -140,5 +139,4 @@ func TestSourceNodeHasNoArchitecture(t *testing.T) {
if err == nil {
t.Errorf("Expected error when source node has no architecture")
}

}

0 comments on commit f5246f7

Please sign in to comment.