Skip to content

Commit

Permalink
Merge pull request #221 from webzard-io/fix/resource
Browse files Browse the repository at this point in the history
fix: correctly check default storage class annotation
  • Loading branch information
tanbowensg authored Mar 3, 2025
2 parents 0d96cb5 + a50d01f commit da68ffd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/refine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dovetail-v2/refine",
"version": "0.1.30",
"version": "0.1.31",
"type": "module",
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/refine/src/models/storage-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class StorageClassModel extends ResourceModel {
}

get isDefaultSC() {
return this._rawYaml.metadata?.annotations?.['storageclass.kubernetes.io/is-default-class'];
return this._rawYaml.metadata?.annotations?.['storageclass.kubernetes.io/is-default-class'] === 'true';
}

get reclaimPolicy() {
Expand Down

0 comments on commit da68ffd

Please sign in to comment.