fix(apiclient): Ensure mandatory parameter in CloudlyApiClient constructor

This commit is contained in:
Philipp Kunz 2024-11-18 17:48:26 +01:00
parent fe6bfc0a83
commit 5a3ddcf39b
5 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## 2024-11-18 - 4.3.20 - fix(apiclient)
Ensure mandatory parameter in CloudlyApiClient constructor
- Made the 'optionsArg' parameter mandatory in the constructor of CloudlyApiClient class.
## 2024-11-18 - 4.3.19 - fix(docker)
Fix improper Docker push command preventing push to the correct registry.

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@serve.zone/cloudly',
version: '4.3.19',
version: '4.3.20',
description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.'
}

View File

@ -20,7 +20,7 @@ export class CloudlyApiClient {
plugins.servezoneInterfaces.requests.server.IRequest_TriggerServerAction['request']
>();
constructor(optionsArg?: {
constructor(optionsArg: {
registerAs: TClientType;
cloudlyUrl?: string;
}) {

View File

@ -8,6 +8,11 @@ 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;

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@serve.zone/cloudly',
version: '4.3.19',
version: '4.3.20',
description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.'
}