mirror of
https://github.com/elastic/kibana.git
synced 2025-04-19 15:35:00 -04:00
[Inference Connector] Enable inference connector for ESS by default, disable it for Serverless (#209197)
1. ECH/ESS: enable by default for 8.18 2. Serverless: disable by default until PC approval
This commit is contained in:
parent
a3189cc681
commit
ba0b1eca91
12 changed files with 16 additions and 12 deletions
|
@ -272,4 +272,7 @@ xpack.dataUsage.enabled: true
|
|||
xpack.dataUsage.enableExperimental: ['dataUsageDisabled']
|
||||
|
||||
# Ensure Serverless is using the Amsterdam theme
|
||||
uiSettings.experimental.defaultTheme: "amsterdam"
|
||||
uiSettings.experimental.defaultTheme: "amsterdam"
|
||||
|
||||
# This feature is disabled in Serverless until Inference Endpoint become enabled within a Serverless environment
|
||||
xpack.stack_connectors.enableExperimental: ['inferenceConnectorOff']
|
|
@ -52,7 +52,7 @@ describe('Connector type config checks', () => {
|
|||
});
|
||||
|
||||
for (const connectorTypeId of connectorTypes) {
|
||||
const skipConnectorType = ['.gen-ai'];
|
||||
const skipConnectorType = ['.gen-ai', '.inference'];
|
||||
if (skipConnectorType.includes(connectorTypeId)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ export const connectorTypes: string[] = [
|
|||
'.thehive',
|
||||
'.sentinelone',
|
||||
'.crowdstrike',
|
||||
'.inference',
|
||||
'.microsoft_defender_endpoint',
|
||||
'.cases',
|
||||
'.observability-ai-assistant',
|
||||
|
|
|
@ -15,7 +15,7 @@ export const allowedExperimentalValues = Object.freeze({
|
|||
isMustacheAutocompleteOn: false,
|
||||
sentinelOneConnectorOn: true,
|
||||
crowdstrikeConnectorOn: true,
|
||||
inferenceConnectorOn: false,
|
||||
inferenceConnectorOff: false,
|
||||
crowdstrikeConnectorRTROn: true,
|
||||
microsoftDefenderEndpointOn: true,
|
||||
});
|
||||
|
|
|
@ -82,7 +82,7 @@ export function registerConnectorTypes({
|
|||
if (ExperimentalFeaturesService.get().crowdstrikeConnectorOn) {
|
||||
connectorTypeRegistry.register(getCrowdStrikeConnectorType());
|
||||
}
|
||||
if (ExperimentalFeaturesService.get().inferenceConnectorOn) {
|
||||
if (!ExperimentalFeaturesService.get().inferenceConnectorOff) {
|
||||
connectorTypeRegistry.register(getInferenceConnectorType());
|
||||
}
|
||||
if (ExperimentalFeaturesService.get().microsoftDefenderEndpointOn) {
|
||||
|
|
|
@ -17,7 +17,7 @@ let actionTypeModel: ActionTypeModel;
|
|||
|
||||
beforeAll(() => {
|
||||
ExperimentalFeaturesService.init({
|
||||
experimentalFeatures: { ...experimentalFeaturesMock, inferenceConnectorOn: true } as any,
|
||||
experimentalFeatures: { ...experimentalFeaturesMock } as any,
|
||||
});
|
||||
const connectorTypeRegistry = new TypeRegistry<ActionTypeModel>();
|
||||
registerConnectorTypes({ connectorTypeRegistry, services: registrationServicesMock });
|
||||
|
|
|
@ -121,7 +121,7 @@ export function registerConnectorTypes({
|
|||
if (experimentalFeatures.crowdstrikeConnectorOn) {
|
||||
actions.registerSubActionConnectorType(getCrowdstrikeConnectorType(experimentalFeatures));
|
||||
}
|
||||
if (experimentalFeatures.inferenceConnectorOn) {
|
||||
if (!experimentalFeatures.inferenceConnectorOff) {
|
||||
actions.registerSubActionConnectorType(getInferenceConnectorType());
|
||||
}
|
||||
if (experimentalFeatures.microsoftDefenderEndpointOn) {
|
||||
|
|
|
@ -26,7 +26,6 @@ describe('Stack Connectors Plugin', () => {
|
|||
context = coreMock.createPluginInitializerContext();
|
||||
mockParseExperimentalConfigValue.mockReturnValue({
|
||||
...experimentalFeaturesMock,
|
||||
inferenceConnectorOn: true,
|
||||
});
|
||||
|
||||
plugin = new StackConnectorsPlugin(context);
|
||||
|
|
|
@ -38,6 +38,10 @@ Array [
|
|||
"cost": 1,
|
||||
"taskType": "actions:.index",
|
||||
},
|
||||
Object {
|
||||
"cost": 1,
|
||||
"taskType": "actions:.inference",
|
||||
},
|
||||
Object {
|
||||
"cost": 1,
|
||||
"taskType": "actions:.jira",
|
||||
|
|
|
@ -31,6 +31,7 @@ export default function createRegisteredConnectorTypeTests({ getService }: FtrPr
|
|||
'.d3security',
|
||||
'.email',
|
||||
'.index',
|
||||
'.inference',
|
||||
'.pagerduty',
|
||||
'.swimlane',
|
||||
'.server-log',
|
||||
|
|
|
@ -37,7 +37,6 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
`--xpack.stack_connectors.enableExperimental=${JSON.stringify([
|
||||
'crowdstrikeConnectorOn',
|
||||
'microsoftDefenderEndpointOn',
|
||||
'inferenceConnectorOn',
|
||||
])}`,
|
||||
...findTestPluginPaths(path.resolve(__dirname, 'plugins')),
|
||||
],
|
||||
|
|
|
@ -31,10 +31,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
'--xpack.task_manager.claim_strategy="update_by_query"',
|
||||
'--xpack.task_manager.monitored_aggregated_stats_refresh_rate=5000',
|
||||
'--xpack.task_manager.metrics_reset_interval=40000',
|
||||
`--xpack.stack_connectors.enableExperimental=${JSON.stringify([
|
||||
'crowdstrikeConnectorOn',
|
||||
'inferenceConnectorOn',
|
||||
])}`,
|
||||
`--xpack.stack_connectors.enableExperimental=${JSON.stringify(['crowdstrikeConnectorOn'])}`,
|
||||
...findTestPluginPaths(path.resolve(__dirname, 'plugins')),
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue