@skyramp/skyramp 0.4.96 → 0.4.97
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/lib/dev-darwin-amd64.dylib +0 -0
- package/lib/dev-darwin-arm64.dylib +0 -0
- package/lib/dev-linux-386.so +0 -0
- package/lib/dev-linux-amd64.so +0 -0
- package/lib/dev-windows-amd64.dll +0 -0
- package/package.json +1 -1
- package/src/classes/SkyrampClient.d.ts +2 -0
- package/src/classes/SkyrampClient.js +0 -3
|
Binary file
|
|
Binary file
|
package/lib/dev-linux-386.so
CHANGED
|
Binary file
|
package/lib/dev-linux-amd64.so
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -32,6 +32,8 @@ export declare class SkyrampClient {
|
|
|
32
32
|
removeLocal(): Promise<void>;
|
|
33
33
|
removeCluster(clusterName?: string): Promise<void>;
|
|
34
34
|
mockerApply(namespace: string, kubePath: string, kubeContext: string, clusterName: string, address: string, endpoint: Endpoint): Promise<void>;
|
|
35
|
+
deploySkyrampWorker(namespace?: string, workerImage?: string, localImage?: boolean, kubePath?: string, kubeContext?: string, clusterName?: string): Promise<void>
|
|
36
|
+
deleteSkyrampWorker(namespace?: string, kubePath:string, kubeContext?: string, clusterName?: string): Promise<void>
|
|
35
37
|
runDockerSkyrampWorker(workerImage?:string, workerTag?:string, hostPost?:int, targetNetworkName?:string): Promise<void>
|
|
36
38
|
removeDockerSkyrampWorker() : Promise<void>
|
|
37
39
|
mockerApplyV1(options: MockerApplyV1Options): Promise<void>;
|
|
@@ -262,9 +262,6 @@ class SkyrampClient {
|
|
|
262
262
|
* @throws {Error} - If there is no cluster to deploy the worker to.
|
|
263
263
|
*/
|
|
264
264
|
async deploySkyrampWorker(namespace, workerImage = '', localImage = false, kubePath='', kubeContext='', clusterName='') {
|
|
265
|
-
if (this.kubeConfigPath === null) {
|
|
266
|
-
throw new Error('No cluster to deploy worker to.');
|
|
267
|
-
}
|
|
268
265
|
return new Promise((resolve, reject) => {
|
|
269
266
|
deploySkyrampWorkerWrapper.async(namespace, kubePath, kubeContext, clusterName, workerImage, localImage, (err, res) => {
|
|
270
267
|
if (err) {
|