Skip to content

[UII] Replace kibanaVersionCheckEnabled default value instead of config setting#198172

Merged
jen-huang merged 4 commits intoelastic:mainfrom
jen-huang:fix/9.0-version-check
Oct 30, 2024
Merged

[UII] Replace kibanaVersionCheckEnabled default value instead of config setting#198172
jen-huang merged 4 commits intoelastic:mainfrom
jen-huang:fix/9.0-version-check

Conversation

@jen-huang
Copy link
Copy Markdown
Contributor

@jen-huang jen-huang commented Oct 29, 2024

Summary

This PR removes xpack.fleet.internal.registry.kibanaVersionCheckEnabled: false from kibana.yml in favor of changing the default value that Fleet populates, so that we do not apply the Kibana version constraint to EPR requests for >= 9.0 deployments.

Prior to this change, this setting was not applied to ESS deployments as kibana.yml is overridden there.

I updated the related task in #192624 to reflect this change.

@jen-huang jen-huang self-assigned this Oct 29, 2024
@jen-huang jen-huang requested review from a team as code owners October 29, 2024 17:08
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Oct 29, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@jen-huang jen-huang added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting and removed 💝community labels Oct 29, 2024
Copy link
Copy Markdown
Member

@kpollich kpollich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me from the Fleet side of things.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @jen-huang

capabilities: [],
excludePackages: [],
spec: {
internal: schema.object({
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made this schema object non-optional (removed schema.maybe wrapper), because the default values do not populate when it is optional, i.e. kibanaVersionCheckEnabled is undefined instead of false

Copy link
Copy Markdown
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Q: Should this PR be flagged as breaking change?

@jen-huang
Copy link
Copy Markdown
Contributor Author

LGTM. Q: Should this PR be flagged as breaking change?

@afharo No, we plan on restoring the original behavior after elastic/package-registry#1226 is addressed.

@jen-huang jen-huang merged commit 950ee16 into elastic:main Oct 30, 2024
@jen-huang jen-huang deleted the fix/9.0-version-check branch October 30, 2024 21:22
jsoriano added a commit that referenced this pull request Feb 11, 2025
Revert the change in #198172.

It re-enables version constraints for packages in 9.0 by default,
following the plan described in internal issue
elastic/ingest-dev#4484.

We already have some packages ready for 9.0, and many more coming, so it
should be enough for testing purposes during the FF.

Adjust some tests config so they continue disabling the constraints, as they
expect more packages than the ones available now.
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 11, 2025
Revert the change in elastic#198172.

It re-enables version constraints for packages in 9.0 by default,
following the plan described in internal issue
elastic/ingest-dev#4484.

We already have some packages ready for 9.0, and many more coming, so it
should be enough for testing purposes during the FF.

Adjust some tests config so they continue disabling the constraints, as they
expect more packages than the ones available now.

(cherry picked from commit a25dc3f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants