Skip to content
Draft
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
24 changes: 24 additions & 0 deletions config/clusters/projectpythia-binder/binderhub.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,30 @@ binderhub-service:
nodeSelector:
hub.jupyter.org/node-purpose:
capi.stackhpc.com/node-group: user-m3-large
extraConfig:
patch-build-spec.py: |
from binderhub.build import KubernetesBuildExecutor
from kubernetes import client

class LimitedBuildExecutor(KubernetesBuildExecutor):

def pre_process_pod(self, pod):
container, = pod.spec.containers
container.resources.requests['ephemeral-storage'] = "9Gi"
print("Patching build pod definition to set ephemeral-storage request:\n", pod)
return pod

@property
def pod(self):
# No custom error handling, this is internal
return self._pod

@pod.setter
def pod(self, value):
self._pod = self.pre_process_pod(value)

c.BinderHub.build_class = LimitedBuildExecutor

config:
GitHubRepoProvider:
allowed_specs:
Expand Down
Loading