Skip to content

Conversation

@julienmancuso
Copy link
Contributor

@julienmancuso julienmancuso commented Jun 2, 2025

Overview:

make imagePullSecrets optional when installing dynamo cloud

Details:

make imagePullSecrets optional when installing dynamo cloud

Where should the reviewer start?

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

Summary by CodeRabbit

  • Chores
    • Updated Helm chart configuration to remove default image pull secrets and related settings.
    • Improved handling of image pull secrets by only including them when explicitly defined.
    • Corrected a typo in configuration comments for clarity.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 2, 2025

Walkthrough

This update removes default and redundant imagePullSecrets configurations from several Helm values and deployment templates. The changes ensure that imagePullSecrets are only rendered when explicitly specified, eliminating unnecessary defaults and duplicate declarations across platform, operator, and api-store components.

Changes

Files Change Summary
.../api-store/templates/deployment.yaml
.../operator/templates/deployment.yaml
Removed redundant or default imagePullSecrets rendering; switched to conditional rendering using Helm logic.
.../api-store/values.yaml
.../operator/values.yaml
Commented out or removed default imagePullSecrets assignments; corrected comments.
.../platform/values.yaml Removed top-level and subchart imagePullSecrets keys and values.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Helm Chart
    participant Kubernetes

    User->>Helm Chart: Deploy chart with values.yaml
    alt imagePullSecrets specified
        Helm Chart->>Kubernetes: Render deployment with imagePullSecrets
    else imagePullSecrets not specified
        Helm Chart->>Kubernetes: Render deployment without imagePullSecrets
    end
Loading

Poem

A secret once whispered, now silent and neat,
No more defaults cluttering our Helm chart’s seat.
Only when needed, the secrets appear—
Clean as a meadow, with nothing to fear.
The bunnies rejoice, their YAML now light,
Deployment is simple, and everything’s right!
🐰✨


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 84c27ea and acbc39f.

📒 Files selected for processing (1)
  • deploy/cloud/helm/platform/components/operator/templates/deployment.yaml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • deploy/cloud/helm/platform/components/operator/templates/deployment.yaml
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Build and Test - vllm

🪧 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 sequence diagram to generate a sequence diagram of the changes in 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.

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.

Copy link
Contributor

@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 (1)
deploy/cloud/helm/platform/components/operator/templates/deployment.yaml (1)

123-125: Conditionally render imagePullSecrets only when defined.

The new with .Values.imagePullSecrets block prevents rendering an empty imagePullSecrets array, making pull secrets truly optional.
For more idiomatic YAML, consider using toYaml instead of toJson:

-      imagePullSecrets: {{ . | toJson }}
+      imagePullSecrets:
+        {{ . | toYaml | nindent 8 }}
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 859944f and 84c27ea.

📒 Files selected for processing (5)
  • deploy/cloud/helm/platform/components/api-store/templates/deployment.yaml (0 hunks)
  • deploy/cloud/helm/platform/components/api-store/values.yaml (1 hunks)
  • deploy/cloud/helm/platform/components/operator/templates/deployment.yaml (1 hunks)
  • deploy/cloud/helm/platform/components/operator/values.yaml (1 hunks)
  • deploy/cloud/helm/platform/values.yaml (0 hunks)
💤 Files with no reviewable changes (2)
  • deploy/cloud/helm/platform/components/api-store/templates/deployment.yaml
  • deploy/cloud/helm/platform/values.yaml
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Build and Test - vllm
🔇 Additional comments (2)
deploy/cloud/helm/platform/components/operator/values.yaml (1)

110-110: Make imagePullSecrets optional by commenting out the default.

Commenting out the default imagePullSecrets: [] ensures no empty list is rendered unless explicitly provided, aligning with the goal to make pull secrets opt-in.

deploy/cloud/helm/platform/components/api-store/values.yaml (1)

26-27: Remove the default imagePullSecrets to enforce opt-in configuration.

By commenting out the imagePullSecrets: [] entry, users must now explicitly define pull secrets when needed, keeping the chart lean and flexible.

@hhzhang16
Copy link
Contributor

What if the user wants to use ImagePullSecrets like $DOCKER_SECRET_NAME (which is currently created in deploy.sh)? Would everything still work properly?

@julienmancuso
Copy link
Contributor Author

What if the user wants to use ImagePullSecrets like $DOCKER_SECRET_NAME (which is currently created in deploy.sh)? Would everything still work properly?

Yes, to clarify this change, it allows for users to provide any imagePullSecrets they want.
For example, it works in the context of deploy.sh which provides $DOCKER_SECRET_NAME.
The issue is that by default, if not provided, it was setting it as en empty list which doesn't work in environment where you don't need to provide imagePullSecrets (GKE, ...)

@julienmancuso julienmancuso requested a review from hhzhang16 June 2, 2025 15:57
@julienmancuso julienmancuso merged commit 3ef7761 into main Jun 2, 2025
10 of 11 checks passed
@julienmancuso julienmancuso deleted the jsm/dep-120 branch June 2, 2025 17:50
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