forked from red-hat-storage/odf-console
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request red-hat-storage#1404 from bipuladh/fix-client-fall…
…back Remove storage class prefix for client deployments
- Loading branch information
Showing
4 changed files
with
17 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/ocs/dashboards/persistent-external/client-fallback.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* This hooks is for ODF Client Mode use case only. | ||
* ODF client mode doesn't deploy ODF StorageCluster hence we will use no storage class prefix. We will rely on provisioners | ||
* | ||
*/ | ||
const getClientFallback = (storageClusterName: string) => { | ||
if (storageClusterName) { | ||
return storageClusterName; | ||
} | ||
return ''; | ||
}; | ||
|
||
export default getClientFallback; |
37 changes: 0 additions & 37 deletions
37
packages/ocs/dashboards/persistent-external/fallback-hook.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters