Skip to content

docs: add documentation for harvester-node-disk-manager ConfigMap#975

Open
Yu-Jack wants to merge 1 commit intoharvester:mainfrom
Yu-Jack:HARV-5059
Open

docs: add documentation for harvester-node-disk-manager ConfigMap#975
Yu-Jack wants to merge 1 commit intoharvester:mainfrom
Yu-Jack:HARV-5059

Conversation

@Yu-Jack
Copy link
Collaborator

@Yu-Jack Yu-Jack commented Feb 13, 2026

harvester/harvester#5059

  • Need to put the link next to this after merging this doc PR.
image

@github-actions
Copy link

github-actions bot commented Feb 13, 2026

Name Link
🔨 Latest commit 825234e
😎 Deploy Preview https://69a50e14c5f3032266b5c50d--harvester-preview.netlify.app

- Add new disk-filter-and-auto-provision.md page with complete documentation
- Document ConfigMap location, structure, and configuration options
- Update settings.md to link to the new documentation page

Signed-off-by: Jack Yu <jack.yu@suse.com>
@Yu-Jack Yu-Jack marked this pull request as ready for review March 2, 2026 04:08
Copilot AI review requested due to automatic review settings March 2, 2026 04:08
@Yu-Jack Yu-Jack requested review from Vicente-Cheng and tserong March 2, 2026 04:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds new documentation for the harvester-node-disk-manager ConfigMap, which is the recommended way (from Harvester v1.8.0 onwards) to configure disk filtering and auto-provisioning. It also updates the legacy auto-disk-provision-paths setting page to reference the new ConfigMap approach.

Changes:

  • New disk-filter-and-auto-provision.md page documenting the ConfigMap-based disk filtering and auto-provisioning feature
  • Update to settings.md adding a version note and a callout block pointing to the new page

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
docs/advanced/disk-filter-and-auto-provision.md New documentation page covering ConfigMap location, YAML configuration structure, hostname patterns, filter options, auto-provisioning options, and migration from the legacy setting
docs/advanced/settings.md Adds a **Versions** field and a :::note callout to the auto-disk-provision-paths section directing readers to the new ConfigMap-based approach

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


### `auto-disk-provision-paths` [Experimental]

**Versions**: v1.8.0 and later recommend using ConfigMap
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The **Versions** line on line 41 reads "v1.8.0 and later recommend using ConfigMap", which is inconsistent with how this field is formatted throughout the rest of settings.md. Every other **Versions** entry uses the pattern "vX.Y.Z and later" (e.g., "v1.3.0 and later" on line 71) without appended recommendation text. The recommendation already appears in the :::note block that follows (lines 47–51), so the **Versions** line should be simplified to just "v1.8.0 and later", or removed if the setting's version metadata isn't specifically tied to v1.8.0.

Suggested change
**Versions**: v1.8.0 and later recommend using ConfigMap
**Versions**: v1.8.0 and later

Copilot uses AI. Check for mistakes.
Comment on lines +124 to +126
## Migration from Legacy Setting

If you are currently using the `auto-disk-provision-paths` setting, consider migrating to this ConfigMap approach for better flexibility and control. For more information about the legacy setting, see the [`auto-disk-provision-paths`](./settings.md#auto-disk-provision-paths-experimental) setting documentation. No newline at end of file
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The PR description contains an unchecked checklist item: "Need to put the link next to this." accompanied by a screenshot. This suggests there is still a pending action to add a link somewhere in the documentation that has not been completed. Please review the screenshot in the PR description and ensure the intended link has been added before merging.

Copilot uses AI. Check for mistakes.
sidebar_label: Filter out and auto provision disks
title: "Filter out and auto provision disks"
---

Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The new file is missing the <head> block with the canonical URL that every other doc page in docs/advanced/ includes. All other files in this directory have a block like:

<head>
  <link rel="canonical" href="https://docs.harvesterhci.io/v1.7/advanced/disk-filter-and-auto-provision"/>
</head>

This is important for SEO consistency across the documentation site. Please add this block after the frontmatter, following the pattern used throughout docs/advanced/.

Suggested change
<head>
<link rel="canonical" href="https://docs.harvesterhci.io/v1.7/advanced/disk-filter-and-auto-provision"/>
</head>

Copilot uses AI. Check for mistakes.
- "/dev/sdd"
filters.yaml: |
- hostname: "*"
excludeLabels: ["COS_*, HARV_*"]
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The excludeLabels value ["COS_*, HARV_*"] contains two wildcard patterns as a single string separated by a comma. Based on the pattern used by all other list fields in the same examples (e.g., excludeVendors: ["longhorn", "thisisaexample"], excludeDevices: ["/dev/sdd", "/dev/sd*"]), each pattern should be a separate list item. The value should be ["COS_*", "HARV_*"] to correctly represent two distinct label exclusion patterns.

Suggested change
excludeLabels: ["COS_*, HARV_*"]
excludeLabels: ["COS_*", "HARV_*"]

Copilot uses AI. Check for mistakes.
```yaml
filters.yaml: |
- hostname: "*"
excludeLabels: ["COS_*, HARV_*"]
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The excludeLabels value ["COS_*, HARV_*"] contains two wildcard patterns as a single string separated by a comma. Based on the pattern used by all other list fields in the same examples (e.g., excludeVendors: ["longhorn", "thisisaexample"], excludeDevices: ["/dev/sdd", "/dev/sd*"]), each pattern should be a separate list item. The value should be ["COS_*", "HARV_*"] to correctly represent two distinct label exclusion patterns.

Copilot uses AI. Check for mistakes.
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