[FLINK-39571][docs] Improve Flink Kubernetes Operator documentation coverage#1164
Draft
Dennis-Mircea wants to merge 1 commit into
Draft
[FLINK-39571][docs] Improve Flink Kubernetes Operator documentation coverage#1164Dennis-Mircea wants to merge 1 commit into
Dennis-Mircea wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
The operator documentation has grown organically and its structure no longer serves its readers:
FlinkStateSnapshot) or not at all (FlinkBlueGreenDeployment).This PR restructures the documentation into audience-layered altitudes, following the Flink core documentation convention: the section names, the Try entry point, and the split of install-time (Deployment) from day-2 (Operations) concerns all mirror how Flink core organizes its own documentation, so readers moving between the two find the same structure.
On top of the site layering, every capability is told three times, at three depths: Concepts for the why, Managing for the how, Internals for the implementation. For example, snapshots are covered as Concepts → Lifecycle Management → Snapshots (why), Managing → Snapshot Management (how to use), and Internals → Controllers (how the observer and reconciler implement it). Each page links one level down, and every fact has exactly one home with cross-links instead of duplication.
The new information architecture
The numbered bands are the four altitudes from the table above, and the colors carry through the figure: yellow for evaluating the operator, purple for using it day to day, red for operating it in production, gray for contributing to it. The right column shows the resulting sidebar navigation, framed in the color of the band it renders. Reading top to bottom follows the typical reader journey, from first contact through production operation to contribution, and the navigation presents the sections in the same order.
All moved pages keep their old URLs through Hugo aliases, so external links and search results keep working. The alias redirects render for the English tree, matching how the site's aliases have always behaved for the Chinese one.
Brief change log
Information architecture
Landing and Try
Concepts
Custom Resource
FlinkDeployment,FlinkSessionJob,FlinkStateSnapshot,FlinkBlueGreenDeployment) now have walkthrough examples, relationship and ownership rules, and spec-diffing semantics in one place.lifecycleState,reconciliationStatus,jobStatus, andjobManagerDeploymentStatus.Managing Flink Jobs
FlinkStateSnapshotresource with a state table, lifecycle figure, triggering modes, history, and disposal semantics.FlinkBlueGreenDeploymentresource, covering deployment states, spec-change behavior, health monitoring, and abort semantics.Deployment
Operations
Internals (work in progress)
Editorial conventions
Figures
Chinese documentation
content.zhis now a verbatim 1:1 mirror of the English tree. The previous zh tree had drifted into a mix of stale translations and English text. A verbatim mirror keeps both trees building, makes the translation debt explicit, and turns future translation work into a clean per-page diff.Code changes (documentation-supporting only)
FlinkBlueGreenDeploymentConfigOptionsconsolidated intoKubernetesOperatorConfigOptionswith a documentedbluegreensection, so the Blue/Green options finally appear in the generated configuration reference.BlueGreenUtilsand the controller test updated accordingly.CrdReferenceDocletexclusion list reduced to the classes that must be excluded.Verifying this change
cd docs && docker run -v $(pwd):/src -p 1313:1313 jakejarvis/hugo-extended:latest server --buildDrafts --buildFuture --bind 0.0.0.0and browsehttp://localhost:1313/flink/flink-kubernetes-operator-docs-main/.content.zhmirrors it verbatim by policy.Does this pull request potentially affect one of the following parts:
CustomResourceDescriptors: noDocumentation
Draft status and known gaps
The PR stays in draft while the Internals section is completed:
FlinkBlueGreenDeploymentState(failed transitions abort back to the previous active state today), and the RBAC figure content predates the restructure.Scope cutoff. The content documents the operator as merged to
mainat the time of writing, the branch is rebased onto it. Open PRs that will change documented behavior are deliberately not pre-documented and will be absorbed once they land, for example:defaultConfiguration.config.yamland always mountingconfig.yaml, which touches the configuration and startup pages.Follow-ups
Planned as a continuation of this work, intentionally out of scope here: