-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPCT-36: Supporting diagrams on the documentation (#46)
https://issues.redhat.com/browse/OPCT-36 Introducing to: - http://127.0.0.1:8000/provider-certification-tool/support-guide/#opct-execution-flow - http://127.0.0.1:8000/provider-certification-tool/user-installation-review/#architecture
- Loading branch information
Showing
14 changed files
with
172 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Diagrams not manage as a code | ||
!command-diagram.png | ||
|
||
# Ignore auto generated diagrams (standard with suffix) | ||
*.diagram.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# OPCT CLI commands | ||
|
||
Here's the highest level diagram showing the filenames or packages for code: | ||
![](./command-diagram.png) |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Diagrams | ||
|
||
- [OpenShift Reference installation for OPCT](./ocp-architecture-reference.md) | ||
- [OPCT CLI Commnads](./cli.md) | ||
- [OPCT execution flow](./opct-sequence.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
hide: | ||
- toc | ||
--- | ||
|
||
# Diagram Reference Installation OpenShift | ||
|
||
Cloud Resource diagram of OpenShift HA Topology used with OPCT dedicated node: | ||
|
||
![OCP Cluster Installation Reference on Provider AWS](./ocp-ha-opct.diagram.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from diagrams import Cluster, Diagram | ||
from diagrams.aws.compute import ( | ||
EC2Instances | ||
) | ||
from diagrams.aws.network import ELB | ||
from diagrams.k8s.infra import ( Node ) | ||
|
||
from diagrams.azure.network import DNSZones | ||
|
||
with Diagram("OCP/OKD Cluster", show=False, filename="./ocp-ha-opct.diagram"): | ||
dnsApiExt = DNSZones("api.<cluster>.<domain>") | ||
dnsApsExt = DNSZones("*.apps.<cluster>.<domain>") | ||
|
||
with Cluster("VPC/Network"): | ||
|
||
with Cluster("Public subnets"): | ||
lbe_api = ELB("LB API-Ext") | ||
lbe_apps = ELB("LB Apps-Ext") | ||
|
||
with Cluster("Private subnets"): | ||
lbi_api = ELB("LB API-Int") | ||
dnsApiInt = DNSZones("api-int.<cluster>.<domain>") | ||
with Cluster("Control Plane Pool"): | ||
cp_group = [EC2Instances("master-0{1,2,3}")] | ||
|
||
with Cluster("Compute Pool"): | ||
# wk_group = [EC2("compute-01"), | ||
# EC2("compute-02"), | ||
# EC2("compute-03")] | ||
wk_group = [EC2Instances("compute-0{1,2,3}")] | ||
|
||
with Cluster("OPCT Dedicated Node"): | ||
ded_node = [Node("compute-04")] | ||
|
||
|
||
dnsApiExt >> lbe_api >> cp_group | ||
dnsApiInt >> lbi_api >> cp_group | ||
cp_group >> dnsApiInt >> lbi_api | ||
wk_group >> dnsApiInt >> lbi_api | ||
ded_node >> dnsApiInt >> lbi_api | ||
dnsApsExt >> lbe_apps >> wk_group |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
hide: | ||
- navigation | ||
- toc | ||
--- | ||
|
||
# OPCT Execution Flow | ||
|
||
Diagram describing the default OPCT execution flow (sequence). | ||
|
||
``` mermaid | ||
%%{init: {"flowchart": {"useMaxWidth": false}}}%% | ||
sequenceDiagram | ||
autonumber | ||
OPCT->>OCP/KAS: ./opct run -w [opts] | ||
loop Setup | ||
OCP/KAS->>OCP/KAS: Preflight Checks | ||
OCP/KAS->>OCP/KAS: Create Resources (RBAC, NS) | ||
end | ||
OCP/KAS->>Sonobuoy: create server | ||
Sonobuoy->>Plugins: create plugins | ||
loop Init | ||
Plugins->>Plugins: Extract utilities | ||
Plugins->>Plugins: Wait for Blocker plugin | ||
Plugins->>Sonobuoy: report progress | ||
end | ||
Plugins->>Plugins: Plugin-N Unblocked | ||
Plugins->>P_Upgrade: run cluster upgrade* | ||
Note right of Plugins: *--mode=upgrade | ||
P_Upgrade->>Sonobuoy: report progress | ||
P_Upgrade->>Sonobuoy: save results | ||
Plugins->>P_Conformance: run conformance plugins: kubernetes, openshift | ||
P_Conformance->>P_Conformance: kubernetes e2e tests | ||
P_Conformance->>Sonobuoy: report progress | ||
P_Conformance->>Sonobuoy: save results | ||
P_Conformance->>P_Conformance: openshift e2e tests | ||
P_Conformance->>Sonobuoy: report progress | ||
P_Conformance->>Sonobuoy: save results | ||
Plugins->>P_Artifacts: run plugin: collect artifacts | ||
P_Artifacts->>Sonobuoy: report progress | ||
P_Artifacts->>Sonobuoy: save results | ||
Sonobuoy->>OCP/KAS: collect cluster objects | ||
Sonobuoy->>Sonobuoy: Post Processor | ||
Sonobuoy->>Sonobuoy: Finished Artifacts | ||
Sonobuoy->>OPCT: Show Summary | ||
OPCT->>Sonobuoy: ./opct retrieve | ||
OPCT->>OPCT: ./opct results <result>.tar.gz | ||
OPCT->>OCP/KAS: ./opct destroy | ||
OCP/KAS->>OPCT: Finished | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
mkdocs==1.4 | ||
mkdocs==1.3.1 | ||
mkdocs-material | ||
mkdocs-mermaid2-plugin | ||
|
||
# Require graphviz | ||
mkdocs-diagrams |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters