fix: preserve git mirror deployment identity (#1818)

This commit is contained in:
Lyon
2026-06-21 12:46:22 +08:00
committed by GitHub
parent ec1380dc4e
commit 4986eddfb8
+4 -4
View File
@@ -4266,22 +4266,22 @@ function contentType(filePath) {
metadata: { labels: readLabels },
spec: {
containers: [{
name: "http",
name: "git-mirror",
image: ciToolsRunnerImage,
imagePullPolicy: "IfNotPresent",
command: ["node"],
args: ["/script/http.mjs"],
args: ["/etc/git-mirror/http.mjs"],
ports: [{ name: "http", containerPort: 8080 }],
readinessProbe: { httpGet: { path: "/pikasTech/HWLAB.git/HEAD", port: "http" }, initialDelaySeconds: 5, periodSeconds: 10 },
livenessProbe: { httpGet: { path: "/", port: "http" }, initialDelaySeconds: 10, periodSeconds: 30 },
volumeMounts: [
{ name: "cache", mountPath: "/cache" },
{ name: "script", mountPath: "/script", readOnly: true }
{ name: "config", mountPath: "/etc/git-mirror", readOnly: true }
]
}],
volumes: [
cacheVolume,
{ name: "script", configMap: { name: gitMirrorConfigMapName, defaultMode: 0o555 } }
{ name: "config", configMap: { name: gitMirrorConfigMapName, defaultMode: 0o555 } }
]
}
}