@highstate/k8s 0.4.6 → 0.5.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.d.ts +1 -1
- package/dist/index.js +27 -25
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
@@ -519,7 +519,7 @@ type UseAccessPointArgs = Omit<CreateGatewayArgs, "gateway"> & {
|
|
519
519
|
declare function useAccessPoint(args: UseAccessPointArgs): Promise<UseAccessPointResult>;
|
520
520
|
type CreateGatewayArgs = {
|
521
521
|
name: string;
|
522
|
-
namespace: Input<
|
522
|
+
namespace: Input<core.v1.Namespace>;
|
523
523
|
annotations?: Input<Record<string, string>>;
|
524
524
|
fqdn: Input<string>;
|
525
525
|
gateway: Input<k8s.Gateway>;
|
package/dist/index.js
CHANGED
@@ -627,32 +627,34 @@ function useAccessPoint(args) {
|
|
627
627
|
return toPromise(result);
|
628
628
|
}
|
629
629
|
function createGateway(args) {
|
630
|
-
return
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
630
|
+
return output(args).apply((args2) => {
|
631
|
+
return new gateway.v1.Gateway(
|
632
|
+
args2.name,
|
633
|
+
{
|
634
|
+
metadata: {
|
635
|
+
name: args2.name,
|
636
|
+
namespace: mapNamespaceLikeToNamespaceName(args2.namespace),
|
637
|
+
annotations: args2.annotations
|
638
|
+
},
|
639
|
+
spec: {
|
640
|
+
gatewayClassName: output(args2.gateway).gatewayClassName,
|
641
|
+
listeners: [
|
642
|
+
{
|
643
|
+
name: "https",
|
644
|
+
port: output(args2.gateway).httpsListenerPort,
|
645
|
+
protocol: "HTTPS",
|
646
|
+
hostname: args2.fqdn,
|
647
|
+
tls: {
|
648
|
+
mode: "Terminate",
|
649
|
+
certificateRefs: [{ name: args2.fqdn }]
|
650
|
+
}
|
649
651
|
}
|
650
|
-
|
651
|
-
|
652
|
-
}
|
653
|
-
|
654
|
-
|
655
|
-
);
|
652
|
+
]
|
653
|
+
}
|
654
|
+
},
|
655
|
+
{ provider: args2.provider, deletedWith: args2.namespace }
|
656
|
+
);
|
657
|
+
});
|
656
658
|
}
|
657
659
|
|
658
660
|
const emptyDistributionEnvironment = {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@highstate/k8s",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.5.1",
|
4
4
|
"type": "module",
|
5
5
|
"module": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -26,11 +26,11 @@
|
|
26
26
|
"generate-crds": "./scripts/generate-crds.sh"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@highstate/cert-manager": "^0.
|
30
|
-
"@highstate/common": "^0.
|
31
|
-
"@highstate/contract": "^0.
|
32
|
-
"@highstate/gateway-api": "^0.
|
33
|
-
"@highstate/pulumi": "^0.
|
29
|
+
"@highstate/cert-manager": "^0.5.1",
|
30
|
+
"@highstate/common": "^0.5.1",
|
31
|
+
"@highstate/contract": "^0.5.1",
|
32
|
+
"@highstate/gateway-api": "^0.5.1",
|
33
|
+
"@highstate/pulumi": "^0.5.1",
|
34
34
|
"@pulumi/command": "^1.0.2",
|
35
35
|
"@pulumi/kubernetes": "^4.18.0",
|
36
36
|
"@pulumi/pulumi": "^3.152.0",
|
@@ -43,5 +43,5 @@
|
|
43
43
|
"devDependencies": {
|
44
44
|
"pkgroll": "^2.5.1"
|
45
45
|
},
|
46
|
-
"gitHead": "
|
46
|
+
"gitHead": "4ee64a0eebcb655746fa591ebf8e82199cf9e5d5"
|
47
47
|
}
|