core: fix golangci linter

fix golangci linter

Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
subhamkrai committed 2022-04-04 20:59:31 +05:30
1 parent 0cdb32a403
commit 24802c559e
21 files changed
+41 -43

No files matched your search

+2 -2
View File
@@ -67,10 +67,10 @@ func NewPodSpecTester(t *testing.T, spec *v1.PodSpec) *PodSpecTester {
func (ps *PodSpecTester) AssertVolumesMeetCephRequirements(
daemonType, daemonID string,
) {
// #nosec because of the word `Secret`
//nolint:gosec // because of the word `Secret`
keyringSecretName := fmt.Sprintf("rook-ceph-%s-%s-keyring", daemonType, daemonID)
if daemonType == config.MonType {
// #nosec because of the word `Secret`
//nolint:gosec // because of the word `Secret`
keyringSecretName = "rook-ceph-mons-keyring"
}
// CephFS mirror has no index so the daemon name is just "rook-ceph-fs-mirror"