@crossdelta/infrastructure 0.7.2 → 0.7.4
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 +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -325,7 +325,7 @@ function deployNginxIngress(provider, config = {}) {
|
|
|
325
325
|
},
|
|
326
326
|
"proxy-buffer-size": "16k",
|
|
327
327
|
"worker-processes": "auto",
|
|
328
|
-
"keep-alive": "
|
|
328
|
+
"keep-alive": "55",
|
|
329
329
|
...config.nginxConfig
|
|
330
330
|
},
|
|
331
331
|
admissionWebhooks: {
|
|
@@ -1146,13 +1146,13 @@ function createDOKSCluster(config) {
|
|
|
1146
1146
|
}, {
|
|
1147
1147
|
ignoreChanges: ["version"]
|
|
1148
1148
|
});
|
|
1149
|
-
const kubeconfig = cluster.
|
|
1150
|
-
const firstConfig =
|
|
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
|
@@ -231,7 +231,7 @@ function deployNginxIngress(provider, config = {}) {
|
|
|
231
231
|
},
|
|
232
232
|
"proxy-buffer-size": "16k",
|
|
233
233
|
"worker-processes": "auto",
|
|
234
|
-
"keep-alive": "
|
|
234
|
+
"keep-alive": "55",
|
|
235
235
|
...config.nginxConfig
|
|
236
236
|
},
|
|
237
237
|
admissionWebhooks: {
|
|
@@ -1052,13 +1052,13 @@ function createDOKSCluster(config) {
|
|
|
1052
1052
|
}, {
|
|
1053
1053
|
ignoreChanges: ["version"]
|
|
1054
1054
|
});
|
|
1055
|
-
const kubeconfig = cluster.
|
|
1056
|
-
const firstConfig =
|
|
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
|
});
|