Skip to content

Commit

Permalink
fix: onprem storage incorrect config (#345)
Browse files Browse the repository at this point in the history
fix: #344
  • Loading branch information
zqfan authored Oct 9, 2020
1 parent 3a6a18d commit c2c6fd9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 2 additions & 4 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,8 @@
"Zeromq": "ZeroMQ",
},
"storage": {
"ceph": {
"CEPH": "ceph",
"Ceph-OSD": "CEPH-OSD"
}
"Ceph": "CEPH",
"CephOsd": "CEPH_OSD",
},
"workflow": {
"Kubeflow": "KubeFlow",
Expand Down
9 changes: 8 additions & 1 deletion diagrams/onprem/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@

from . import _OnPrem


class _Storage(_OnPrem):
_type = "storage"
_icon_dir = "resources/onprem/storage"


class CephOsd(_Storage):
_icon = "ceph-osd.png"


class Ceph(_Storage):
_icon = "ceph.png"


class Glusterfs(_Storage):
_icon = "glusterfs.png"


# Aliases

{'CEPH': 'ceph', 'Ceph-OSD': 'CEPH-OSD'} = ceph
CEPH = Ceph
CEPH_OSD = CephOsd
6 changes: 3 additions & 3 deletions docs/nodes/onprem.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Node classes list of onprem provider.
- **diagrams.onprem.network.Nginx**
- **diagrams.onprem.network.Ocelot**
- **diagrams.onprem.network.OpenServiceMesh**, **OSM** (alias)
- **diagrams.onprem.network.Opnsense**, **OPNsense** (alias)
- **diagrams.onprem.network.Opnsense**, **OPNSense** (alias)
- **diagrams.onprem.network.Pfsense**, **PFSense** (alias)
- **diagrams.onprem.network.Pomerium**
- **diagrams.onprem.network.Powerdns**
Expand Down Expand Up @@ -194,8 +194,8 @@ Node classes list of onprem provider.

## onprem.storage

- **diagrams.onprem.storage.CephOsd**
- **diagrams.onprem.storage.Ceph**
- **diagrams.onprem.storage.CephOsd**, **CEPH_OSD** (alias)
- **diagrams.onprem.storage.Ceph**, **CEPH** (alias)
- **diagrams.onprem.storage.Glusterfs**

## onprem.vcs
Expand Down

0 comments on commit c2c6fd9

Please sign in to comment.