Skip to content

Update Flux Operator to 0.18.0 - #703

Merged
Andrei Kvapil (kvaps) merged 1 commit into
cozystack:mainfrom
kingdonb:update-flux-oper-0.18
Mar 23, 2025
Merged

Andrei Kvapil (kvaps) merged 1 commit into
cozystack:mainfrom
kingdonb:update-flux-oper-0.18

Conversation

@kingdonb

@kingdonb Kingdon Barrett (kingdonb) commented Mar 22, 2025 •

Copy link
Copy Markdown
Member

Released early this week

https://github.com/controlplaneio-fluxcd/flux-operator/releases/tag/v0.18.0

Summary by CodeRabbit

  • New Features

    • Upgraded the charts to version 0.18.0.
    • Added options for custom pod scheduling using node selectors.
    • Introduced a reporting configuration with a customizable interval through an environment variable.
  • Documentation

    • Updated release information and configuration details to reflect the new options and version update.

@coderabbitai

coderabbitai Bot commented Mar 22, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

This pull request bumps the version numbers in the Flux Operator and Flux Instance charts from 0.17.0 to 0.18.0. It also adds new configuration options for the Flux Operator by introducing a reporting interval and a node selector. The changes span updates to chart metadata, documentation, deployment templates, schema definitions, and default values.

Changes

File(s) Change Summary
packages/.../flux-operator/Chart.yaml, packages/.../flux-instance/Chart.yaml Updated appVersion from v0.17.0 to v0.18.0 and version from 0.17.0 to 0.18.0.
packages/.../flux-operator/README.md Updated version badge to 0.18.0 and added configuration options: nodeSelector and reporting.
packages/.../flux-instance/README.md Updated version badge information from 0.17.0 to 0.18.0.
packages/.../flux-operator/templates/deployment.yaml Added REPORTING_INTERVAL environment variable and a conditional node selector block for pod scheduling.
packages/.../flux-operator/values.schema.json Added schema properties for nodeSelector (object) and reporting (object with required interval as string).
packages/.../flux-operator/values.yaml Introduced new sections: reporting with interval: 5m and nodeSelector: {} for deployment configuration.

Possibly related PRs

  • Update Flux Operator #681: Updates similar version fields in Chart.yaml for the Flux Operator, indicating a related version bump.

Suggested labels

documentation, size:M

Suggested reviewers

  • lllamnyp
  • kvaps

Poem

Hopping through the fields of code so bright,
I nibble on updates, version changes in sight.
New carrots of config in every part,
With reporting and selectors to smartly start.
I’m a rabbit coding with cheerful delight!
🥕 Keep on hopping into the new release!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 0

🧹 Nitpick comments (3)
packages/system/fluxcd-operator/charts/flux-operator/README.md (1)

51-51: Wording suggestion for priorityClassName description.
A determiner is missing in the description for priorityClassName. Consider revising it to “The pod priority class name. Recommended value is system-cluster-critical” for improved clarity.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~51-~51: A determiner appears to be missing. Consider inserting it.
Context: ...tring | "" | Pod priority class name. Recommended value is system-cluster-critical. | | r...

(AI_EN_LECTOR_MISSING_DETERMINER)

packages/system/fluxcd-operator/charts/flux-operator/templates/deployment.yaml (1)

113-117: Addition of Node Selector Block & YAML Formatting
The new node selector block allows users to specify pod scheduling criteria via Helm values. Verify that the intended indentations are preserved when rendered. Also, note that YAML lint reports an extra blank line at line 117—please consider removing unnecessary blank lines for consistency.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 117-117: too many blank lines

(1 > 0) (empty-lines)

packages/system/fluxcd-operator/charts/flux-operator/values.schema.json (1)

197-202: Schema Definition for nodeSelector
The new nodeSelector property is added as an object. The use of "type": [ "object" ] (an array with a single type) is unconventional; unless intentional for future extensibility, consider specifying it as "type": "object" for clarity.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 869bd4f and c5076a1.

