Skip to content

Correct outdated information in documentation - #3044

Open
nabuskey wants to merge 2 commits into
kubeflow:masterfrom
nabuskey:doc1
Open

nabuskey wants to merge 2 commits into
kubeflow:masterfrom
nabuskey:doc1

Conversation

@nabuskey

Copy link
Copy Markdown
Contributor

Purpose of this PR

The documentation needs a lot of love. This corrects some major issues with the documentation site.

Change Category

  • Bugfix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that could affect existing functionality)
  • Documentation update

Rationale

Checklist

  • I have conducted a self-review of my own code.
  • I have updated documentation accordingly.
  • I have added tests that prove my changes are effective or that my feature works.
  • Existing unit tests pass locally with my changes.

Additional Notes

Signed-off-by: Manabu McCloskey <manabu.mccloskey@gmail.com>
Copilot AI review requested due to automatic review settings July 14, 2026 23:42
@google-oss-prow
google-oss-prow Bot requested review from ImpSy and RobuRishabh July 14, 2026 23:42
@google-oss-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from nabuskey. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates documentation to match the current Spark Operator API and Helm chart.

Changes:

  • Corrects SparkApplication image, dependency, and monitoring guidance.
  • Fixes the ScheduledSparkApplication time-zone field.
  • Modernizes Helm configuration, metrics, CRD upgrade, and webhook instructions.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
docs/website/user-guide/writing-sparkapplication.md Updates application specification guidance.
docs/website/user-guide/using-sparkapplication.md Corrects image and init-container documentation.
docs/website/user-guide/running-sparkapplication-on-schedule.md Corrects the timeZone field name.
docs/website/getting-started/index.md Revises installation and configuration guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| --- | --- | --- |
| `controller.workers` | Concurrent controller workers | `10` |
| `controller.uiService.enable` | Create Spark UI Services | `true` |
| `spark.jobNamespaces` | Explicit namespaces containing Spark workloads | `[default]` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

here this section still says spark.jobNamespaces defaults to [] and that omitting it limits the operator to its own namespace. need to rewrite: default watches default; include "" (or empty list so --namespaces is omitted) for cluster-wide; selector adds more namespaces. Also update the SA/RBAC sentences to match.

Comment thread docs/website/getting-started/index.md
Comment thread docs/website/getting-started/index.md
Comment thread docs/website/user-guide/writing-sparkapplication.md
Comment thread docs/website/getting-started/index.md
Comment thread docs/website/getting-started/index.md
Comment thread docs/website/getting-started/index.md

@RobuRishabh RobuRishabh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@nabuskey, the docs looks solid from my side. Some minor nits

| --- | --- | --- |
| `controller.workers` | Concurrent controller workers | `10` |
| `controller.uiService.enable` | Create Spark UI Services | `true` |
| `spark.jobNamespaces` | Explicit namespaces containing Spark workloads | `[default]` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

here this section still says spark.jobNamespaces defaults to [] and that omitting it limits the operator to its own namespace. need to rewrite: default watches default; include "" (or empty list so --namespaces is omitted) for cluster-wide; selector adds more namespaces. Also update the SA/RBAC sentences to match.

Comment thread docs/website/getting-started/index.md Outdated
### CRD upgrades

To upgrade the operator, e.g., to use a newer version container image with a new tag, run the following command with updated parameters for the Helm release:
Helm does not automatically upgrade those CRDs. For upgrades that include CRD changes, enable the chart's pre-upgrade hook:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

“those CRDs” has no antecedent. we can write something like Helm installs CRDs on first install but does not upgrade them on helm upgrade. For upgrades that include CRD changes, enable …........<continue>.....

Comment thread docs/website/getting-started/index.md
Comment thread docs/website/getting-started/index.md Outdated
Configure these components with:

The operator enables cache resynchronization so periodically the informers used by the operator will re-list existing objects it manages and re-trigger resource events. The resynchronization interval in seconds can be configured using the flag `-resync-interval`, with a default value of 30 seconds.
| Helm value | Purpose | Default |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The table lists 11 values but the chart has 500+ lines of configuration. Consider adding a note like "See values.yaml for the full list of configuration options" or linking to the chart's generated docs, so users know this is a curated subset.

@@ -4,7 +4,7 @@ As with all other Kubernetes API objects, a `SparkApplication` needs the `apiVer

A `SparkApplication` also needs a [`.spec` section](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status). This section contains fields for specifying various aspects of an application including its type (`Scala`, `Java`, `Python`, or `R`), deployment mode (`cluster` or `client`), main application resource URI (e.g., the URI of the application jar), main class, arguments, etc. Node selectors are also supported via the optional field `.spec.nodeSelector`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Not touching this yet. The documentation needs a lot of changes. I'd like to make small changes like this PR.

Signed-off-by: Manabu McCloskey <manabu.mccloskey@gmail.com>

If you installed the operator using the Helm chart and overrode the `spark.jobNamespaces` to some other, pre-existing namespace, the Helm chart will create the necessary service account and RBAC in the specified namespace.

The Spark Operator uses the Spark Job Namespace to identify and filter relevant events for the `SparkApplication` CRD. If you specify a namespace for Spark Jobs, and then submit a SparkApplication resource to another namespace, the Spark Operator will filter out the event, and the resource will not get deployed. If you don't specify a namespace, the Spark Operator will see only `SparkApplication` events for the Spark Operator namespace.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you don't specify a namespace, the Spark Operator will see only SparkApplication events for the Spark Operator namespace.

This line still says that omitting namespaces limits the operator to the Spark Operator namespace. an empty spark.jobNamespaces (or "") makes the controller cluster-wide (--namespaces unset / empty). Need to rewrite to match the controller flag and the empty-list RBAC sentence.

Comment thread docs/website/getting-started/index.md
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants