Skip to content

Commit

Permalink
adding coming soon
Browse files Browse the repository at this point in the history
  • Loading branch information
opauloh committed Apr 6, 2023
1 parent 725883d commit 0d2e5c1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugins/cloud_security_posture/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ export const CSP_RULE_TEMPLATE_SAVED_OBJECT_TYPE = 'csp-rule-template';

export const CLOUDBEAT_VANILLA = 'cloudbeat/cis_k8s';
export const CLOUDBEAT_EKS = 'cloudbeat/cis_eks';
export const CLOUDBEAT_AKS = 'cloudbeat/cis_aks';
export const CLOUDBEAT_GKE = 'cloudbeat/cis_gke';
export const CLOUDBEAT_AWS = 'cloudbeat/cis_aws';
export const CLOUDBEAT_GCP = 'cloudbeat/cis_gcp';
export const CLOUDBEAT_AZURE = 'cloudbeat/cis_azure';
Expand Down
41 changes: 38 additions & 3 deletions x-pack/plugins/cloud_security_posture/public/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ import {
VULN_MGMT_POLICY_TEMPLATE,
CLOUDBEAT_VULN_MGMT_GCP,
CLOUDBEAT_VULN_MGMT_AZURE,
CLOUDBEAT_AKS,
CLOUDBEAT_GKE,
} from '../../common/constants';

import eksLogo from '../assets/icons/cis_eks_logo.svg';
import aksLogo from '../assets/icons/cis_aks_logo.svg';
import gkeLogo from '../assets/icons/cis_gke_logo.svg';

export const statusColors = {
passed: euiThemeVars.euiColorVis0,
Expand All @@ -48,7 +52,7 @@ export interface CloudPostureIntegrationProps {
name: string;
shortName: string;
options: Array<{
type: PostureInput;
type: PostureInput | typeof CLOUDBEAT_AKS | typeof CLOUDBEAT_GKE;
name: string;
benchmark: string;
disabled?: boolean;
Expand Down Expand Up @@ -119,7 +123,7 @@ export const cloudPostureIntegrations: CloudPostureIntegrations = {
{
type: CLOUDBEAT_VANILLA,
name: i18n.translate('xpack.csp.kspmIntegration.vanillaOption.nameTitle', {
defaultMessage: 'Self-Managed/Vanilla Kubernetes',
defaultMessage: 'Self-Managed',
}),
benchmark: i18n.translate('xpack.csp.kspmIntegration.vanillaOption.benchmarkTitle', {
defaultMessage: 'CIS Kubernetes',
Expand All @@ -129,12 +133,43 @@ export const cloudPostureIntegrations: CloudPostureIntegrations = {
{
type: CLOUDBEAT_EKS,
name: i18n.translate('xpack.csp.kspmIntegration.eksOption.nameTitle', {
defaultMessage: 'EKS (Elastic Kubernetes Service)',
defaultMessage: 'EKS',
}),
benchmark: i18n.translate('xpack.csp.kspmIntegration.eksOption.benchmarkTitle', {
defaultMessage: 'CIS EKS',
}),
icon: eksLogo,
tooltip: i18n.translate('xpack.csp.kspmIntegration.aksOption.tooltipContent', {
defaultMessage: 'Elastic Kubernetes Service',
}),
},
{
type: CLOUDBEAT_AKS,
name: i18n.translate('xpack.csp.kspmIntegration.aksOption.nameTitle', {
defaultMessage: 'AKS',
}),
benchmark: i18n.translate('xpack.csp.kspmIntegration.aksOption.benchmarkTitle', {
defaultMessage: 'CIS AKS',
}),
disabled: true,
icon: aksLogo,
tooltip: i18n.translate('xpack.csp.kspmIntegration.aksOption.tooltipContent', {
defaultMessage: 'Azure Kubernetes Service - Coming soon',
}),
},
{
type: CLOUDBEAT_GKE,
name: i18n.translate('xpack.csp.kspmIntegration.gkeOption.nameTitle', {
defaultMessage: 'GKE',
}),
benchmark: i18n.translate('xpack.csp.kspmIntegration.gkeOption.benchmarkTitle', {
defaultMessage: 'CIS GKE',
}),
disabled: true,
icon: gkeLogo,
tooltip: i18n.translate('xpack.csp.kspmIntegration.gkeOption.tooltipContent', {
defaultMessage: 'Google Kubernetes Engine - Coming soon',
}),
},
],
},
Expand Down

0 comments on commit 0d2e5c1

Please sign in to comment.