Skip to content

docs: document operator JSON logging #3631 - #4959

Merged
k-wall merged 2 commits into
kroxylicious:mainfrom
AzazelSensei:docs-3631-operator-json-logging
Oct 23, 2026
Merged

k-wall merged 2 commits into
kroxylicious:mainfrom
AzazelSensei:docs-3631-operator-json-logging

Conversation

@AzazelSensei

Copy link
Copy Markdown
Contributor

Type of change

  • Documentation

Description

I added operator-guide docs for JSON logging (KROXYLICIOUS_LOG_FORMAT) on the operator and on operator-managed proxies.

Fixes #3631

Additional Context

#3588 added the feature. The proxy guide already documents it.

Checklist

  • New tests written (where applicable).
  • If making a user-facing change, documentation is provided, or if the intent is to provide documentation in a follow up PR, an issue is raised tracking the need for the documentation update. Link the to issue in this checklist.
  • Existing unit/integration/system tests passing.
  • Any Sonarcloud warnings are addressed (or suppressed with @SuppressWarnings and a justifying comment).
  • PR references related GitHub issue(s) so they are closed on merging.
  • If AI tools assisted with code changes, ensure commit messages include Assisted-by: trailer (see DEV_GUIDE.md).
  • For user facing changes, add a logchange entry YAML file to changelog/unreleased/ (remember to include changes affecting the API of the test artefacts too). See DEV_GUIDE.md for the entry format.

Add operator-guide procedures for KROXYLICIOUS_LOG_FORMAT on the
operator and on operator-managed proxies.

Fixes kroxylicious#3631

Signed-off-by: Abdullah <[email protected]>

@robobario robobario left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @AzazelSensei I have some doubts about the subscription patch commands but other than that it's looking good

+
[source,bash]
----
kubectl patch subscription <subscription_name> -p '{"spec":{"config":{"env":[]}}}' --type=merge

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this command probably needs the namespace like we have for the command adding the env.

@k-wall k-wall added the documentation Improvements or additions to documentation label Sep 25, 2026
@k-wall

k-wall commented Sep 25, 2026

Copy link
Copy Markdown
Member

@AratiAjit would you be able to review this change please?

@AratiAjit AratiAjit left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@k-wall

k-wall commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

@AratiAjit @AzazelSensei if you'd have chance to address the review comments, I'll be happy to merge this PR. Thank you the contribution.

@k-wall

k-wall commented Oct 2, 2026

Copy link
Copy Markdown
Member

Hey @AzazelSensei are you able to update this PR please?

@AzazelSensei

Copy link
Copy Markdown
Contributor Author

Thanks, used your add patch for the OLM case. For reverting I added a step to look up the env var's index first, and the remove is guarded by a test op so it fails instead of removing the wrong entry. Switched the bundle commands to <namespace> and <deployment_name> placeholders. One thing I noticed: the add to /spec/config/env/- fails if the Subscription has no env list yet. Should I add a note for that case?

@k-wall k-wall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@k-wall
k-wall added this pull request to the merge queue Oct 14, 2026
@k-wall

k-wall commented Oct 14, 2026

Copy link
Copy Markdown
Member

Thank you for the contribution @AzazelSensei

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 14, 2026
@k-wall

k-wall commented Oct 14, 2026

Copy link
Copy Markdown
Member

CI Failure Analysis

The integration test failure in the merge queue is an unrelated flaky test, not caused by the changes in this PR.

Failed Test: ResilienceIT.shouldHonourConfiguredUpstreamConnectTimeout

Failure Reason: Timing-sensitive test failed because the measured timeout was 1.983740463s instead of the expected ≥2s (16ms short).

CI Run: https://github.com/kroxylicious/kroxylicious/actions/runs/38568998495/job/115872398160

Issue Filed: #5111

I've rerun the failed job. This test validates upstream connect timeout behavior and is known to be sensitive to system timing variations.

@tombentley
tombentley enabled auto-merge October 20, 2026 03:53
@k-wall
k-wall disabled auto-merge October 21, 2026 08:44
@k-wall
k-wall enabled auto-merge October 21, 2026 08:45
@k-wall
k-wall disabled auto-merge October 21, 2026 13:38
@k-wall
k-wall enabled auto-merge October 21, 2026 13:38
@k-wall
k-wall disabled auto-merge October 21, 2026 13:40
@k-wall
k-wall enabled auto-merge October 21, 2026 13:40
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@k-wall
k-wall disabled auto-merge October 22, 2026 21:56
@k-wall
k-wall enabled auto-merge October 22, 2026 21:56
@k-wall

k-wall commented Oct 22, 2026

Copy link
Copy Markdown
Member

@AzazelSensei would you mind rebasing the PR? You PR has got stuck. That should free it. Sorry for the bother.

@k-wall
k-wall disabled auto-merge October 23, 2026 15:50
@k-wall
k-wall merged commit 31c23fa into kroxylicious:main Oct 23, 2026
86 checks passed
SamBarker pushed a commit to Divyanshkumar62/kroxylicious that referenced this pull request Oct 28, 2026
…4959)

* docs: document operator JSON logging

Add operator-guide procedures for KROXYLICIOUS_LOG_FORMAT on the
operator and on operator-managed proxies.

Fixes kroxylicious#3631

Signed-off-by: Abdullah <[email protected]>

* docs: address review comments on operator JSON logging

Signed-off-by: Abdullah <[email protected]>

---------

Signed-off-by: Abdullah <[email protected]>
Signed-off-by: Sam Barker <[email protected]>
franvila pushed a commit to franvila/kproxy that referenced this pull request Oct 30, 2026
…4959)

* docs: document operator JSON logging

Add operator-guide procedures for KROXYLICIOUS_LOG_FORMAT on the
operator and on operator-managed proxies.

Fixes kroxylicious#3631

Signed-off-by: Abdullah <[email protected]>

* docs: address review comments on operator JSON logging

Signed-off-by: Abdullah <[email protected]>

---------

Signed-off-by: Abdullah <[email protected]>
Signed-off-by: Francisco Vila <[email protected]>
franvila pushed a commit to franvila/kproxy that referenced this pull request Nov 18, 2026
…4959)

* docs: document operator JSON logging

Add operator-guide procedures for KROXYLICIOUS_LOG_FORMAT on the
operator and on operator-managed proxies.

Fixes kroxylicious#3631

Signed-off-by: Abdullah <[email protected]>

* docs: address review comments on operator JSON logging

Signed-off-by: Abdullah <[email protected]>

---------

Signed-off-by: Abdullah <[email protected]>
Signed-off-by: Francisco Vila <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document the JSON logging functionality in the operator

4 participants