Skip to content
Open
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
16 changes: 11 additions & 5 deletions helm-charts/basehub/values.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ local emitDaskHubCompatibleConfig(basehubConfig) =
if isDaskHub then { basehub: basehubConfig } else basehubConfig;

local jupyterhubHomeNFSResources = {
quotaEnforcer: {
path: '/export/%s' % hub_name,
// The + is required so this will merge correctly with other config
// when needed
quotaEnforcer+: {
resources: {
requests: {
cpu: 0.02,
Expand All @@ -26,7 +27,7 @@ local jupyterhubHomeNFSResources = {
},
},
},
nfsServer: {
nfsServer+: {
resources: {
requests: {
cpu: 0.2,
Expand All @@ -38,7 +39,7 @@ local jupyterhubHomeNFSResources = {
},
},
},
prometheusExporter: {
prometheusExporter+: {
resources: {
requests: {
cpu: 0.02,
Expand All @@ -51,7 +52,12 @@ local jupyterhubHomeNFSResources = {
},
},
};
local jupyterhubHomeNFS = {
quotaEnforcer: {
path: '/export/%s' % hub_name,
},
} + if is_staging then {} else jupyterhubHomeNFSResources;

emitDaskHubCompatibleConfig({
'jupyterhub-home-nfs': if is_staging then {} else jupyterhubHomeNFSResources,
'jupyterhub-home-nfs': jupyterhubHomeNFS,
})
Loading