Skip to content

Commit

Permalink
Fix persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosedp committed Jun 22, 2020
1 parent 65d0293 commit 71e9e55
Show file tree
Hide file tree
Showing 2 changed files with 1,145 additions and 4,714 deletions.
4 changes: 2 additions & 2 deletions base_operator_stack.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ local vars = import 'vars.jsonnet';
pvc.new() +
pvc.mixin.spec.withAccessModes('ReadWriteOnce') +
pvc.mixin.spec.resources.withRequests({ storage: vars.enablePersistence.prometheusSizePV }) +
(if vars.enablePersistence.prometheusPV != '' then pvc.mixin.spec.withVolumeName(vars.enablePersistence.prometheusPV)),
(if vars.enablePersistence.prometheusPV != null then pvc.mixin.spec.withVolumeName(vars.enablePersistence.prometheusPV)),
// Uncomment below to define a StorageClass name
//+ pvc.mixin.spec.withStorageClassName('nfs-master-ssd'),
},
Expand Down Expand Up @@ -125,7 +125,7 @@ local vars = import 'vars.jsonnet';
pvc.mixin.metadata.withName('grafana-storage') +
pvc.mixin.spec.withAccessModes('ReadWriteOnce') +
pvc.mixin.spec.resources.withRequests({ storage: vars.enablePersistence.grafanaSizePV }) +
(if vars.enablePersistence.grafanaPV != '' then pvc.mixin.spec.withVolumeName(vars.enablePersistence.grafanaPV)),
(if vars.enablePersistence.grafanaPV != null then pvc.mixin.spec.withVolumeName(vars.enablePersistence.grafanaPV)),
} else {},

grafanaDashboards+:: $._config.grafanaDashboards,
Expand Down
Loading

0 comments on commit 71e9e55

Please sign in to comment.