-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OCDOCS 62865 provide meaningful examples for NDP #100815
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 [error] AsciiDocDITA.TaskContents: The '.Procedure' block title is missing.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 [error] AsciiDocDITA.ShortDescription: Assign [role="_abstract"] to a paragraph to use it as in DITA. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,27 @@ status: | |
|
|
||
| The default node disruption policy does not contain a policy for changes to the `/etc/containers/registries.conf.d` file. This is because both {product-title} and {op-system-base-full} use the `registries.conf.d` file to specify aliases for image short names. It is recommended that you always pull an image by its fully-qualified name. This is particularly important with public registries, because the image might not deploy if the public registry requires authentication. You can create a user-defined policy to use with the `/etc/containers/registries.conf.d` file, if you need to use image short names. | ||
|
|
||
| In the following example, when changes are made to the SSH keys, the MCO drains the cluster nodes, reloads the `crio.service`, reloads the systemd configuration, and restarts the `crio-service`. | ||
| In the following example, when changes are made to the `registries.conf.d` file, the MCO restarts the `crio-service`. | ||
|
|
||
| .Example node disruption policy for a change to the `registries.conf` file | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 [error] AsciiDocDITA.TaskTitle: Unsupported titles cannot be mapped to DITA tasks. |
||
| [source,yaml] | ||
| ---- | ||
| apiVersion: operator.openshift.io/v1 | ||
| kind: MachineConfiguration | ||
| metadata: | ||
| name: cluster | ||
| namespace: openshift-machine-config-operator | ||
| spec: | ||
| nodeDisruptionPolicy: | ||
| files: | ||
| - path: /etc/containers/registries.conf.d | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is targeting a different location than the one stated by the description above |
||
| actions: | ||
| - type: Restart | ||
| - restart: | ||
| serviceName: crio.service | ||
| ---- | ||
|
|
||
| In the following example, when changes are made to the SSH keys, the MCO reloads the systemd configuration, and restarts the `crio-service`. | ||
|
|
||
| .Example node disruption policy for an SSH key change | ||
| [source,yaml] | ||
|
|
@@ -87,14 +107,10 @@ spec: | |
| nodeDisruptionPolicy: | ||
| sshkey: | ||
| actions: | ||
| - type: Drain | ||
| - reload: | ||
| serviceName: crio.service | ||
| type: Reload | ||
| - type: DaemonReload | ||
| - restart: | ||
| serviceName: crio.service | ||
| type: Restart | ||
| type: Restart | ||
| # ... | ||
| ---- | ||
|
|
||
|
|
@@ -145,21 +161,3 @@ spec: | |
| restart: | ||
| serviceName: crio.service | ||
| ---- | ||
|
|
||
| In the following example, when changes are made to the `registries.conf` file, such as by editing an `ImageContentSourcePolicy` (ICSP) object, the MCO does not drain or reboot the nodes and applies the changes with no further action. | ||
|
|
||
| .Example node disruption policy for a registries.conf file change | ||
| [source,yaml] | ||
| ---- | ||
| apiVersion: operator.openshift.io/v1 | ||
| kind: MachineConfiguration | ||
| metadata: | ||
| name: cluster | ||
| # ... | ||
| spec: | ||
| nodeDisruptionPolicy: | ||
| files: | ||
| - actions: | ||
| - type: None | ||
| path: /etc/containers/registries.conf | ||
| ---- | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 [error] AsciiDocDITA.ShortDescription: Assign [role="_abstract"] to a paragraph to use it as in DITA.