We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
==
/kind bug
What steps did you take and what happened:
kubeflow/components/notebook-controller/controllers/notebook_controller.go
Lines 319 to 321 in e5894a3
There, even if
reflect.DeepEqual(pod.Status.ContainerStatuses[i].State, nb.Status.ContainerState)
returns true, that == will give us false because status contains references, not direct values.
What you expect
We should look into https://github.com/google/go-cmp, or cmp.Equal, or reflect.DeepEqual and use one of these.
Or maybe the k8s compare function, apiequality.Semantic.DeepEqual, see https://godoc.org/k8s.io/apimachinery/pkg/api/equality)
Note:
Trying this out in debugger is annoying because of
The text was updated successfully, but these errors were encountered:
No branches or pull requests
/kind bug
What steps did you take and what happened:
kubeflow/components/notebook-controller/controllers/notebook_controller.go
Lines 319 to 321 in e5894a3
There, even if
returns true, that
==
will give us false because status contains references, not direct values.What you expect
We should look into https://github.com/google/go-cmp, or cmp.Equal, or reflect.DeepEqual and use one of these.
Or maybe the k8s compare function, apiequality.Semantic.DeepEqual, see https://godoc.org/k8s.io/apimachinery/pkg/api/equality)
Note:
Trying this out in debugger is annoying because of
The text was updated successfully, but these errors were encountered: