Skip to content

Argo Rollouts for OpenTelemetry Operator #6519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nlamirault
Copy link
Collaborator

@nlamirault nlamirault commented Mar 27, 2025

Summary by CodeRabbit

  • Documentation

    • Reorganized and expanded the project overview to provide a clearer description of its purpose, key features, and contribution guidelines.
  • New Features

    • Introduced flexible deployment rollout configurations supporting multiple strategies for smoother updates and improved deployment management.
    • Updated component replica settings to offer enhanced control over deployment performance.

Signed-off-by: Nicolas Lamirault <[email protected]>
@nlamirault nlamirault added status/review_needed The issue or PR needs to be reviewed priority/medium This issue or PR may be useful, and needs some attention kind/feature Categorizes issue or PR as related to a new feature lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. labels Mar 27, 2025
@nlamirault nlamirault self-assigned this Mar 27, 2025
Copy link

coderabbitai bot commented Mar 27, 2025

Walkthrough

The changes reorganize and expand the documentation in the README by renaming and elaborating key sections, such as the project overview, key features, and contributing guidelines. In addition, a new YAML file for configuring Argo Rollouts is introduced, along with corresponding values modifications that define rollout strategies (canary, blue-green, etc.) and adjust the replica count for the operator.

Changes

File(s) Change Summary
README.md Reorganized content by renaming "Documentation" to "Overview", expanding project details, adding "Key Features" and "Contributing" sections, and rephrasing the license statement.
.../opentelemetry-operator/templates/rollout.yaml
.../opentelemetry-operator/values-talos-homelab.yaml
Introduced new Argo Rollouts configuration. The rollout YAML defines a Rollout resource with conditional logic for canary, blue-green, or alternative strategies, while the values file adds an argoRollouts section and updates the replica count from 1 to 0.

Sequence Diagram(s)

sequenceDiagram
    participant User as User/CI
    participant GitOps as GitOps System
    participant Cluster as Kubernetes Cluster
    participant RC as Rollout Controller

    User->>GitOps: Commit updated README & rollout configs
    GitOps->>Cluster: Apply configuration changes
    Cluster->>RC: Evaluate Argo Rollouts settings
    RC->>Cluster: Initiate rollout (selecting canary or blue-green strategy)
    Cluster-->>RC: Report deployment status
    RC->>GitOps: Confirm rollout completion
Loading

Suggested labels

area/kubernetes

Poem

I'm a rabbit with a hop and a skip,
Coding in docs with a twitch of my lip.
YAMLs and rollouts, clear as day,
Strategies unfolding in a playful way.
Hopping through changes with a smile so wide,
In the code garden, I take joy in my stride!
🐇💻


🪧 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 plan to trigger planning for file edits and PR creation.
  • @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.

@github-actions github-actions bot added the size/m Size M label Mar 27, 2025
@dosubot dosubot bot added area/kubernetes Kubernetes cloud/homelab Cloud Provider / Homelab dependency/argo Dependency Argo labels Mar 27, 2025
Copy link

@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: 0

🧹 Nitpick comments (7)
gitops/argocd/charts/opentelemetry/opentelemetry-operator/templates/rollout.yaml (3)

1-1: Helm Templating Directive Warning
The directive {{- if .Values.argoRollouts.enabled }} on line 1 is standard in Helm templates but may trigger YAML lint errors as a false positive. Ensure your linting tool is configured to handle Helm templating or add an ignore configuration for these directives.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 1-1: syntax error: expected the node content, but found '-'

(syntax)


15-23: Default Rolling Update Strategy Configuration
Within the conditional block (lines 15–23), a default canary strategy is defined when .Values.argoRollouts.strategy.rollout.enabled is true. The fixed settings (maxSurge: 1 and maxUnavailable: 1) serve as a minimal rolling update. Consider parameterizing these values in the future if you need greater flexibility.


31-38: Detailed Canary Strategy with Steps
The detailed canary strategy (lines 31–38) uses dynamic values and renders additional steps via toYaml. Verify that the resulting YAML indentation (with nindent 6) is correct, and ensure only one strategy is active at runtime in your values to prevent configuration conflicts.

gitops/argocd/charts/opentelemetry/opentelemetry-operator/values-talos-homelab.yaml (2)

8-17: Rollout Strategy Configuration
This block details three strategy types: rollout, bluegreen, and canary. Verify that enabling rollout (while keeping bluegreen and canary disabled) is the desired approach. Adding inline comments to explain the intended usage for each strategy could improve clarity.


18-18: Percentage Value Formatting
The line maxSurge: 25% on line 18 should ideally quote the percentage (e.g., "25%") to ensure correct YAML parsing as a string. This is a common practice in Kubernetes configurations.

README.md (2)

25-27: Documentation Section Consideration
There is a separate "Documentation" section following the "Key Features" section. Since the AI summary mentioned a renaming to "Overview," consider whether this section is redundant or if it could be merged with the existing overview. Clarifying the distinct roles of these sections may enhance readability.


29-32: Contributing Section Tone
The "Contributing" section is inviting and provides clear instructions, though the exclamation mark in "Contributions are welcome!" (line 31) might be toned down for a more neutral tone. A minor rewording could align better with overall project branding.

🧰 Tools
🪛 LanguageTool

[style] ~31-~31: Using many exclamation marks might seem excessive (in this case: 5 exclamation marks for a text that’s 1890 characters long)
Context: ... Contributing Contributions are welcome! Please read the [Contributing Guide](./...

(EN_EXCESSIVE_EXCLAMATION)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 15677d7 and dac38f8.

📒 Files selected for processing (3)
  • README.md (1 hunks)
  • gitops/argocd/charts/opentelemetry/opentelemetry-operator/templates/rollout.yaml (1 hunks)
  • gitops/argocd/charts/opentelemetry/opentelemetry-operator/values-talos-homelab.yaml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
gitops/argocd/charts/opentelemetry/opentelemetry-operator/templates/rollout.yaml

[error] 1-1: syntax error: expected the node content, but found '-'

(syntax)

🪛 LanguageTool
README.md

[style] ~31-~31: Using many exclamation marks might seem excessive (in this case: 5 exclamation marks for a text that’s 1890 characters long)
Context: ... Contributing Contributions are welcome! Please read the [Contributing Guide](./...

(EN_EXCESSIVE_EXCLAMATION)

🔇 Additional comments (10)
gitops/argocd/charts/opentelemetry/opentelemetry-operator/templates/rollout.yaml (3)

2-10: Metadata and Workload Reference
The metadata (including labels, name, and namespace) and the workload reference configuration are correctly templated. Please double-check that the label inclusion (include "opentelemetry-operator.labels") and namespace resolution align with your deployment conventions.


24-30: BlueGreen Strategy Configuration
The blue-green deployment block (lines 24–30) is well-structured with templated parameters for auto-promotion and service names. Please confirm that the service identifiers (opentelemetry-operator and opentelemetry-operator-preview) match existing resource definitions in your cluster.


39-40: Closing Conditional Blocks
The ending of the conditional blocks is correctly handled. It’s advisable to document in your values file that the strategy sections are mutually exclusive so that only one configuration is applied per deployment.

gitops/argocd/charts/opentelemetry/opentelemetry-operator/values-talos-homelab.yaml (3)

5-7: Argo Rollouts Basic Configuration
The argoRollouts section properly sets the enabled flag and defines the replica count for rollout management. Confirm that the specified replica count (1) meets your operational needs.


21-31: Canary Strategy Steps
The steps for the canary rollout (lines 21–31) are clearly defined, with specific weight settings and pause durations. Double-check that the sequence matches the desired rollout cadence for your environment.


33-34: Operator Replica Count Verification
The opentelemetry-operator.replicaCount is set to 0 (line 34). Please confirm that this is intentional—commonly used when the operator is managed externally or scaled by another mechanism—and that it won’t inadvertently disable the operator in your deployment.

README.md (4)

1-9: Project Title and Badges
The header and badge section clearly convey project information. The badges are informative and render links to relevant resources. No changes needed here.


10-16: Overview Section Update
The new "Overview" section provides a concise description of the project’s purpose and its GitOps-driven design principles. This is a welcome improvement in clarity and context.


17-24: Key Features Section
The "Key Features" section lists the project capabilities in a clear, bullet-point format. This structured list effectively communicates the advantages of the project.


33-36: License Section Clarity
The license section is clear and properly formatted, directing users to the Apache 2.0 License. This section meets documentation standards.

@nlamirault nlamirault added this to the v2.0.0 milestone May 22, 2025
Copy link

stale bot commented Jul 25, 2025

This issue 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.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes Kubernetes cloud/homelab Cloud Provider / Homelab dependency/argo Dependency Argo kind/feature Categorizes issue or PR as related to a new feature lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. priority/medium This issue or PR may be useful, and needs some attention size/m Size M status/review_needed The issue or PR needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant