fix(interfaces): Remove deprecated deployment directive and update related interfaces
This commit is contained in:
parent
79db68a4a2
commit
b74ce05845
@ -1,5 +1,13 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2024-11-18 - 4.3.21 - fix(interfaces)
|
||||||
|
Remove deprecated deployment directive and update related interfaces
|
||||||
|
|
||||||
|
- Removed IDeploymentDirective from data and requests.
|
||||||
|
- Updated IDeployment to remove references to directives.
|
||||||
|
- Changed IRequest_Any_Cloudly_GetClusterConfig to return services instead of deployment directives.
|
||||||
|
- Removed deploymentDirectiveIds from IService data structure.
|
||||||
|
|
||||||
## 2024-11-18 - 4.3.20 - fix(apiclient)
|
## 2024-11-18 - 4.3.20 - fix(apiclient)
|
||||||
Ensure mandatory parameter in CloudlyApiClient constructor
|
Ensure mandatory parameter in CloudlyApiClient constructor
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@serve.zone/cloudly',
|
name: '@serve.zone/cloudly',
|
||||||
version: '4.3.20',
|
version: '4.3.21',
|
||||||
description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.'
|
description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.'
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import * as plugins from '../plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* results from a DeploymentDirective
|
* a deployment happens when a service is deployed
|
||||||
* tracks the status of a deployment
|
* tracks the status of a deployment
|
||||||
*/
|
*/
|
||||||
export interface IDeployment {
|
export interface IDeployment {
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
import type { IServiceRessources } from "./docker.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* used for tellilng a cluster about a disired deployment
|
|
||||||
* and specifies its configuration
|
|
||||||
*/
|
|
||||||
export interface IDeploymentDirective {
|
|
||||||
id: string;
|
|
||||||
name: string;
|
|
||||||
imageClaim: string;
|
|
||||||
/**
|
|
||||||
* ports to be exposed
|
|
||||||
* hostPort is the port on the host
|
|
||||||
* containerPort is the port on the container
|
|
||||||
*/
|
|
||||||
ports: { hostPort: number; containerPort: number }[];
|
|
||||||
environment: { [key: string]: string };
|
|
||||||
resources?: IServiceRessources;
|
|
||||||
}
|
|
@ -2,7 +2,6 @@ export * from './cloudlyconfig.js';
|
|||||||
export * from './cluster.js';
|
export * from './cluster.js';
|
||||||
export * from './config.js';
|
export * from './config.js';
|
||||||
export * from './deployment.js';
|
export * from './deployment.js';
|
||||||
export * from './deploymentdirective.js';
|
|
||||||
export * from './docker.js';
|
export * from './docker.js';
|
||||||
export * from './env.js';
|
export * from './env.js';
|
||||||
export * from './event.js';
|
export * from './event.js';
|
||||||
|
@ -21,6 +21,5 @@ export interface IService {
|
|||||||
protocol?: 'http' | 'https' | 'ssh';
|
protocol?: 'http' | 'https' | 'ssh';
|
||||||
}[];
|
}[];
|
||||||
deploymentIds: string[];
|
deploymentIds: string[];
|
||||||
deploymentDirectiveIds: string[];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@ import * as clusterInterfaces from '../data/cluster.js';
|
|||||||
import * as serverInterfaces from '../data/server.js';
|
import * as serverInterfaces from '../data/server.js';
|
||||||
import * as userInterfaces from '../data/user.js';
|
import * as userInterfaces from '../data/user.js';
|
||||||
import type { IService } from '../data/service.js';
|
import type { IService } from '../data/service.js';
|
||||||
import type { IDeploymentDirective } from '../data/deploymentdirective.js';
|
|
||||||
|
|
||||||
export interface IRequest_Any_Cloudly_GetServerConfig
|
export interface IRequest_Any_Cloudly_GetServerConfig
|
||||||
extends plugins.typedrequestInterfaces.implementsTR<
|
extends plugins.typedrequestInterfaces.implementsTR<
|
||||||
@ -31,7 +30,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|||||||
};
|
};
|
||||||
response: {
|
response: {
|
||||||
configData: clusterInterfaces.ICluster;
|
configData: clusterInterfaces.ICluster;
|
||||||
deploymentDirectives: IDeploymentDirective[];
|
services: IService[];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +42,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|||||||
method: 'pushClusterConfig';
|
method: 'pushClusterConfig';
|
||||||
request: {
|
request: {
|
||||||
configData: clusterInterfaces.ICluster;
|
configData: clusterInterfaces.ICluster;
|
||||||
deploymentDirectives: IDeploymentDirective[];
|
services: IService[];
|
||||||
};
|
};
|
||||||
response: {};
|
response: {};
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,7 @@ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.im
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* gets a single image
|
* gets a single image
|
||||||
|
* authentication can happen via imageClaim or identity
|
||||||
*/
|
*/
|
||||||
export interface IRequest_GetImage extends plugins.typedrequestInterfaces.implementsTR<
|
export interface IRequest_GetImage extends plugins.typedrequestInterfaces.implementsTR<
|
||||||
plugins.typedrequestInterfaces.ITypedRequest,
|
plugins.typedrequestInterfaces.ITypedRequest,
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@serve.zone/cloudly',
|
name: '@serve.zone/cloudly',
|
||||||
version: '4.3.20',
|
version: '4.3.21',
|
||||||
description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.'
|
description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user