From 039fe7f08e8eeefb7c846f3805ef8e5ef121e026 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Fri, 18 Aug 2023 12:49:33 +0200 Subject: [PATCH 1/2] Release stackablectl 1.0.0-rc1 --- Cargo.lock | 2 +- Cargo.toml | 5 ++++ extra/man/stackablectl.1 | 4 +-- rust/stackablectl/Cargo.toml | 3 ++- web/src/api/schema.d.ts | 48 ++++++++++++++++-------------------- 5 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bfe92db7..b1575899 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2662,7 +2662,7 @@ dependencies = [ [[package]] name = "stackablectl" -version = "0.0.0-dev" +version = "1.0.0-rc1" dependencies = [ "clap", "clap_complete", diff --git a/Cargo.toml b/Cargo.toml index b561c94d..bce6cc01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,11 @@ members = ["rust/*", "web", "."] [workspace.package] +# Currently we version stackablectl separately from the other tools in this repo, +# as we want to already ship a binary to enable easy testing. +# We need to decide on a versioning strategy (e.g. version stackable-cokpit +# using semver or use SDP releases) in the future. Once we have the decision +# we can consolidate the stackablectl version. version = "0.0.0-dev" authors = ["Stackable GmbH "] license = "OSL-3.0" diff --git a/extra/man/stackablectl.1 b/extra/man/stackablectl.1 index 5b08a9f8..e103641d 100644 --- a/extra/man/stackablectl.1 +++ b/extra/man/stackablectl.1 @@ -1,6 +1,6 @@ .ie \n(.g .ds Aq \(aq .el .ds Aq ' -.TH stackablectl 1 "stackablectl 0.0.0-dev" +.TH stackablectl 1 "stackablectl 1.0.0-rc1" .SH NAME stackablectl \- Command line tool to interact with the Stackable Data Platform .SH SYNOPSIS @@ -95,6 +95,6 @@ Interact with locally cached files stackablectl\-help(1) Print this message or the help of the given subcommand(s) .SH VERSION -v0.0.0\-dev +v1.0.0\-rc1 .SH AUTHORS Stackable GmbH diff --git a/rust/stackablectl/Cargo.toml b/rust/stackablectl/Cargo.toml index 00988850..f5ac572d 100644 --- a/rust/stackablectl/Cargo.toml +++ b/rust/stackablectl/Cargo.toml @@ -1,7 +1,8 @@ [package] name = "stackablectl" description = "Command line tool to interact with the Stackable Data Platform" -version.workspace = true +# See /Cargo.toml +version = "1.0.0-rc1" authors.workspace = true license.workspace = true edition.workspace = true diff --git a/web/src/api/schema.d.ts b/web/src/api/schema.d.ts index 131d4758..71b79243 100644 --- a/web/src/api/schema.d.ts +++ b/web/src/api/schema.d.ts @@ -12,14 +12,14 @@ type OneOf = T extends [infer Only] ? Only : T extends [infer A export interface paths { "/demos": { /** - * Retrieves all demos. + * Retrieves all demos. * @description Retrieves all demos. */ get: operations["get_demos"]; }; "/demos/{name}": { /** - * Retrieves one demo identified by `name`. + * Retrieves one demo identified by `name`. * @description Retrieves one demo identified by `name`. */ get: operations["get_demo"]; @@ -32,21 +32,21 @@ export interface paths { }; "/releases": { /** - * Retrieves all releases. + * Retrieves all releases. * @description Retrieves all releases. */ get: operations["get_releases"]; }; "/releases/{name}": { /** - * Retrieves one release identified by `name`. + * Retrieves one release identified by `name`. * @description Retrieves one release identified by `name`. */ get: operations["get_release"]; }; "/stacklets": { /** - * Retrieves all stacklets. + * Retrieves all stacklets. * @description Retrieves all stacklets. */ get: operations["get_stacklets"]; @@ -64,18 +64,18 @@ export interface components { /** @description An optional link to a documentation page */ documentation?: string | null; /** @description A variable number of labels (tags) */ - labels?: string[]; + labels?: (string)[]; /** @description A variable number of Helm or YAML manifests */ - manifests?: components["schemas"]["ManifestSpec"][]; + manifests?: (components["schemas"]["ManifestSpec"])[]; /** @description A variable number of supported parameters */ - parameters?: components["schemas"]["Parameter"][]; + parameters?: (components["schemas"]["Parameter"])[]; /** @description The name of the underlying stack */ stackableStack: string; /** * @description Supported namespaces this demo can run in. An empty list indicates that * the demo can run in any namespace. */ - supportedNamespaces?: string[]; + supportedNamespaces?: (string)[]; }; DisplayCondition: { condition: string; @@ -116,7 +116,7 @@ export interface components { SessionToken: string; Stacklet: { /** @description Multiple cluster conditions. */ - conditions: components["schemas"]["DisplayCondition"][]; + conditions: (components["schemas"]["DisplayCondition"])[]; /** * @description Endpoint addresses the product is reachable at. * The key is the service name (e.g. `web-ui`), the value is the URL. @@ -144,7 +144,7 @@ export type external = Record; export interface operations { /** - * Retrieves all demos. + * Retrieves all demos. * @description Retrieves all demos. */ get_demos: { @@ -152,17 +152,15 @@ export interface operations { /** @description Retrieving a list of demos succeeded */ 200: { content: { - "application/json": components["schemas"]["DemoSpecV2"][]; + "application/json": (components["schemas"]["DemoSpecV2"])[]; }; }; /** @description Retrieving a list of demos failed */ - 404: { - content: never; - }; + 404: never; }; }; /** - * Retrieves one demo identified by `name`. + * Retrieves one demo identified by `name`. * @description Retrieves one demo identified by `name`. */ get_demo: { @@ -174,9 +172,7 @@ export interface operations { }; }; /** @description Retrieving the demo with 'name' failed */ - 404: { - content: never; - }; + 404: never; }; }; log_in: { @@ -203,7 +199,7 @@ export interface operations { }; }; /** - * Retrieves all releases. + * Retrieves all releases. * @description Retrieves all releases. */ get_releases: { @@ -211,17 +207,15 @@ export interface operations { /** @description Retrieving a list of releases succeeded */ 200: { content: { - "application/json": components["schemas"]["ReleaseSpec"][]; + "application/json": (components["schemas"]["ReleaseSpec"])[]; }; }; /** @description Retrieving a list of releases failed */ - 404: { - content: never; - }; + 404: never; }; }; /** - * Retrieves one release identified by `name`. + * Retrieves one release identified by `name`. * @description Retrieves one release identified by `name`. */ get_release: { @@ -229,14 +223,14 @@ export interface operations { }; }; /** - * Retrieves all stacklets. + * Retrieves all stacklets. * @description Retrieves all stacklets. */ get_stacklets: { responses: { 200: { content: { - "application/json": components["schemas"]["Stacklet"][]; + "application/json": (components["schemas"]["Stacklet"])[]; }; }; }; From 7833d699f13bbbf1da33047cb1fd00af5038919d Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Fri, 18 Aug 2023 15:10:56 +0200 Subject: [PATCH 2/2] run pre-commit hooks --- web/src/api/schema.d.ts | 48 +++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/web/src/api/schema.d.ts b/web/src/api/schema.d.ts index 182c8725..66f963b4 100644 --- a/web/src/api/schema.d.ts +++ b/web/src/api/schema.d.ts @@ -12,14 +12,14 @@ type OneOf = T extends [infer Only] ? Only : T extends [infer A export interface paths { "/demos": { /** - * Retrieves all demos. + * Retrieves all demos. * @description Retrieves all demos. */ get: operations["get_demos"]; }; "/demos/{name}": { /** - * Retrieves one demo identified by `name`. + * Retrieves one demo identified by `name`. * @description Retrieves one demo identified by `name`. */ get: operations["get_demo"]; @@ -32,21 +32,21 @@ export interface paths { }; "/releases": { /** - * Retrieves all releases. + * Retrieves all releases. * @description Retrieves all releases. */ get: operations["get_releases"]; }; "/releases/{name}": { /** - * Retrieves one release identified by `name`. + * Retrieves one release identified by `name`. * @description Retrieves one release identified by `name`. */ get: operations["get_release"]; }; "/stacklets": { /** - * Retrieves all stacklets. + * Retrieves all stacklets. * @description Retrieves all stacklets. */ get: operations["get_stacklets"]; @@ -64,18 +64,18 @@ export interface components { /** @description An optional link to a documentation page */ documentation?: string | null; /** @description A variable number of labels (tags) */ - labels?: (string)[]; + labels?: string[]; /** @description A variable number of Helm or YAML manifests */ - manifests?: (components["schemas"]["ManifestSpec"])[]; + manifests?: components["schemas"]["ManifestSpec"][]; /** @description A variable number of supported parameters */ - parameters?: (components["schemas"]["Parameter"])[]; + parameters?: components["schemas"]["Parameter"][]; /** @description The name of the underlying stack */ stackableStack: string; /** * @description Supported namespaces this demo can run in. An empty list indicates that * the demo can run in any namespace. */ - supportedNamespaces?: (string)[]; + supportedNamespaces?: string[]; }; DisplayCondition: { condition: string; @@ -116,7 +116,7 @@ export interface components { SessionToken: string; Stacklet: { /** @description Multiple cluster conditions. */ - conditions: (components["schemas"]["DisplayCondition"])[]; + conditions: components["schemas"]["DisplayCondition"][]; /** * @description Endpoint addresses the product is reachable at. * The key is the service name (e.g. `web-ui`), the value is the URL. @@ -144,7 +144,7 @@ export type external = Record; export interface operations { /** - * Retrieves all demos. + * Retrieves all demos. * @description Retrieves all demos. */ get_demos: { @@ -152,15 +152,17 @@ export interface operations { /** @description Retrieving a list of demos succeeded */ 200: { content: { - "application/json": (components["schemas"]["DemoSpecV2"])[]; + "application/json": components["schemas"]["DemoSpecV2"][]; }; }; /** @description Retrieving a list of demos failed */ - 404: never; + 404: { + content: never; + }; }; }; /** - * Retrieves one demo identified by `name`. + * Retrieves one demo identified by `name`. * @description Retrieves one demo identified by `name`. */ get_demo: { @@ -172,7 +174,9 @@ export interface operations { }; }; /** @description Retrieving the demo with 'name' failed */ - 404: never; + 404: { + content: never; + }; }; }; log_in: { @@ -199,7 +203,7 @@ export interface operations { }; }; /** - * Retrieves all releases. + * Retrieves all releases. * @description Retrieves all releases. */ get_releases: { @@ -207,15 +211,17 @@ export interface operations { /** @description Retrieving a list of releases succeeded */ 200: { content: { - "application/json": (components["schemas"]["ReleaseSpec"])[]; + "application/json": components["schemas"]["ReleaseSpec"][]; }; }; /** @description Retrieving a list of releases failed */ - 404: never; + 404: { + content: never; + }; }; }; /** - * Retrieves one release identified by `name`. + * Retrieves one release identified by `name`. * @description Retrieves one release identified by `name`. */ get_release: { @@ -223,14 +229,14 @@ export interface operations { }; }; /** - * Retrieves all stacklets. + * Retrieves all stacklets. * @description Retrieves all stacklets. */ get_stacklets: { responses: { 200: { content: { - "application/json": (components["schemas"]["Stacklet"])[]; + "application/json": components["schemas"]["Stacklet"][]; }; }; };