Skip to content

Commit

Permalink
Merge branch 'de_on_week/esql-ai-assistant' of https://github.com/vit…
Browse files Browse the repository at this point in the history
…aliidm/kibana into de_on_week/esql-ai-assistant
  • Loading branch information
vitaliidm committed Jun 28, 2024
2 parents be358cb + 338933c commit 0472dac
Show file tree
Hide file tree
Showing 144 changed files with 3,022 additions and 590 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipelines/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ steps:
- exit_status: '*'
limit: 1

- command: KIBANA_DOCKER_CONTEXT=chainguard .buildkite/scripts/steps/artifacts/docker_context.sh
- command: KIBANA_DOCKER_CONTEXT=wolfi .buildkite/scripts/steps/artifacts/docker_context.sh
label: 'Docker Context Verification'
agents:
image: family/kibana-ubuntu-2004
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/build_kibana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if is_pr_with_label "ci:build-cloud-image"; then
--skip-docker-ubi \
--skip-docker-fips \
--skip-docker-ubuntu \
--skip-docker-chainguard \
--skip-docker-wolfi \
--skip-docker-serverless \
--skip-docker-contexts

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ node scripts/build \
--docker-namespace="kibana-ci" \
--docker-tag="$KIBANA_IMAGE_TAG" \
--skip-docker-ubuntu \
--skip-docker-chainguard \
--skip-docker-wolfi \
--skip-docker-ubi \
--skip-docker-cloud \
--skip-docker-contexts \
Expand Down
4 changes: 2 additions & 2 deletions .buildkite/scripts/steps/artifacts/docker_context.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ case $KIBANA_DOCKER_CONTEXT in
default)
DOCKER_CONTEXT_FILE="kibana-$FULL_VERSION-docker-build-context.tar.gz"
;;
chainguard)
DOCKER_CONTEXT_FILE="kibana-chainguard-$FULL_VERSION-docker-build-context.tar.gz"
wolfi)
DOCKER_CONTEXT_FILE="kibana-wolfi-$FULL_VERSION-docker-build-context.tar.gz"
;;
cloud)
DOCKER_CONTEXT_FILE="kibana-cloud-$FULL_VERSION-docker-build-context.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/steps/cloud/build_and_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ else
--skip-docker-ubi \
--skip-docker-fips \
--skip-docker-ubuntu \
--skip-docker-chainguard \
--skip-docker-wolfi \
--skip-docker-serverless \
--skip-docker-contexts
fi
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/steps/fips/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ node scripts/build \
--docker-push \
--skip-docker-ubi \
--skip-docker-ubuntu \
--skip-docker-chainguard \
--skip-docker-wolfi \
--skip-docker-cloud \
--skip-docker-serverless \
--skip-docker-contexts
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,7 @@
"buildkite-test-collector": "^1.7.0",
"callsites": "^3.1.0",
"chance": "1.0.18",
"chromedriver": "^126.0.2",
"chromedriver": "^126.0.3",
"clean-webpack-plugin": "^3.0.0",
"cli-progress": "^3.12.0",
"cli-table3": "^0.6.1",
Expand Down Expand Up @@ -1717,7 +1717,7 @@
"rxjs-marbles": "^7.0.1",
"sass-embedded": "^1.77.5",
"sass-loader": "^10.5.1",
"selenium-webdriver": "^4.21.0",
"selenium-webdriver": "^4.22.0",
"sharp": "0.32.6",
"simple-git": "^3.16.0",
"sinon": "^7.4.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ const ObservabilityUptimeAlertOptional = rt.partial({
'agent.name': schemaString,
'anomaly.bucket_span.minutes': schemaString,
'anomaly.start': schemaDate,
configId: schemaString,
'error.message': schemaString,
'host.name': schemaString,
'kibana.alert.context': schemaUnknown,
'kibana.alert.evaluation.threshold': schemaStringOrNumber,
'kibana.alert.evaluation.value': schemaStringOrNumber,
Expand All @@ -85,8 +87,11 @@ const ObservabilityUptimeAlertOptional = rt.partial({
value: schemaStringArray,
})
),
'location.id': schemaString,
'location.name': schemaString,
'monitor.id': schemaString,
'monitor.name': schemaString,
'monitor.tags': schemaStringArray,
'monitor.type': schemaString,
'observer.geo.name': schemaString,
'tls.server.hash.sha256': schemaString,
Expand Down
7 changes: 7 additions & 0 deletions packages/kbn-management/cards_navigation/src/consts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ export const appDefinitions: Record<AppId, AppDefinition> = {
}),
icon: 'logstashQueue',
},
[AppIds.DATA_QUALITY]: {
category: appCategories.DATA,
description: i18n.translate('management.landing.withCardNavigation.dataQualityDescription', {
defaultMessage: 'Find and manage quality issues in your log data.',
}),
icon: 'documents',
},

