Skip to content

Add documentation for operator features and security hardening#455

Open
posikoya wants to merge 1 commit into
openstack-k8s-operators:mainfrom
posikoya:posikoya/update-docs
Open

Add documentation for operator features and security hardening#455
posikoya wants to merge 1 commit into
openstack-k8s-operators:mainfrom
posikoya:posikoya/update-docs

Conversation

@posikoya

Copy link
Copy Markdown
Contributor

Document configurable OpenStack config, network attachments, nodeSelector/tolerations, security hardening, privileged mode capabilities, image creation timeout, and tempest cleanup in crds.rst. Add ServiceConfigReady condition diagnostics to guide.rst.

To run docs:
./docs/build-docs.sh
sphinx-autobuild docs/source docs/build/html

@openshift-ci openshift-ci Bot requested review from imatza-rh and kstrenkova June 18, 2026 07:04
@posikoya posikoya force-pushed the posikoya/update-docs branch from 9264978 to 336ffee Compare June 18, 2026 07:09
@posikoya posikoya self-assigned this Jun 18, 2026
@posikoya posikoya requested review from adrianfusco and belolipa June 18, 2026 12:28

@kstrenkova kstrenkova left a comment

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.

Thank you for the work you put into this, this PR is much needed!

Saying that, I have left a lot of comments asking for changes. Overall, it is all about the same thing: please make it more compact. I don't think users want to read through sentences that are giving them no new information. I think the documentation should go straight to the point while having the most needed information :D

The change tackles the right things, however it could use some polishing to match the old style of the documentation and some sections moved to a different place.

Comment thread docs/source/crds.rst Outdated
Comment thread docs/source/crds.rst Outdated
Comment thread docs/source/crds.rst Outdated
Comment thread docs/source/crds.rst Outdated

* :ref:`ansibletest-custom-resource`

.. _configurable-openstack-config:

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 don't think this is in the right place. I wouldn't say it's such a big feature to be added under this section. It rather makes a bit cluttered with a feature that will not be used as much. I would put it under Run Tests via Test Operator and make it a lot shorter.

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.

You moved it to the other file, but the remaining text is still here :D

Comment thread docs/source/crds.rst Outdated
Comment thread docs/source/crds.rst Outdated
Comment thread docs/source/crds.rst Outdated
Comment thread docs/source/crds.rst Outdated
Comment thread docs/source/guide.rst Outdated
Comment thread docs/source/guide.rst Outdated
@openshift-ci

openshift-ci Bot commented Jul 10, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: posikoya
Once this PR has been reviewed and has the lgtm label, please ask for approval from kstrenkova. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@posikoya posikoya force-pushed the posikoya/update-docs branch from 65c0d36 to 4660e80 Compare July 10, 2026 14:28
@posikoya posikoya requested a review from kstrenkova July 10, 2026 14:28

@kstrenkova kstrenkova left a comment

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.

Thank you for your changes :D The structure is better now, but I left more comments to further reduce a bit of clutter. I hope my comments make sense, but if you are unsure, please let me know!

Comment thread docs/source/security.rst Outdated
arbitrary packets. This is required by tools like :code:`ping` and
:code:`tcpdump`, consumed by Tempest network connectivity tests.

Behaviour Per Framework

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 wouldn't add this Behaviour Per Framework section. First of all, I am not sure if the text is correct for every resource. Then I am also concerned that it is just text clutter.

Comment thread docs/source/crds.rst Outdated

.. _tempest-cleanup:

Tempest Cleanup

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 can remove the whole Tempest Cleanup section. I don't think it's difficult to understand what the cleanup does, it's also just setting one boolean value.

If we want to let people know of it's existence, we can add it into the Tempest Custom Resource as a comment like:

# Set to true to remove all resources created by Tempest during teardown
#    cleanup: false

Comment thread docs/source/crds.rst Outdated
effect: "NoSchedule"
containerImage: quay.io/podified-antelope-centos9/openstack-ansible-tests:current-podified

.. _image-creation-timeout:

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 would remove this section as well. It is only Tempest specific and everyone knows what a timeout means. I think the section overall is too detailed around how it works as well. We don't need to explain every little detail to the reader, the documentation should explain briefly how it works and how to use it.

Comment thread docs/source/guide.rst Outdated

.. code-block:: text

Conditions:

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.

When you run oc describe do you see this output? :D You need to talk about something that the user will experience exactly.

I would recommend either talking about using oc get tempest tempest-tests -o jsonpath='{.status.conditions}' | jq or talk about what you can really see under Conditions, e.g.

Conditions:
  Type                        Status
  PodReadyToStartContainers   False 
  Initialized                 True 
  Ready                       False 
  ContainersReady             False 
  PodScheduled                True 

Comment thread docs/source/guide.rst Outdated
NetworkAttachmentsReady True Ready Network attachments ready
Ready False Requested Deployment is running

Each condition is **True** (passed), **False** (failed — read the Message for

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 part could be either removed or simplified (plus put next to the first sentence in this section). I think saying the first thing that failed is the problem should be obvious 😅

Comment thread docs/source/crds.rst Outdated

.. _git-branch-selection-for-ansibletest:

Git Branch Selection for AnsibleTest

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 would remove this section and add it to the AnsibleTest Custom Resource as a comment. I don't think the feature is very difficult to understand and doesn't need much text to be explained.

Comment thread docs/source/crds.rst Outdated

* :ref:`ansibletest-custom-resource`

.. _configurable-openstack-config:

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.

You moved it to the other file, but the remaining text is still here :D

Comment thread docs/source/crds.rst Outdated

.. _network-attachments:

Network Attachments

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.

Network attachments are another feature that I would just comment on in Tempest Custom Resource and Tobiko Custom Resource. It is not difficult to understand, just adding another network, which can be explained in a simple comment.

Comment thread docs/source/security.rst Outdated
.. _security-hardening:

==================
Security Hardening

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 would perhaps name this section Test pod privileges or something similar. I think talking about how it is set to follow security best practices is nice, just not piling too much (not useful) information on the user.

Overall this page is a good idea, but some parts are too specific like:

Two unnecessary host mounts (:code:`/etc/localtime` and
:code:`/etc/machine-id`) were also removed — .....

It should talk about things that actually affect the reader. Explain when to use it, when not.

@posikoya posikoya force-pushed the posikoya/update-docs branch from 4660e80 to f3e5ea3 Compare July 14, 2026 18:01
Document configurable OpenStack config, network attachments,  nodeSelector/tolerations, security hardening, privileged mode  capabilities, image creation timeout, and tempest cleanup in crds.rst.  Add ServiceConfigReady condition diagnostics to guide.rst.
@posikoya posikoya force-pushed the posikoya/update-docs branch from f3e5ea3 to c2b18a9 Compare July 14, 2026 18:07
@posikoya posikoya requested a review from kstrenkova July 14, 2026 18:08
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.

2 participants