Skip to content

NO-JIRA: Surface high value enum options in the API docs for oc explain#3289

Open
Clee2691 wants to merge 1 commit into
openshift:masterfrom
Clee2691:add-api-enum-values
Open

NO-JIRA: Surface high value enum options in the API docs for oc explain#3289
Clee2691 wants to merge 1 commit into
openshift:masterfrom
Clee2691:add-api-enum-values

Conversation

@Clee2691
Copy link
Copy Markdown
Contributor

@Clee2691 Clee2691 commented May 20, 2026

Description

This PR surfaces high value enum options for oc explain.

Namely:

  • Compression options for different outputs
  • Authentication types for AzureLogsIngestion & AWS
  • BearerTokenFrom

/cc @vparfonov
/assign @jcantrill

Related to #3286

Summary by CodeRabbit

  • Documentation
    • Enhanced and standardized descriptions across cluster logging UI and CRD docs: clarified valid values for authentication types and token sources (e.g., secret, serviceAccount), and enumerated supported compression options.
    • Updated API reference and operator docs: clarified tolerations/operators, scheduling/affinity notes, feature-gate dependencies, and added Splunk source/sourceType guidance and examples.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 20, 2026
@openshift-ci-robot
Copy link
Copy Markdown

@Clee2691: This pull request explicitly references no jira issue.

Details

In response to this:

Description

This PR surfaces high value enum options for oc explain.

Namely:

  • Compression options for different outputs
  • Authentication types for AzureLogsIngestion & AWS
  • BearerTokenFrom

/cc @vparfonov
/assign @jcantrill

Related to #3286

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot requested a review from vparfonov May 20, 2026 16:47
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: f6520e34-ebcd-462b-ac80-217d631e0a9b

📥 Commits

Reviewing files that changed from the base of the PR and between fc9e16e and 6b2191a.

📒 Files selected for processing (9)
  • .bingo/gen-crd-api-reference-docs.mod
  • api/observability/v1/clusterlogforwarder_types.go
  • api/observability/v1/output_types.go
  • bundle/manifests/cluster-logging.clusterserviceversion.yaml
  • bundle/manifests/observability.openshift.io_clusterlogforwarders.yaml
  • config/crd/bases/observability.openshift.io_clusterlogforwarders.yaml
  • config/manifests/bases/cluster-logging.clusterserviceversion.yaml
  • docs/reference/operator/api_logging_v1alpha1.adoc
  • docs/reference/operator/api_observability_v1.adoc
💤 Files with no reviewable changes (1)
  • .bingo/gen-crd-api-reference-docs.mod
✅ Files skipped from review due to trivial changes (7)
  • docs/reference/operator/api_logging_v1alpha1.adoc
  • api/observability/v1/clusterlogforwarder_types.go
  • bundle/manifests/cluster-logging.clusterserviceversion.yaml
  • config/manifests/bases/cluster-logging.clusterserviceversion.yaml
  • bundle/manifests/observability.openshift.io_clusterlogforwarders.yaml
  • config/crd/bases/observability.openshift.io_clusterlogforwarders.yaml
  • docs/reference/operator/api_observability_v1.adoc

📝 Walkthrough

Walkthrough

This PR standardizes and expands documentation strings: Go comments, CRD OpenAPI descriptions, CSV specDescriptors, and reference docs now enumerate valid values for bearer token sources, authentication types, and compression options; some feature-gate notes were clarified or removed; CSV timestamp updated; minor go.mod directive removed.

Changes

API Documentation and Valid Values Clarification

