Skip to content

Commit 2faf051

Browse files
committed
feat(UI-1551): add Kubernetes integration feature flag
1 parent 531bf94 commit 2faf051

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/constants/featureFlags.constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export const featureFlags = {
88
microsoftHideIntegration: import.meta.env.VITE_MICROSOFT_HIDE_INTEGRATION,
99
sendDotEmptyTriggerFilter: import.meta.env.VITE_SEND_DOT_EMPTY_TRIGGER_FILTER,
1010
displayChatbot: import.meta.env.VITE_DISPLAY_CHATBOT,
11+
displayKubernetesIntegration: import.meta.env.VITE_DISPLAY_KUBERNETES_INTEGRATION,
1112
};

src/enums/components/connection.enum.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ export const IntegrationsMap: Record<Integrations, IntegrationSelectOption> = {
233233
const shouldHideIntegration: Partial<Record<Integrations, boolean>> = {
234234
[Integrations.discord]: !featureFlags.displayDiscordIntegration,
235235
[Integrations.microsoft_teams]: featureFlags.microsoftHideIntegration,
236+
[Integrations.kubernetes]: !featureFlags.displayKubernetesIntegration,
236237
};
237238

238239
export const fitleredIntegrationsMap = Object.fromEntries(

src/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ interface ImportMetaEnv {
2525
readonly VITE_DISPLAY_CHATBOT: boolean;
2626
readonly VITE_AKBOT_ORIGIN: string;
2727
readonly VITE_AKBOT_URL: string;
28+
readonly VITE_DISPLAY_KUBERNETES_INTEGRATION: boolean;
2829
}
2930

3031
interface ImportMeta {

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default defineConfig({
6060
"import.meta.env.VITE_DISPLAY_CHATBOT": process.env.VITE_DISPLAY_CHATBOT,
6161
"import.meta.env.VITE_AKBOT_URL": JSON.stringify(process.env.VITE_AKBOT_URL),
6262
"import.meta.env.VITE_AKBOT_ORIGIN": JSON.stringify(process.env.VITE_AKBOT_ORIGIN),
63+
"import.meta.env.VITE_DISPLAY_KUBERNETES_INTEGRATION": process.env.VITE_DISPLAY_KUBERNETES_INTEGRATION,
6364
},
6465
optimizeDeps: {
6566
include: ["tailwind-config"],

0 commit comments

Comments
 (0)