Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Component name ([#2])
- Disable Kapitan plugin ([#4])
- Non-default StorageClasses have their "is-default-class" annotation removed ([#7])

### Fixed

Expand All @@ -25,3 +26,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#3]: https://github.com/projectsyn/component-storageclass/pull/3
[#4]: https://github.com/projectsyn/component-storageclass/pull/4
[#6]: https://github.com/projectsyn/component-storageclass/pull/6
[#7]: https://github.com/projectsyn/component-storageclass/pull/7
2 changes: 1 addition & 1 deletion lib/storageclass.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ local params = inv.parameters.storageclass;
local storageClass(name) = kube._Object('storage.k8s.io/v1', 'StorageClass', name) {
metadata+: {
annotations+: {
[if params.defaultClass == name then 'storageclass.kubernetes.io/is-default-class']: 'true',
'storageclass.kubernetes.io/is-default-class': if params.defaultClass == name then 'true' else null,
},
},
} + params.defaults;
Expand Down