Layer / File(s) Summary
Go API Type Documentation
api/observability/v1/clusterlogforwarder_types.go, api/observability/v1/output_types.go, .bingo/gen-crd-api-reference-docs.mod
Go source comments add explicit "Valid values are …" documentation for BearerTokenFrom selectors and compression/authentication type enums, aligned with existing +kubebuilder:validation:Enum constraints. Go module toolchain directive removal is included.
CSV and Bundled Manifests
bundle/manifests/cluster-logging.clusterserviceversion.yaml, bundle/manifests/observability.openshift.io_clusterlogforwarders.yaml
CSV descriptors and bundled CRD OpenAPI descriptions are reformatted to multi-line block scalars and updated to enumerate valid values for authentication type, bearer token from (secret, serviceAccount), and output tuning.compression options across outputs. CSV metadata createdAt timestamp updated.
Config CRD Bases and Manifests
config/crd/bases/observability.openshift.io_clusterlogforwarders.yaml, config/manifests/bases/cluster-logging.clusterserviceversion.yaml
Base CRD OpenAPI schema descriptions and manifest base CSV specDescriptors are synchronized and reformatted to include explicit valid-values lists without changing underlying enum/validation rules.
API Reference Documentation
docs/reference/operator/api_logging_v1alpha1.adoc, docs/reference/operator/api_observability_v1.adoc
AsciiDoc updates remove obsolete beta feature-gate notes, correct pod anti-affinity preferred scheduling scoring wording, add Lt/Gt toleration operators with a feature-gate note, enumerate valid type/token.from/compression values across outputs, and expand Splunk sourceType documentation with constraints and examples.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 I hopped through docs with tiny paws,
Listing values, fixing flawed laws,
Tokens, types, and compressions neat,
CSV and CRD now speak complete,
A tidy hop — the docs applaud!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main change: surfacing enum options in API documentation for oc explain.
Description check ✅ Passed The description addresses the PR's purpose, lists specific changes (Compression, Authentication types, BearerTokenFrom), includes required /cc and /assign directives, and references a related PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@bundle/manifests/observability.openshift.io_clusterlogforwarders.yaml`:
- Around line 3746-3750: The description for the s3.authentication.type enum
incorrectly refers to "cloudwatch authentication"; update the description text
so it refers to S3/AWS authentication (e.g., "Type is the type of S3/AWS
authentication to configure.") in the manifest entry that documents
s3.authentication.type to ensure oc explain displays the correct service name.

In `@config/crd/bases/observability.openshift.io_clusterlogforwarders.yaml`:
- Around line 3746-3750: The description text under the s3 authentication block
incorrectly refers to "cloudwatch authentication"; update the description string
for the s3 auth type (the description field immediately above the enum in the s3
block of the CRD) to reference "S3 authentication" (e.g., "Type is the type of
S3 authentication to configure. Valid values are: awsAccessKey, iamRole.") so oc
explain shows the correct service name.

In `@config/manifests/bases/cluster-logging.clusterserviceversion.yaml`:
- Around line 1773-1777: The description for outputs[0].s3.authentication.type
incorrectly refers to "cloudwatch authentication"; update the YAML so the
description names it as S3 authentication instead (e.g., "Type is the type of S3
authentication to configure. Valid values are: awsAccessKey, iamRole.") by
editing the description string associated with outputs[0].s3.authentication.type
to reference S3 rather than cloudwatch and keep the displayName Authentication
Type unchanged.

In `@docs/reference/operator/api_observability_v1.adoc`:
- Around line 3707-3710: Update the misleading description that currently reads
"cloudwatch authentication" for the S3 auth section: change the text associated
with s3.authentication.type to reference "S3 authentication" instead of
"cloudwatch authentication" and keep the valid values listing (awsAccessKey,
iamRole) intact; ensure the paragraph describing s3.authentication.type clearly
states it configures S3 authentication type and lists the valid values.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3e3cd63d-0f41-4d8b-95a0-4de695898c13

📥 Commits

Reviewing files that changed from the base of the PR and between 78cbd85 and fc9e16e.

📒 Files selected for processing (9)
  • .bingo/gen-crd-api-reference-docs.mod
  • api/observability/v1/clusterlogforwarder_types.go
  • api/observability/v1/output_types.go
  • bundle/manifests/cluster-logging.clusterserviceversion.yaml
  • bundle/manifests/observability.openshift.io_clusterlogforwarders.yaml
  • config/crd/bases/observability.openshift.io_clusterlogforwarders.yaml
  • config/manifests/bases/cluster-logging.clusterserviceversion.yaml
  • docs/reference/operator/api_logging_v1alpha1.adoc
  • docs/reference/operator/api_observability_v1.adoc
💤 Files with no reviewable changes (1)
  • .bingo/gen-crd-api-reference-docs.mod

Comment thread config/manifests/bases/cluster-logging.clusterserviceversion.yaml
Comment thread docs/reference/operator/api_observability_v1.adoc Outdated
@jcantrill
Copy link
Copy Markdown
Contributor

/approve

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 20, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Clee2691, jcantrill

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 20, 2026
@Clee2691 Clee2691 force-pushed the add-api-enum-values branch from fc9e16e to 6b2191a Compare May 20, 2026 19:25
@Clee2691
Copy link
Copy Markdown
Contributor Author

/retest

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 20, 2026

@Clee2691: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/functional-target 6b2191a link true /test functional-target
ci/prow/e2e-target 6b2191a link true /test e2e-target

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. release/6.6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants