Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/operator/credentialsrequest: Safer resource version dereference
This should always be set for actual in-cluster resources, but isn't set in some unit tests. By using a local variable with safer dereferencing, we avoid panics in TestCredentialsRequestAzureReconcile/new_credential [1]. [1]: https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_cloud-credential-operator/812/pull-ci-openshift-cloud-credential-operator-master-unit/1872474465263161344#1:build-log.txt%3A65-85
- Loading branch information