Skip to content

OSDOCS-17042 [CQA] Convert callouts to definition lists in MachineSet YAML#105995

Open
bscott-rh wants to merge 1 commit into
openshift:mainfrom
bscott-rh:OSDOCS-17042-pr1-machineset-yaml
Open

OSDOCS-17042 [CQA] Convert callouts to definition lists in MachineSet YAML#105995
bscott-rh wants to merge 1 commit into
openshift:mainfrom
bscott-rh:OSDOCS-17042-pr1-machineset-yaml

Conversation

@bscott-rh
Copy link
Copy Markdown
Contributor

@bscott-rh bscott-rh commented Feb 4, 2026

Replace numbered callouts with definition list format in platform-specific machineset YAML sample files for improved readability and standardization.

Changes:

  • AWS, Azure, Azure Stack Hub, GCP, IBM Cloud, Nutanix, OSP, vSphere
  • Generic machineset-creating.adoc

Version(s):
4.16+

Issue:
https://issues.redhat.com/browse/OSDOCS-17042

Link to docs preview:
Cloud templates
Creating a compute machine set

This is 1 of 3 PRs split out from #103488 by Claude. The other two PRs are #105996 and #105997

@openshift-ci openshift-ci Bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Feb 4, 2026
@ocpdocs-previewbot
Copy link
Copy Markdown

ocpdocs-previewbot commented Feb 4, 2026

🤖 Wed Feb 04 20:11:17 - Prow CI generated the docs preview:
https://105995--ocpdocs-pr.netlify.app
Complete list of updated preview URLs: artifacts/updated_preview_urls.txt

Replace numbered callouts with definition list format in platform-specific
machineset YAML sample files for improved readability and standardization.

Changes:
- AWS, Azure, Azure Stack Hub, GCP, IBM Cloud, Nutanix, OSP, vSphere
- Generic machineset-creating.adoc

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@bscott-rh bscott-rh force-pushed the OSDOCS-17042-pr1-machineset-yaml branch from b0a5576 to 47f273c Compare February 4, 2026 20:01
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Feb 4, 2026

@bscott-rh: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Copy Markdown
Contributor

@jeana-redhat jeana-redhat left a comment

Choose a reason for hiding this comment

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

Tricky group of files to remediate. Overall this is solid, I did have one structural note about the approach with the AWS/Azure/GCP nonguaranteed instance types. Otherwise, mostly small stuff throughout especially around trying to thread the needle on presenting these consistently across one YAML file. I'm happy to chat about any of this, of course

====
<3> The values in the `<providerSpec>` section of the compute machine set CR are platform-specific. For more information about `<providerSpec>` parameters in the CR, see the sample compute machine set CR configuration for your provider.
+
The values in the `<providerSpec>` section of the compute machine set CR are platform-specific. For more information about `<providerSpec>` parameters in the CR, see the sample compute machine set CR configuration for your provider.
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.

Please fix my egregious mistake 😛

Suggested change
The values in the `<providerSpec>` section of the compute machine set CR are platform-specific. For more information about `<providerSpec>` parameters in the CR, see the sample compute machine set CR configuration for your provider.
The values in the `spec.template.spec.providerSpec` section of the compute machine set CR are platform-specific. For more information about `providerSpec` parameters in the CR, see the sample compute machine set CR configuration for your provider.

I think you can get away with only using the path once, but it's not a replaceable value and idk why I did that

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.

I think you might want this to indent one over to the left - if so, use an open block to accomplish that

where:

`<infrastructure_id>`:: Specifies the cluster infrastructure ID.
`<infrastructure_id>_<role>`:: Specifies a default node label.
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.

tiny typo

Suggested change
`<infrastructure_id>_<role>`:: Specifies a default node label.
`<infrastructure_id>-<role>`:: Specifies a default node label.

where:

`<secret_name>`:: Specifies the name of the secret in the `openshift-machine-api` namespace that contains the required vCenter credentials.
`dataDisks`:: Specifies the collection of data disk definitions. For more information, see "Configuring data disks by using machine sets".
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.

This one is an outlier. I don't see a good way to make it into a user-replaced value, and I think it would be unfortunate for readability to swap the rest over to YAML field paths. WDYT about moving the contents of this one to a note at the end of the list like I think I mentioned on another PR with a similar snag?

