Skip to content

Commit

Permalink
fix claim name
Browse files Browse the repository at this point in the history
  • Loading branch information
FLYBYME committed Oct 28, 2023
1 parent 879bf24 commit 3089579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/volumes.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ module.exports = {
*/
async deletePVC(ctx, namespace, volume, deployment) {

const claimName = `${volume.name}-claim`
const claimName = `${namespace.name}-${deployment ? deployment.name : 'shared'}-${volume.name}-claim`;

return ctx.call('v1.kube.deleteNamespacedPersistentVolumeClaim', {
namespace: namespace.name,
Expand Down

0 comments on commit 3089579

Please sign in to comment.