[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:
Yuliia Naumenko 2025-02-05 09:20:58 -08:00 committed by GitHub
parent a3189cc681
commit ba0b1eca91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 16 additions and 12 deletions

View file

@ -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']

View file

@ -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;
}

View file

@ -32,6 +32,7 @@ export const connectorTypes: string[] = [
'.thehive',
'.sentinelone',
'.crowdstrike',
'.inference',
'.microsoft_defender_endpoint',
'.cases',
'.observability-ai-assistant',

View file

@ -15,7 +15,7 @@ export const allowedExperimentalValues = Object.freeze({
isMustacheAutocompleteOn: false,
sentinelOneConnectorOn: true,
crowdstrikeConnectorOn: true,
inferenceConnectorOn: false,
inferenceConnectorOff: false,
crowdstrikeConnectorRTROn: true,
microsoftDefenderEndpointOn: true,
});

View file

@ -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) {

View file

@ -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 });

View file

@ -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) {

View file

@ -26,7 +26,6 @@ describe('Stack Connectors Plugin', () => {
context = coreMock.createPluginInitializerContext();
mockParseExperimentalConfigValue.mockReturnValue({
...experimentalFeaturesMock,
inferenceConnectorOn: true,
});
plugin = new StackConnectorsPlugin(context);

View file

@ -38,6 +38,10 @@ Array [
"cost": 1,
"taskType": "actions:.index",
},
Object {
"cost": 1,
"taskType": "actions:.inference",
},
Object {
"cost": 1,
"taskType": "actions:.jira",

View file

@ -31,6 +31,7 @@ export default function createRegisteredConnectorTypeTests({ getService }: FtrPr
'.d3security',
'.email',
'.index',
'.inference',
'.pagerduty',
'.swimlane',
'.server-log',

View file

@ -37,7 +37,6 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
`--xpack.stack_connectors.enableExperimental=${JSON.stringify([
'crowdstrikeConnectorOn',
'microsoftDefenderEndpointOn',
'inferenceConnectorOn',
])}`,
...findTestPluginPaths(path.resolve(__dirname, 'plugins')),
],

View file

@ -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')),
],
},