@highstate/cilium 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
@@ -21,10 +21,20 @@ class CiliumNetworkPolicy extends NetworkPolicy {
|
|
21
21
|
);
|
22
22
|
}
|
23
23
|
static createIngressRules(args) {
|
24
|
+
if (args.isolateIngress) {
|
25
|
+
return [{}];
|
26
|
+
}
|
24
27
|
return args.ingressRules.flatMap((rule) => CiliumNetworkPolicy.createRules("from", rule));
|
25
28
|
}
|
26
29
|
static createEgressRules(args) {
|
27
|
-
|
30
|
+
if (args.isolateEgress) {
|
31
|
+
return [{}];
|
32
|
+
}
|
33
|
+
const extraRules = [];
|
34
|
+
if (args.allowKubeApiServer) {
|
35
|
+
extraRules.push({ toEntities: ["kube-apiserver"] });
|
36
|
+
}
|
37
|
+
return args.egressRules.flatMap((rule) => CiliumNetworkPolicy.createRules("to", rule)).concat(extraRules);
|
28
38
|
}
|
29
39
|
static createRules(prefix, rule) {
|
30
40
|
const port = CiliumNetworkPolicy.mapPorts(rule.ports);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@highstate/cilium",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.1",
|
4
4
|
"type": "module",
|
5
5
|
"files": [
|
6
6
|
"assets",
|
@@ -26,9 +26,9 @@
|
|
26
26
|
"generate-crds": "./scripts/generate-crds.sh"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@highstate/cilium-crds": "^0.7.
|
30
|
-
"@highstate/k8s": "^0.7.
|
31
|
-
"@highstate/pulumi": "^0.7.
|
29
|
+
"@highstate/cilium-crds": "^0.7.1",
|
30
|
+
"@highstate/k8s": "^0.7.1",
|
31
|
+
"@highstate/pulumi": "^0.7.1",
|
32
32
|
"@pulumi/command": "^1.0.2",
|
33
33
|
"@pulumi/kubernetes": "^4.18.0",
|
34
34
|
"@pulumi/pulumi": "^3.152.0",
|
@@ -40,5 +40,5 @@
|
|
40
40
|
"devDependencies": {
|
41
41
|
"pkgroll": "^2.5.1"
|
42
42
|
},
|
43
|
-
"gitHead": "
|
43
|
+
"gitHead": "76c38ce5dbf7a710cf0e6339f52e86358537a99a"
|
44
44
|
}
|