- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getISCSISecretNameAndNamespace (0.22 sec)
-
pkg/volume/iscsi/iscsi.go
} return false, fmt.Errorf("Spec does not reference an ISCSI volume type") } // get iSCSI CHAP Secret info: secret name and namespace func getISCSISecretNameAndNamespace(spec *volume.Spec, defaultSecretNamespace string) (string, string, error) { if spec.Volume != nil && spec.Volume.ISCSI != nil { if spec.Volume.ISCSI.SecretRef != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 23.4K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_test.go
}, }, }, }, expectedName: "", expectedNs: "", expectedError: nil, }, } for _, testcase := range tests { resultName, resultNs, err := getISCSISecretNameAndNamespace(testcase.spec, testcase.defaultNs) if err != testcase.expectedError || resultName != testcase.expectedName || resultNs != testcase.expectedNs {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 16.4K bytes - Viewed (0)