Comment on lines +33 to +34
Machine sets running on AWS support non-guaranteed Spot Instances. You can save on costs by using Spot Instances at a lower price compared to
On-Demand Instances on AWS. You can configure Spot Instances by adding `spotMarketOptions` to the `MachineSet` YAML file.
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.

This is conditioned for edge, but these lines came from the infra docs. It also applies to the standard machine set.

For a standard machine set, the non-guaranteed instance type docs are in the same assembly, but for the infra machine set docs, we do need to make sure there are still links to the content as they were in e.g.

Machine sets running on AWS support non-guaranteed xref:../machine_management/creating_machinesets/creating-machineset-aws.adoc#machineset-non-guaranteed-instance_creating-machineset-aws[Spot Instances]. You can save on costs by using Spot Instances at a lower price compared to
On-Demand Instances on AWS. xref:../machine_management/creating_machinesets/creating-machineset-aws.adoc#machineset-creating-non-guaranteed-instance_creating-machineset-aws[Configure Spot Instances] by adding `spotMarketOptions` to the `MachineSet` YAML file.

So, I think probably:

  • move this into the infra version of the body
  • it doesn't need to be a note - it's just a config option that we chose to mention for infra machine sets
  • add docs titles so that users know what they are looking for
  • add those docs links in an AR section under the modules
Machine sets running on AWS support non-guaranteed Spot Instances. You can save on costs by using Spot Instances at a lower price compared to On-Demand Instances on AWS. For more information, see "Machine sets that deploy machines as Spot Instances".

...

.Additional resources

* xref:../machine_management/creating_machinesets/creating-machineset-aws.adoc#machineset-non-guaranteed-instance_creating-machineset-aws[Machine sets that deploy machines as Spot Instances]

It might make more sense to do this in #105997

ifndef::infra,edge[]
<2> Specify the infrastructure ID, role node label, and zone.
<3> Specify the role node label to add.
`<infrastructure_id>-role-<zone>`:: Specifies the infrastructure ID, role node label, and zone.
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.

Suggested change
`<infrastructure_id>-role-<zone>`:: Specifies the infrastructure ID, role node label, and zone.
`<infrastructure_id>-<role>-<zone>`:: Specifies the infrastructure ID, role node label, and zone.

Comment on lines +23 to +24
Machine sets running on {gcp-short} support non-guaranteed preemptible VM instances. You can save on costs by using preemptible VM instances at a lower price
compared to normal instances on {gcp-short}. You can configure preemptible VM instances by adding `preemptible` to the `MachineSet` YAML file.
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.

this guy has the same issue as AWS and Azure

Comment on lines +142 to +144
`gcpMetadata`:: Optional: Specifies custom metadata in the form of a `key:value` pair. For example use cases, see the {gcp-short} documentation for link:https://cloud.google.com/compute/docs/metadata/setting-custom-metadata[setting custom metadata].
`<project_name>`:: Specifies the name of the {gcp-short} project that you use for your cluster.
`serviceAccounts`:: Specifies a single service account. Multiple service accounts are not supported.
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.

since there are fewer callouts here and there are two that would be hard to make variables, you might consider doing all of these as dot paths (you might have a better idea to get them consistent)

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.

this one is a little harder to get consistent wrt callout replacement strategy. might want to come back to nutanix after the rest are done to see if any ideas have suggested themselves

link:https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.0/html/command_line_interface_reference/server#server_group_create[creating a server group]. For most deployments, `anti-affinity` or `soft-anti-affinity` policies are recommended.
<5> Required for deployments to multiple networks. To specify multiple networks, add another entry in the networks array. Also, you must include the network that is used as the `primarySubnet` value.
<6> Specify the {rh-openstack} subnet that you want the endpoints of nodes to be published on. Usually, this is the same subnet that is used as the value of `machinesSubnet` in the `install-config.yaml` file.
`networks`:: Required for deployments to multiple networks. To specify multiple networks, add another entry in the networks array. Also, you must include the network that is used as the `primarySubnet` value.
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.

Possibly this could be a note to avoid being the lone field?

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.

similar things as some of the challenges earlier.

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