@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 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<NamespaceLike>;
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 new gateway.v1.Gateway(
631
- args.name,
632
- {
633
- metadata: {
634
- name: args.name,
635
- namespace: output(args.namespace).apply(mapNamespaceLikeToNamespaceName),
636
- annotations: args.annotations
637
- },
638
- spec: {
639
- gatewayClassName: output(args.gateway).gatewayClassName,
640
- listeners: [
641
- {
642
- name: "https",
643
- port: output(args.gateway).httpsListenerPort,
644
- protocol: "HTTPS",
645
- hostname: args.fqdn,
646
- tls: {
647
- mode: "Terminate",
648
- certificateRefs: [{ name: args.fqdn }]
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
- { provider: args.provider }
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.4.6",
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.4.6",
30
- "@highstate/common": "^0.4.6",
31
- "@highstate/contract": "^0.4.6",
32
- "@highstate/gateway-api": "^0.4.6",
33
- "@highstate/pulumi": "^0.4.6",
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": "dbb1d8125884cfe3a9d95df2e0710333c01c7edf"
46
+ "gitHead": "4ee64a0eebcb655746fa591ebf8e82199cf9e5d5"
47
47
  }