Merge pull request #9560 from leseb/fix-2039240

osd: use cluster name when fetching the cephcluster
This commit is contained in:
Travis Nielsen authored and GitHub committed 2022-01-11 07:48:25 -07:00
commit dbcd2f8a30
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ func startSecret() *kms.Config {
context := rook.NewContext()
// Fetch the CephCluster for the KMS details
cephCluster, err := context.RookClientset.CephV1().CephClusters(namespace).Get(ctx, namespace, metav1.GetOptions{})
cephCluster, err := context.RookClientset.CephV1().CephClusters(namespace).Get(ctx, name, metav1.GetOptions{})
if err != nil {
rook.TerminateFatal(errors.Wrapf(err, "failed to get ceph cluster in namespace %q", namespace))
}