Skip to content

Instantly share code, notes, and snippets.

@fabiand
Last active February 27, 2023 08:32
Show Gist options
  • Save fabiand/6a8ed4d449b4f01bdd8e30c87b63b4e3 to your computer and use it in GitHub Desktop.
Save fabiand/6a8ed4d449b4f01bdd8e30c87b63b4e3 to your computer and use it in GitHub Desktop.
flows.md
flowchart
    OCP --> AdminView
    OCP --> DevView

    subgraph Views
        DevView
        AdminView
    end
    
    DevView --> Virtualization

    subgraph nav
        Virtualization --> VirtualMachines
        Virtualization --> Catalog
        Virtualization --> BootableVolumes
        Virtualization --> DataSources
    end

    subgraph VirtualMachinesPage
        VirtualMachines --> CreateVM

        CreateVM --> FromYaml
        CreateVM --> FromVol
    end

    pvc(PVC)
    subgraph CatalogPage
        Catalog --> InstanceTypes
        Catalog --> Template

        FromVol --> InstanceTypes

        InstanceTypes --> UseCustomVol
        InstanceTypes --> UseDataSource
        
        subgraph InstanceTypesFlow
            subgraph CustomVolFlow
                vol --> ip[/InPlace/]
                UseCustomVol --> UploadVol --> vol
                UseCustomVol -- ExistingVol --> vol
            end
            
            subgraph DataSourceFlow
                c[/DVClone/]
                UseDataSource --> c
            end
        end
        subgraph TemplateFlow
            Template --> ct[/DVClone/]
        end
    end
    vol --> pvc
    ip --> pvc
    ct --> pvc
    c --> pvc

    
    pvc --> StepStorage
    pvc --> ReviewCreate

    style VmCreationPage fill:#f000,stroke-dasharray: 10 10
    subgraph VmCreationPage
        subgraph CustomCreate
            StepStorage --> StepDetails
        end
        subgraph FastCreate
            ReviewCreate
        end
    end
    VM[(VM)]
    ReviewCreate --> VM
    StepDetails --> VM

    AdminView --> Virtualization
Loading
flowchart
    OCP([OCP])
    OCP --> AdminView
    OCP --> DevView

    subgraph Views
        DevView
        AdminView
    end
    
    DevView --> Virtualization

    subgraph nav
        Virtualization --> VirtualMachines
        Virtualization --> Catalog
        Virtualization --> BootableVolumes
        Virtualization --> DataSources
    end

    subgraph VirtualMachinesPage
        VirtualMachines --> CreateVM

        CreateVM --> FromYaml
        CreateVM --> FromUpload
        CreateVM --> FromPvc
        CreateVM --> FromCatalog
    end

    style PvcSelection fill:#f000,stroke-dasharray: 10 10
    subgraph PvcSelection[PvcSelection]
        subgraph CustomFlowPage
            ExistingVol[\ExistingVol/]
            UploadVol[\UploadVol/]

            FromPvc --> ExistingVol
            FromUpload --> UploadVol
            
            plainPvc[(plainPvc)]
            UploadVol --> plainPvc
            ExistingVol -- no labels --> plainPvc

            richPvc[(richPvc)]
            plainPvc --> addLabels[\AddLabels/] -- has labels --> richPvc
            ExistingVol -- has labels --> richPvc --> cc[[DVClone]]
        end
        subgraph CatalogPage
            UseDataSource[\UseDataSource/]
            UseTemplate[\UseTemplate/]

            Catalog --> UseDataSource
            Catalog --> UseTemplate

            FromCatalog --> UseDataSource
            
            c[[DVClone]]
            UseDataSource --> c
            
            UseTemplate --> ct[[DVClone]]
        end
    end

    pvc[(PVC)]
    richPvc -- in-place --- pvc
    cc --- pvc
    ct --- pvc
    c --- pvc
    
    pvc --> StepStorage
    pvc --> ReviewCreate

    style VmCreationPage fill:#f000,stroke-dasharray: 10 10
    subgraph VmCreationPage
        subgraph CustomCreate
            StepStorage --> StepDetails
        end
        subgraph FastCreate
            ReviewCreate
        end
    end
    VM[(VM)]
    ReviewCreate --> VM
    StepDetails --> VM

    AdminView --> Virtualization
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment