File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,13 @@ export default class Metalk8sLocalVolumeProvider {
9393 ) : Promise < void > => {
9494 // The volume name is the same as the PV name
9595 const volumeNames = localPVs . map ( ( localPV ) => localPV . metadata . name ) ;
96+ const token = await this . getToken ( ) ;
97+ const { customObjects } = ApiK8s . updateApiServerConfig ( this . apiUrl , token ) ;
98+ const volumeClient = new Metalk8sV1alpha1VolumeClient ( customObjects ) ;
9699
97100 for ( const volumeName of volumeNames ) {
98101 try {
99- await this . volumeClient . deleteMetalk8sV1alpha1Volume ( volumeName ) ;
102+ await volumeClient . deleteMetalk8sV1alpha1Volume ( volumeName ) ;
100103 } catch ( error ) {
101104 throw new Error (
102105 `Failed to delete MetalK8s volume ${ volumeName } : ${
You can’t perform that action at this time.
0 commit comments