diff --git a/changelog.md b/changelog.md index 6ba66ca..2ea0eb1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2024-12-22 - 4.7.0 - feat(apiclient) +Add method to flatten secret bundles into key-value objects. + +- SecretBundle: Implemented toFlatKeyValueObject method to flatten secret groups into key-value pairs. +- Removed stale SecretManager class from apiclient. + ## 2024-12-22 - 4.6.0 - feat(cloudlyapiclient) Extend CloudlyApiClient with cluster, secretbundle, and secretgroup methods diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 9836656..53ff193 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/cloudly', - version: '4.6.0', + version: '4.7.0', description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.' } diff --git a/ts_apiclient/classes.secretbundle.ts b/ts_apiclient/classes.secretbundle.ts index 18d3852..5783c84 100644 --- a/ts_apiclient/classes.secretbundle.ts +++ b/ts_apiclient/classes.secretbundle.ts @@ -93,4 +93,10 @@ export class SecretBundle implements plugins.servezoneInterfaces.data.ISecretBun plugins.smartexpect.expect(response.ok).toBeTrue(); return null; } + + public async toFlatKeyValueObject() { + return { + // TODO: implement + }; + } } \ No newline at end of file diff --git a/ts_apiclient/classes.secretmanager.ts b/ts_apiclient/classes.secretmanager.ts deleted file mode 100644 index 6d49a90..0000000 --- a/ts_apiclient/classes.secretmanager.ts +++ /dev/null @@ -1,27 +0,0 @@ -import * as plugins from './plugins.js'; -import type { CloudlyApiClient } from './classes.cloudlyapiclient.js'; - -import { SecretBundle } from './classes.secretbundle.js'; -import { SecretGroup } from './classes.secretgroup.js'; - -export class SecretManager { - // INSTANCE - cloudlyClientRef: CloudlyApiClient; - - constructor(cloudlyClientRef: CloudlyApiClient) { - this.cloudlyClientRef = cloudlyClientRef; - } - - public async getSecretGroupsAndBundles() { - - } - - /** - * The secret group has a secret bundle. - * This function essentially returns the secret bundle as a flat object. - * In other words, it resolves secret groups and - */ - public async getSecretBundleAsFlatObject(environmentArg: string = 'production') { - - } -} diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 9836656..53ff193 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/cloudly', - version: '4.6.0', + version: '4.7.0', description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.' }