Skip to content

Add documentation for opt-in IPv6 for containers #2677

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 1 commit into
base: master
Choose a base branch
from

Conversation

davidrapan
Copy link

@davidrapan davidrapan commented May 20, 2025

Proposed change

Add documentation for newly added opt-in IPv6 for containers

Type of change

  • Document existing features within Home Assistant
  • Document new or changing features for which there is an existing pull request elsewhere
  • Spelling or grammatical corrections, or rewording for improved clarity
  • Changes to the backend of this documentation
  • Remove stale or deprecated documentation

Checklist

  • I have read and followed the documentation guidelines.
  • I have verified that my changes render correctly in the documentation.

Additional information

Summary by CodeRabbit

  • New Features

    • Added a new API endpoint to configure Docker options, including toggling IPv6 support.
    • The Docker info API now shows whether IPv6 is enabled for containers.
  • Documentation

    • Updated API documentation to include the new endpoint and the IPv6 status field.

Copy link
Contributor

coderabbitai bot commented May 20, 2025

Warning

Rate limit exceeded

@davidrapan has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 17 minutes and 18 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between bc061c2 and d3aa4c8.

📒 Files selected for processing (1)
  • docs/api/supervisor/endpoints.md (2 hunks)
📝 Walkthrough

"""

Walkthrough

The documentation for Docker API endpoints was updated to add a new boolean field, enable_ipv6, to the /docker/info GET endpoint response. Additionally, a new POST endpoint /docker/options was introduced, allowing clients to set Docker options, specifically the enable_ipv6 setting via the request payload.

Changes

File(s) Change Summary
docs/api/supervisor/endpoints.md Added documentation for the new POST /docker/options endpoint and updated /docker/info to include the enable_ipv6 field in its response.

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant API

    Client->>API: GET /docker/info
    API-->>Client: { ..., "enable_ipv6": true/false, ... }

    Client->>API: POST /docker/options { "enable_ipv6": true/false }
    API-->>Client: 200 OK (Docker options updated)
Loading

"""


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.
    • 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 docstrings to generate docstrings for this 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 or @coderabbitai title 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.

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

🔭 Outside diff range comments (1)
docs/api/supervisor/endpoints.md (1)

1527-1536: 🛠️ Refactor suggestion

Sync the example JSON with the added field
The “Example response” block for /docker/info doesn’t include the newly documented enable_ipv6 field. Update it to demonstrate the field, for example:

{
  "version": "1.0.1",
  "enable_ipv6": false,
  "storage": "overlay2",
  "logging": "journald",
  "registries": {}
}

This will prevent confusion and ensure the docs accurately reflect the API schema.

🧹 Nitpick comments (2)
docs/api/supervisor/endpoints.md (2)

1522-1522: Unify the new field’s description for clarity
The table entry for enable_ipv6 reads “Enabled/Disabled IPv6 for containers,” which deviates from the active-voice style used elsewhere (e.g. “True if …”). Consider rephrasing to something like:

| enable_ipv6 | bool | True if IPv6 is enabled for containers |

This keeps descriptions consistent and immediately intelligible.

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe

(MD055, table-pipe-style)


1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe

(MD055, table-pipe-style)


1540-1552: Enrich the /docker/options endpoint documentation
To give users full context, you might:

  • Note that enable_ipv6 is disabled by default and toggles IPv6 support on the daemon.
  • Indicate any required post-change actions (e.g. restarting containers or the Supervisor).
  • Explicitly call out authorization requirements (endpoints default to locked unless marked unprotected).

A brief intro paragraph or a tip box would make this new endpoint more self-explanatory.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 7db53b6 and 476e0bc.

📒 Files selected for processing (1)
  • docs/api/supervisor/endpoints.md (2 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/api/supervisor/endpoints.md

1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe

(MD055, table-pipe-style)


1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe

(MD055, table-pipe-style)

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 (2)
docs/api/supervisor/endpoints.md (2)

1522-1522: Include enable_ipv6 in the example response.
The new field is documented in the table but missing from the JSON example for the GET /docker/info endpoint. Please update the example to include it, for example:

 {
   "version": "1.0.1",
+  "enable_ipv6": false,
   "storage": "overlay2",
   "logging": "journald",
   "registries": {}
 }
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe

(MD055, table-pipe-style)


1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe

(MD055, table-pipe-style)


1540-1552: Add an example payload for /docker/options.
To help users understand how to invoke this new endpoint, consider adding a concrete example payload:

Example payload:

{
  "enable_ipv6": true
}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 476e0bc and bb7d4c9.

📒 Files selected for processing (1)
  • docs/api/supervisor/endpoints.md (2 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/api/supervisor/endpoints.md

1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe

(MD055, table-pipe-style)


1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe

(MD055, table-pipe-style)

🔇 Additional comments (1)
docs/api/supervisor/endpoints.md (1)

1522-1522: Ignore markdownlint table pipe style for this row.
The table uses the existing no_leading_or_trailing pipe style consistently across all rows, so the MD055 warning can be safely ignored.

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe

(MD055, table-pipe-style)


1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe

(MD055, table-pipe-style)

@davidrapan davidrapan changed the title Add documentation for opt-in IPv6 for containers Add documentation for opt-in option IPv6 for containers May 20, 2025
@davidrapan davidrapan changed the title Add documentation for opt-in option IPv6 for containers Add documentation for opt-in IPv6 for containers May 20, 2025
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: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between bb7d4c9 and bc061c2.

📒 Files selected for processing (1)
  • docs/api/supervisor/endpoints.md (2 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/api/supervisor/endpoints.md

1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe

(MD055, table-pipe-style)


1522-1522: Table pipe style
Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe

(MD055, table-pipe-style)

⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Redirect rules - developers-home-assistant
  • GitHub Check: Header rules - developers-home-assistant
  • GitHub Check: Pages changed - developers-home-assistant

Signed-off-by: David Rapan <david@rapan.cz>
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.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy