ci: provision bounded per-architecture compiler caches and handle admission timeouts
This commit is contained in:
parent
23e84b27ca
commit
1913e74ef7
@ -33,7 +33,7 @@ class Handler(BaseHTTPRequestHandler):
|
|||||||
if not 0 < size <= 4 * 1024 * 1024:
|
if not 0 < size <= 4 * 1024 * 1024:
|
||||||
raise ValueError("invalid size")
|
raise ValueError("invalid size")
|
||||||
req = json.loads(self.rfile.read(size))["request"]
|
req = json.loads(self.rfile.read(size))["request"]
|
||||||
patch = patches(req["object"], ARCHES[self.path.lstrip("/")])
|
patch = patches(req["object"], ARCHES[self.path.partition("?")[0].lstrip("/")])
|
||||||
response = {"uid": req["uid"], "allowed": True, "patchType": "JSONPatch",
|
response = {"uid": req["uid"], "allowed": True, "patchType": "JSONPatch",
|
||||||
"patch": base64.b64encode(json.dumps(patch).encode()).decode()}
|
"patch": base64.b64encode(json.dumps(patch).encode()).decode()}
|
||||||
body = json.dumps({"apiVersion": "admission.k8s.io/v1", "kind": "AdmissionReview",
|
body = json.dumps({"apiVersion": "admission.k8s.io/v1", "kind": "AdmissionReview",
|
||||||
|
|||||||
@ -9,6 +9,7 @@ resources:
|
|||||||
- vault-serviceaccount.yaml
|
- vault-serviceaccount.yaml
|
||||||
- pvc.yaml
|
- pvc.yaml
|
||||||
- cache-pvc.yaml
|
- cache-pvc.yaml
|
||||||
|
- lesavka-compiler-cache.yaml
|
||||||
- dind-pvc.yaml
|
- dind-pvc.yaml
|
||||||
- plugins-pvc.yaml
|
- plugins-pvc.yaml
|
||||||
- configmap-jcasc.yaml
|
- configmap-jcasc.yaml
|
||||||
|
|||||||
26
services/jenkins/lesavka-compiler-cache.yaml
Normal file
26
services/jenkins/lesavka-compiler-cache.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# services/jenkins/lesavka-compiler-cache.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: lesavka-compiler-cache-arm64
|
||||||
|
annotations:
|
||||||
|
kustomize.toolkit.fluxcd.io/prune: disabled
|
||||||
|
spec:
|
||||||
|
accessModes: [ReadWriteOnce]
|
||||||
|
storageClassName: ci-scratch
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 12Gi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: lesavka-compiler-cache-amd64
|
||||||
|
annotations:
|
||||||
|
kustomize.toolkit.fluxcd.io/prune: disabled
|
||||||
|
spec:
|
||||||
|
accessModes: [ReadWriteOnce]
|
||||||
|
storageClassName: ci-scratch
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 12Gi
|
||||||
Loading…
x
Reference in New Issue
Block a user