From afe9a1768a456de36486373da610febcc5ac638a Mon Sep 17 00:00:00 2001 From: Robyn MacCallum Date: Fri, 14 Jun 2024 16:54:52 -0400 Subject: [PATCH] [SM-1305] Add Kubernetes and Rust to the integrations page (#9611) * Add Kubernetes and Rust to the integrations page * Fix integrations page tests --- .../integrations/kubernetes.svg | 11 +++++ .../secrets-manager/sdks/rust-white.svg | 48 +++++++++++++++++++ .../src/images/secrets-manager/sdks/rust.svg | 48 +++++++++++++++++++ apps/web/src/locales/en/messages.json | 6 +++ .../integrations.component.spec.ts | 4 +- .../integrations/integrations.component.ts | 16 +++++++ 6 files changed, 131 insertions(+), 2 deletions(-) create mode 100644 apps/web/src/images/secrets-manager/integrations/kubernetes.svg create mode 100644 apps/web/src/images/secrets-manager/sdks/rust-white.svg create mode 100644 apps/web/src/images/secrets-manager/sdks/rust.svg diff --git a/apps/web/src/images/secrets-manager/integrations/kubernetes.svg b/apps/web/src/images/secrets-manager/integrations/kubernetes.svg new file mode 100644 index 0000000000..00ad2b72b6 --- /dev/null +++ b/apps/web/src/images/secrets-manager/integrations/kubernetes.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/apps/web/src/images/secrets-manager/sdks/rust-white.svg b/apps/web/src/images/secrets-manager/sdks/rust-white.svg new file mode 100644 index 0000000000..ce3f3f9104 --- /dev/null +++ b/apps/web/src/images/secrets-manager/sdks/rust-white.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web/src/images/secrets-manager/sdks/rust.svg b/apps/web/src/images/secrets-manager/sdks/rust.svg new file mode 100644 index 0000000000..a099c1519c --- /dev/null +++ b/apps/web/src/images/secrets-manager/sdks/rust.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web/src/locales/en/messages.json b/apps/web/src/locales/en/messages.json index 5b9e7c9c82..1d0e882b17 100644 --- a/apps/web/src/locales/en/messages.json +++ b/apps/web/src/locales/en/messages.json @@ -8180,12 +8180,18 @@ "setUpGithubActions": { "message": "Set up Github Actions" }, + "setUpKubernetes": { + "message": "Set up Kubernetes" + }, "setUpGitlabCICD": { "message": "Set up GitLab CI/CD" }, "setUpAnsible": { "message": "Set up Ansible" }, + "rustSDKRepo": { + "message": "View Rust repository" + }, "cSharpSDKRepo": { "message": "View C# repository" }, diff --git a/bitwarden_license/bit-web/src/app/secrets-manager/integrations/integrations.component.spec.ts b/bitwarden_license/bit-web/src/app/secrets-manager/integrations/integrations.component.spec.ts index 10fbaa1f3f..6c8ea28bc2 100644 --- a/bitwarden_license/bit-web/src/app/secrets-manager/integrations/integrations.component.spec.ts +++ b/bitwarden_license/bit-web/src/app/secrets-manager/integrations/integrations.component.spec.ts @@ -68,10 +68,10 @@ describe("IntegrationsComponent", () => { (integrationList.componentInstance as IntegrationGridComponent).integrations.map( (i) => i.name, ), - ).toEqual(["GitHub Actions", "GitLab CI/CD", "Ansible"]); + ).toEqual(["GitHub Actions", "GitLab CI/CD", "Ansible", "Kubernetes Operator"]); expect( (sdkList.componentInstance as IntegrationGridComponent).integrations.map((i) => i.name), - ).toEqual(["C#", "C++", "Go", "Java", "JS WebAssembly", "php", "Python", "Ruby"]); + ).toEqual(["Rust", "C#", "C++", "Go", "Java", "JS WebAssembly", "php", "Python", "Ruby"]); }); }); diff --git a/bitwarden_license/bit-web/src/app/secrets-manager/integrations/integrations.component.ts b/bitwarden_license/bit-web/src/app/secrets-manager/integrations/integrations.component.ts index f11048b6a3..9e846d4503 100644 --- a/bitwarden_license/bit-web/src/app/secrets-manager/integrations/integrations.component.ts +++ b/bitwarden_license/bit-web/src/app/secrets-manager/integrations/integrations.component.ts @@ -14,6 +14,14 @@ export class IntegrationsComponent { constructor(i18nService: I18nService) { this.integrationsAndSdks = [ + { + name: "Rust", + linkText: i18nService.t("rustSDKRepo"), + linkURL: "https://github.com/bitwarden/sdk", + image: "../../../../../../../images/secrets-manager/sdks/rust.svg", + imageDarkMode: "../../../../../../../images/secrets-manager/sdks/rust-white.svg", + type: IntegrationType.SDK, + }, { name: "GitHub Actions", linkText: i18nService.t("setUpGithubActions"), @@ -94,6 +102,14 @@ export class IntegrationsComponent { image: "../../../../../../../images/secrets-manager/sdks/ruby.png", type: IntegrationType.SDK, }, + { + name: "Kubernetes Operator", + linkText: i18nService.t("setUpKubernetes"), + linkURL: "https://bitwarden.com/help/secrets-manager-kubernetes-operator/", + image: "../../../../../../../images/secrets-manager/integrations/kubernetes.svg", + type: IntegrationType.Integration, + newBadgeExpiration: "2024-8-12", + }, ]; }