Merge pull request #153 from pikasTech/fix/runner-npm-egress-152
修复 Artificer runner npm registry egress
This commit is contained in:
@@ -22,6 +22,8 @@ const defaultRunnerNoProxy = [
|
||||
"g14-provider-egress-proxy.unidesk",
|
||||
"g14-provider-egress-proxy.unidesk.svc",
|
||||
"g14-provider-egress-proxy.unidesk.svc.cluster.local",
|
||||
"registry.npmjs.org",
|
||||
"registry.npmmirror.com",
|
||||
"g14-tcp-egress-gateway",
|
||||
"g14-tcp-egress-gateway.unidesk",
|
||||
"g14-tcp-egress-gateway.unidesk.svc",
|
||||
|
||||
@@ -332,6 +332,8 @@ function assertRunnerJobUsesG14EgressProxy(manifest: JsonRecord): void {
|
||||
assert.ok(noProxy.includes("hyueapi.com"), "NO_PROXY must keep hyueapi.com direct");
|
||||
assert.ok(noProxy.includes(".hyueapi.com"), "NO_PROXY must keep .hyueapi.com direct");
|
||||
assert.ok(noProxy.includes("g14-provider-egress-proxy.unidesk.svc.cluster.local"), "NO_PROXY must include the proxy Service itself");
|
||||
assert.ok(noProxy.includes("registry.npmjs.org"), "NO_PROXY must keep registry.npmjs.org direct");
|
||||
assert.ok(noProxy.includes("registry.npmmirror.com"), "NO_PROXY must keep registry.npmmirror.com direct");
|
||||
assert.ok(noProxy.includes(".svc"), "NO_PROXY must include Kubernetes Service domains");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user