@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.
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyramp/skyramp",
3
- "version": "0.4.96",
3
+ "version": "0.4.97",
4
4
  "description": "module for leveraging skyramp cli functionality",
5
5
  "scripts": {
6
6
  "lint": "eslint 'src/**/*.js' 'src/**/*.ts' --fix",
@@ -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) {