[AppIds.RULES]: {
category: appCategories.ALERTS,
Expand Down
1 change: 1 addition & 0 deletions packages/kbn-management/cards_navigation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export enum AppIds {
SERVERLESS_SETTINGS = 'settings',
ROLES = 'roles',
API_KEYS = 'api_keys',
DATA_QUALITY = 'data_quality',
}

// Create new type that is a union of all the appId values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ describe('checking migration metadata changes on all registered SO types', () =>
"ingest-agent-policies": "90625b4a5ded9d4867358fcccc14a57c0454fcee",
"ingest-download-sources": "279a68147e62e4d8858c09ad1cf03bd5551ce58d",
"ingest-outputs": "daafff49255ab700e07491376fe89f04fc998b91",
"ingest-package-policies": "579cd432aa814145f59587354c0f55c71341e5dd",
"ingest-package-policies": "2c0f7c72d211bb7d3076ce2fc0bd368f9c16d274",
"ingest_manager_settings": "91445219e7115ff0c45d1dabd5d614a80b421797",
"inventory-view": "b8683c8e352a286b4aca1ab21003115a4800af83",
"kql-telemetry": "93c1d16c1a0dfca9c8842062cf5ef8f62ae401ad",
Expand Down
16 changes: 8 additions & 8 deletions src/dev/build/args.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ it('build default and oss dist for current platform, without packages, by defaul
"createArchives": true,
"createCdnAssets": true,
"createDebPackage": false,
"createDockerChainguard": false,
"createDockerCloud": false,
"createDockerContexts": true,
"createDockerFIPS": false,
"createDockerServerless": false,
"createDockerUBI": false,
"createDockerUbuntu": false,
"createDockerWolfi": false,
"createGenericFolders": true,
"createPlatformFolders": true,
"createRpmPackage": false,
Expand Down Expand Up @@ -73,13 +73,13 @@ it('builds packages if --all-platforms is passed', () => {
"createArchives": true,
"createCdnAssets": true,
"createDebPackage": true,
"createDockerChainguard": true,
"createDockerCloud": true,
"createDockerContexts": true,
"createDockerFIPS": true,
"createDockerServerless": true,
"createDockerUBI": true,
"createDockerUbuntu": true,
"createDockerWolfi": true,
"createGenericFolders": true,
"createPlatformFolders": true,
"createRpmPackage": true,
Expand Down Expand Up @@ -115,13 +115,13 @@ it('limits packages if --rpm passed with --all-platforms', () => {
"createArchives": true,
"createCdnAssets": true,
"createDebPackage": false,
"createDockerChainguard": false,
"createDockerCloud": false,
"createDockerContexts": true,
"createDockerFIPS": false,
"createDockerServerless": false,
"createDockerUBI": false,
"createDockerUbuntu": false,
"createDockerWolfi": false,
"createGenericFolders": true,
"createPlatformFolders": true,
"createRpmPackage": true,
Expand Down Expand Up @@ -157,13 +157,13 @@ it('limits packages if --deb passed with --all-platforms', () => {
"createArchives": true,
"createCdnAssets": true,
"createDebPackage": true,
"createDockerChainguard": false,
"createDockerCloud": false,
"createDockerContexts": true,
"createDockerFIPS": false,
"createDockerServerless": false,
"createDockerUBI": false,
"createDockerUbuntu": false,
"createDockerWolfi": false,
"createGenericFolders": true,
"createPlatformFolders": true,
"createRpmPackage": false,
Expand Down Expand Up @@ -200,13 +200,13 @@ it('limits packages if --docker passed with --all-platforms', () => {
"createArchives": true,
"createCdnAssets": true,
"createDebPackage": false,
"createDockerChainguard": true,
"createDockerCloud": true,
"createDockerContexts": true,
"createDockerFIPS": true,
"createDockerServerless": true,
"createDockerUBI": true,
"createDockerUbuntu": true,
"createDockerWolfi": true,
"createGenericFolders": true,
"createPlatformFolders": true,
"createRpmPackage": false,
Expand Down Expand Up @@ -250,13 +250,13 @@ it('limits packages if --docker passed with --skip-docker-ubi and --all-platform
"createArchives": true,
"createCdnAssets": true,
"createDebPackage": false,
"createDockerChainguard": true,
"createDockerCloud": true,
"createDockerContexts": true,
"createDockerFIPS": true,
"createDockerServerless": true,
"createDockerUBI": false,
"createDockerUbuntu": true,
"createDockerWolfi": true,
"createGenericFolders": true,
"createPlatformFolders": true,
"createRpmPackage": false,
Expand Down Expand Up @@ -293,13 +293,13 @@ it('limits packages if --all-platforms passed with --skip-docker-ubuntu', () =>
"createArchives": true,
"createCdnAssets": true,
"createDebPackage": true,
"createDockerChainguard": true,
"createDockerCloud": true,
"createDockerContexts": true,
"createDockerFIPS": true,
"createDockerServerless": true,
"createDockerUBI": true,
"createDockerUbuntu": false,
"createDockerWolfi": true,
"createGenericFolders": true,
"createPlatformFolders": true,
"createRpmPackage": true,
Expand Down Expand Up @@ -336,13 +336,13 @@ it('limits packages if --all-platforms passed with --skip-docker-fips', () => {
"createArchives": true,
"createCdnAssets": true,
"createDebPackage": true,
"createDockerChainguard": true,
"createDockerCloud": true,
"createDockerContexts": true,
"createDockerFIPS": false,
"createDockerServerless": true,
"createDockerUBI": true,
"createDockerUbuntu": true,
"createDockerWolfi": true,
"createGenericFolders": true,
"createPlatformFolders": true,
"createRpmPackage": true,
Expand Down
5 changes: 2 additions & 3 deletions src/dev/build/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function readCliArgs(argv: string[]) {
'skip-docker-contexts',
'skip-docker-ubi',
'skip-docker-ubuntu',
'skip-docker-chainguard',
'skip-docker-wolfi',
'skip-docker-cloud',
'skip-docker-serverless',
'skip-docker-fips',
Expand Down Expand Up @@ -141,8 +141,7 @@ export function readCliArgs(argv: string[]) {
createDebPackage: isOsPackageDesired('deb'),
createDockerUbuntu:
isOsPackageDesired('docker-images') && !Boolean(flags['skip-docker-ubuntu']),
createDockerChainguard:
isOsPackageDesired('docker-images') && !Boolean(flags['skip-docker-chainguard']),
createDockerWolfi: isOsPackageDesired('docker-images') && !Boolean(flags['skip-docker-wolfi']),
createDockerCloud: isOsPackageDesired('docker-images') && !Boolean(flags['skip-docker-cloud']),
createDockerServerless:
(isOsPackageDesired('docker-images') && !Boolean(flags['skip-docker-serverless'])) ||
Expand Down
8 changes: 4 additions & 4 deletions src/dev/build/build_distributables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface BuildOptions {
createDebPackage: boolean;
createDockerUBI: boolean;
createDockerUbuntu: boolean;
createDockerChainguard: boolean;
createDockerWolfi: boolean;
createDockerCloud: boolean;
createDockerServerless: boolean;
createDockerContexts: boolean;
Expand Down Expand Up @@ -151,9 +151,9 @@ export async function buildDistributables(log: ToolingLog, options: BuildOptions
await run(Tasks.CreateDockerUbuntu);
}

if (options.createDockerChainguard) {
// control w/ --docker-images or --skip-docker-chainguard or --skip-os-packages
await run(Tasks.CreateDockerChainguard);
if (options.createDockerWolfi) {
// control w/ --docker-images or --skip-docker-wolfi or --skip-os-packages
await run(Tasks.CreateDockerWolfi);
}
if (options.createDockerCloud) {
// control w/ --docker-images and --skip-docker-cloud
Expand Down
2 changes: 1 addition & 1 deletion src/dev/build/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if (showHelp) {
--skip-cdn-assets {dim Don't build CDN assets}
--skip-docker-ubi {dim Don't build the docker ubi image}
--skip-docker-ubuntu {dim Don't build the docker ubuntu image}
--skip-docker-chainguard {dim Don't build the docker chainguard image}
--skip-docker-wolfi {dim Don't build the docker wolfi image}
--skip-docker-fips {dim Don't build the docker fips image}
--release {dim Produce a release-ready distributable}
--version-qualifier {dim Suffix version with a qualifier}
Expand Down
10 changes: 5 additions & 5 deletions src/dev/build/tasks/os_packages/create_os_package_tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,20 @@ export const CreateDockerUbuntu: Task = {
},
};

export const CreateDockerChainguard: Task = {
description: 'Creating Docker Chainguard image',
export const CreateDockerWolfi: Task = {
description: 'Creating Docker Wolfi image',

async run(config, log, build) {
await runDockerGenerator(config, log, build, {
architecture: 'x64',
baseImage: 'chainguard',
baseImage: 'wolfi',
context: false,
image: true,
dockerBuildDate,
});
await runDockerGenerator(config, log, build, {
architecture: 'aarch64',
baseImage: 'chainguard',
baseImage: 'wolfi',
context: false,
image: true,
dockerBuildDate,
Expand Down Expand Up @@ -183,7 +183,7 @@ export const CreateDockerContexts: Task = {
dockerBuildDate,
});
await runDockerGenerator(config, log, build, {
baseImage: 'chainguard',
baseImage: 'wolfi',
context: true,
image: false,
dockerBuildDate,
Expand Down
6 changes: 3 additions & 3 deletions src/dev/build/tasks/os_packages/docker_generator/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function runDockerGenerator(
build: Build,
flags: {
architecture?: string;
baseImage: 'none' | 'chainguard' | 'ubi' | 'ubuntu';
baseImage: 'none' | 'wolfi' | 'ubi' | 'ubuntu';
context: boolean;
image: boolean;
ironbank?: boolean;
Expand All @@ -42,12 +42,12 @@ export async function runDockerGenerator(
let baseImageName = '';
if (flags.baseImage === 'ubuntu') baseImageName = 'ubuntu:20.04';
if (flags.baseImage === 'ubi') baseImageName = 'docker.elastic.co/ubi9/ubi-minimal:latest';
if (flags.baseImage === 'chainguard')
if (flags.baseImage === 'wolfi')
baseImageName = 'docker.elastic.co/wolfi/chainguard-base:20230214';

let imageFlavor = '';
if (flags.baseImage === 'ubi') imageFlavor += `-ubi`;
if (flags.baseImage === 'chainguard') imageFlavor += `-chainguard`;
if (flags.baseImage === 'wolfi') imageFlavor += `-wolfi`;
if (flags.ironbank) imageFlavor += '-ironbank';
if (flags.cloud) imageFlavor += '-cloud';
if (flags.serverless) imageFlavor += '-serverless';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface TemplateContext {
dockerBuildDate: string;
usePublicArtifact?: boolean;
publicArtifactSubdomain: string;
baseImage: 'none' | 'ubi' | 'ubuntu' | 'chainguard';
baseImage: 'none' | 'ubi' | 'ubuntu' | 'wolfi';
baseImageName: string;
cloud?: boolean;
serverless?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ RUN microdnf install -y findutils tar gzip
{{#ubuntu}}
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl
{{/ubuntu}}
{{#chainguard}}
{{#wolfi}}
RUN apk --no-cache add curl
{{/chainguard}}
{{/wolfi}}

{{#usePublicArtifact}}
RUN cd /tmp && \
Expand Down Expand Up @@ -109,9 +109,9 @@ RUN for iter in {1..10}; do \
done; \
(exit $exit_code)
{{/ubuntu}}
{{#chainguard}}
{{#wolfi}}
RUN apk --no-cache add bash curl fontconfig libstdc++ freetype nss findutils shadow
{{/chainguard}}
{{/wolfi}}

# Bring in Kibana from the initial stage.
COPY --from=builder --chown=1000:0 /usr/share/kibana /usr/share/kibana
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function generator(options: TemplateContext) {
const dir = options.ironbank ? 'ironbank' : 'base';
const template = readFileSync(resolve(__dirname, dir, './Dockerfile'));
return Mustache.render(template.toString(), {
chainguard: options.baseImage === 'chainguard',
wolfi: options.baseImage === 'wolfi',
ubi: options.baseImage === 'ubi',
ubuntu: options.baseImage === 'ubuntu',
opensslLegacyProvider: !(options.cloud || options.serverless || options.fips),
Expand Down
Loading

0 comments on commit 0472dac

Please sign in to comment.