@crossdelta/infrastructure 0.7.1 → 0.7.3

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.cjs CHANGED
@@ -323,7 +323,7 @@ function deployNginxIngress(provider, config = {}) {
323
323
  "use-proxy-protocol": "true",
324
324
  "real-ip-header": "proxy_protocol"
325
325
  },
326
- "proxy-buffer-size": "8k",
326
+ "proxy-buffer-size": "16k",
327
327
  "worker-processes": "auto",
328
328
  "keep-alive": "75",
329
329
  ...config.nginxConfig
@@ -1146,13 +1146,13 @@ function createDOKSCluster(config) {
1146
1146
  }, {
1147
1147
  ignoreChanges: ["version"]
1148
1148
  });
1149
- const kubeconfig = cluster.kubeConfigs.apply((configs) => {
1150
- const firstConfig = configs?.[0];
1149
+ const kubeconfig = cluster.name.apply((clusterName) => digitalocean.getKubernetesCluster({ name: clusterName }).then((c) => {
1150
+ const firstConfig = c.kubeConfigs?.[0];
1151
1151
  if (!firstConfig) {
1152
1152
  throw new Error("No kubeconfig available for cluster");
1153
1153
  }
1154
1154
  return firstConfig.rawConfig;
1155
- });
1155
+ }));
1156
1156
  const provider = new k8s5.Provider(`${config.name}-k8s-provider`, {
1157
1157
  kubeconfig
1158
1158
  });
package/dist/index.js CHANGED
@@ -229,7 +229,7 @@ function deployNginxIngress(provider, config = {}) {
229
229
  "use-proxy-protocol": "true",
230
230
  "real-ip-header": "proxy_protocol"
231
231
  },
232
- "proxy-buffer-size": "8k",
232
+ "proxy-buffer-size": "16k",
233
233
  "worker-processes": "auto",
234
234
  "keep-alive": "75",
235
235
  ...config.nginxConfig
@@ -1052,13 +1052,13 @@ function createDOKSCluster(config) {
1052
1052
  }, {
1053
1053
  ignoreChanges: ["version"]
1054
1054
  });
1055
- const kubeconfig = cluster.kubeConfigs.apply((configs) => {
1056
- const firstConfig = configs?.[0];
1055
+ const kubeconfig = cluster.name.apply((clusterName) => digitalocean.getKubernetesCluster({ name: clusterName }).then((c) => {
1056
+ const firstConfig = c.kubeConfigs?.[0];
1057
1057
  if (!firstConfig) {
1058
1058
  throw new Error("No kubeconfig available for cluster");
1059
1059
  }
1060
1060
  return firstConfig.rawConfig;
1061
- });
1061
+ }));
1062
1062
  const provider = new k8s5.Provider(`${config.name}-k8s-provider`, {
1063
1063
  kubeconfig
1064
1064
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossdelta/infrastructure",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -35,7 +35,7 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@crossdelta/cloudevents": "0.6.8"
38
+ "@crossdelta/cloudevents": "0.7.2"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@pulumi/digitalocean": "^4.0.0",