📒 Files selected for processing (7)
  • packages/system/fluxcd-operator/charts/flux-operator/Chart.yaml (2 hunks)
  • packages/system/fluxcd-operator/charts/flux-operator/README.md (2 hunks)
  • packages/system/fluxcd-operator/charts/flux-operator/templates/deployment.yaml (2 hunks)
  • packages/system/fluxcd-operator/charts/flux-operator/values.schema.json (2 hunks)
  • packages/system/fluxcd-operator/charts/flux-operator/values.yaml (2 hunks)
  • packages/system/fluxcd/charts/flux-instance/Chart.yaml (2 hunks)
  • packages/system/fluxcd/charts/flux-instance/README.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
packages/system/fluxcd-operator/charts/flux-operator/README.md

[uncategorized] ~51-~51: A determiner appears to be missing. Consider inserting it.
Context: ...tring | "" | Pod priority class name. Recommended value is system-cluster-critical. | | r...

(AI_EN_LECTOR_MISSING_DETERMINER)

🪛 YAMLlint (1.35.1)
packages/system/fluxcd-operator/charts/flux-operator/templates/deployment.yaml

[warning] 117-117: too many blank lines

(1 > 0) (empty-lines)

🔇 Additional comments (12)
packages/system/fluxcd-operator/charts/flux-operator/Chart.yaml (2)

11-11: Update appVersion to v0.18.0.
The appVersion field has been updated from v0.17.0 to v0.18.0 in accordance with the new release.


28-28: Update chart version to 0.18.0.
The chart’s version field is now set to 0.18.0, ensuring consistency with the updated appVersion.

packages/system/fluxcd/charts/flux-instance/Chart.yaml (2)

11-11: Update appVersion to v0.18.0.
The appVersion field is updated to v0.18.0, matching the new release and ensuring consistency across charts.


28-28: Update chart version to 0.18.0.
The chart version has been incremented to 0.18.0 to align with the updated application version.

packages/system/fluxcd/charts/flux-instance/README.md (2)

3-3: Version badges updated to 0.18.0.
The version and appVersion badges now correctly reflect 0.18.0, in line with the Chart.yaml updates.


49-55: New configuration options for nodeSelector and reporting added.
The table now includes entries for nodeSelector (defaulting to an empty object) and reporting (with an interval of "5m"). These additions enhance the configurability of the deployment as described in the release notes.

packages/system/fluxcd-operator/charts/flux-operator/values.yaml (2)

11-14: New reporting configuration added.
The inclusion of the reporting section with an interval set to 5m provides enhanced reporting capabilities for the operator. The required schema annotation ensures users supply this setting correctly.


103-105: New nodeSelector configuration added.
Adding the nodeSelector section (initialized as an empty object) offers flexibility for pod scheduling and is aligned with the new configuration options introduced in version 0.18.0.

packages/system/fluxcd-operator/charts/flux-operator/README.md (2)

3-3: Version badges updated to 0.18.0.
The badges at the top of the README now reflect the updated version and appVersion, ensuring that documentation is consistent with the Chart.yaml and values.yaml changes.


49-55: Document new configuration options for nodeSelector and reporting.
The updated Values table now includes entries for nodeSelector and reporting, which corresponds well with the new configurations added in the values file. This documentation helps users understand the additional customization options for pod scheduling and reporting intervals.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~51-~51: A determiner appears to be missing. Consider inserting it.
Context: ...tring | "" | Pod priority class name. Recommended value is system-cluster-critical. | | r...

(AI_EN_LECTOR_MISSING_DETERMINER)

packages/system/fluxcd-operator/charts/flux-operator/templates/deployment.yaml (1)

64-65: New Environment Variable: REPORTING_INTERVAL Configuration
These lines add the REPORTING_INTERVAL environment variable by pulling its value from {{ .Values.reporting.interval }}. Please ensure that a default is provided in the corresponding values file and that the documentation is updated accordingly.

packages/system/fluxcd-operator/charts/flux-operator/values.schema.json (1)

255-265: Schema Addition for Reporting Configuration
The new reporting property requires an interval string. Confirm that the default value (e.g., "5m") in values.yaml corresponds with this schema and that the behavior is well documented.

@kvaps Andrei Kvapil (kvaps) 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, thank you!

@kvaps
Andrei Kvapil (kvaps) merged commit b1baaa7 into cozystack:main Mar 23, 2025
@kingdonb
Kingdon Barrett (kingdonb) deleted the update-flux-oper-0.18 branch April 24, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants