Skip to content

Dev Guide - Creating Diagrams

Oops... TODO / WIP page

This page is not completed!

There are a few options to provide diagrams to this documentation:

  • Migrammer
  • Mermaid
  • Images (static)
  • Draw.io / Diagrams.net

Attention

We will not store images directly to the source code.

The steps below will share how you can embed diagrams to the guides/documentation without needing to add images to the CVS.

Migrammer

The migrammer allows you to create Diagram as a Code. The mkdocs on this project will auto-build python diagrams to allow you to reference the images to the documentation.

To create an standard of diagrams, all the python files must be under the directory docs/diagrams/, and all the images generated by the diagrams should be under docs/diagrams/images - ignored by github.

An example diagram is provided on docs/diagrams/example.diagram.py and the image will be generated on docs/diagrams/images/example.png.

  • Code:
  • Referencing the image

Example Diagram

Mermaid

You also can add Mermaid charts directly on the markdowns.

A short example of the flow:

Images (static)

Static images can be added to the documentatoin by uploading it to the Wiki Page with the prefix image/, then the URL can be referenced on the docs.

Draw.io / Diagrams.net

You can embed the Diagram from Diagrams.net directly to the markdown file by following the option: File > Embed > Html...

0
create_cluster
config
 (~/.ansible/okd-installer/clusters/{cluster_name})
action
config
config_provider
install_clients
install
clients
stack_iam
stack_dns
stack_network
stack_loadbalancer
stack_compute
destroy_cluster
cloud-iam
cloud-dns
cloud-network
cloud-compute
cloud-loadbalancer
Destroy
Resources
destroy
os_mirror
1. Upload
OS Image
2. Create
Image
os_mirror
Provider Ansible modules / collection
Provider's Cloud SDK / API
Provider's Cloud Resources
Generic/External Ansible Roles (ansible-role-{name}
Ansible Collection okd-installer
(Infra Automation / UPI)
openshift-installer
assisted-installer
openshift-installer
oc
ccoctl
butane
~/.ansible/okd-installer/bin
Playbooks
Roles (internal)
upload
bootstrap
ignition
to storage
(bucket)
bootstrap
'
run single
playbook stack_*
User / Admin /
Customer / Partner
/ Builder
custom
create_cluster
playbook
custom vars
(infra as a code)
User land / OKD Dev Builder
Cloud Provider
Cloud Provider + Public (OpenSource)
Comminity (OpenSource)
OKD Comminity (OpenSource)
DIY
Ansible Collection okd-installer (project overview)
https://github.com/mtulio/ansible-collection-okd-installer
Ownership: