ci(hermes-webui): reserve image build storage
This commit is contained in:
parent
89b0c34854
commit
b98a7cbe9f
@ -28,6 +28,7 @@ spec:
|
|||||||
operator: NotIn
|
operator: NotIn
|
||||||
values:
|
values:
|
||||||
- titan-04
|
- titan-04
|
||||||
|
- titan-12
|
||||||
- titan-14
|
- titan-14
|
||||||
- titan-18
|
- titan-18
|
||||||
- titan-19
|
- titan-19
|
||||||
@ -99,9 +100,11 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
|
ephemeral-storage: 10Gi
|
||||||
limits:
|
limits:
|
||||||
cpu: "2"
|
cpu: "2"
|
||||||
memory: 4Gi
|
memory: 4Gi
|
||||||
|
ephemeral-storage: 20Gi
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -120,6 +120,12 @@ def test_pipeline_builds_latest_main_containing_reviewed_anchor() -> None:
|
|||||||
assert spec["enableServiceLinks"] is False
|
assert spec["enableServiceLinks"] is False
|
||||||
containers = {item["name"]: item for item in spec["containers"]}
|
containers = {item["name"]: item for item in spec["containers"]}
|
||||||
assert "kaniko" in containers
|
assert "kaniko" in containers
|
||||||
|
assert containers["kaniko"]["resources"]["requests"]["ephemeral-storage"] == "10Gi"
|
||||||
|
assert containers["kaniko"]["resources"]["limits"]["ephemeral-storage"] == "20Gi"
|
||||||
|
excluded_nodes = spec["affinity"]["nodeAffinity"][
|
||||||
|
"requiredDuringSchedulingIgnoredDuringExecution"
|
||||||
|
]["nodeSelectorTerms"][0]["matchExpressions"][0]["values"]
|
||||||
|
assert "titan-12" in excluded_nodes
|
||||||
assert "docker.sock" not in source and "hostPath" not in source
|
assert "docker.sock" not in source and "hostPath" not in source
|
||||||
for container in containers.values():
|
for container in containers.values():
|
||||||
assert container["securityContext"]["allowPrivilegeEscalation"] is False
|
assert container["securityContext"]["allowPrivilegeEscalation"] is False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user