This guide provides instructions for editing the cluster update process diagram using draw.io (diagrams.net).
You have three options to edit the diagram:
-
Online Editor (Recommended)
- Visit app.diagrams.net
- Click "Open Existing Diagram"
- Select
cluster_update_process.drawiofrom your local file system - Edit and save back to your local file
-
Desktop Application
- Download from github.com/jgraph/drawio-desktop
- Open
cluster_update_process.drawiodirectly
-
VS Code Extension
- Install the Draw.io Integration extension
- Open
.drawiofiles directly in VS Code
The diagram uses a consistent color palette. When adding new elements, use these colors:
| Element Type | Fill Color | Stroke Color | Use Case |
|---|---|---|---|
| Process Box | #E8F4F8 (Light Blue) | #2E86AB (Blue) | General process steps |
| Decision Diamond | #FFF3E0 (Light Orange) | #FF9800 (Orange) | Decision points |
| Action Box | #E8F5E9 (Light Green) | #4CAF50 (Green) | Actionable tasks |
| Warning Box | #FFEBEE (Light Red) | #F44336 (Red) | Warnings/cautions |
| Info Panel | #F5F5F5 (Light Gray) | #999999 (Gray) | Side information boxes |
- Main text: Arial, 14px
- Titles: Arial, 20px, Bold
- Code/Commands: Monospace, 12px
- Color: #333333 (Dark Gray) for regular text, #1A1A1A for titles
The diagram includes custom icons for:
- GitLab (red/orange logo)
- Docker (blue containers)
- Terminal (command line)
- Singularity (blue sphere)
- TAR/SIF files
- Workflow UI
- Storage
- Registry
- Warning/Success indicators
These icons are embedded in the draw.io file and can be found in the shapes panel on the left.
- Click on the text you want to edit
- Double-click to enter edit mode
- Type your changes
- Click outside to save
Tips:
- Keep text concise (35 characters or less per line)
- Use multiple text lines for complex descriptions
- Maintain consistent alignment (center-aligned for main workflow)
-
Copy an existing step (recommended for consistency):
- Select a similar box (e.g., process-box, action-box)
- Press
Ctrl+C(orCmd+Con Mac) - Press
Ctrl+Vto paste - Drag to desired position
-
Or create from scratch:
- Select the rectangle tool from the toolbar
- Draw a rectangle (340x70 pixels for main workflow)
- Apply the appropriate color from the color scheme above
- Add rounded corners (5px radius) in the Format panel
- Add text by double-clicking inside the shape
-
Add connecting arrows:
- Select the connector tool
- Click the source shape and drag to the destination
- The arrow will automatically snap to connection points
- Select the diamond shape from the shapes panel (or search for "diamond")
- Resize to approximately 200x80 pixels
- Apply decision-box colors (light orange fill, orange stroke)
- Add question text inside
- Add two arrows:
- One downward for "Yes" path
- One sideways for "No" path
- Label arrows with "Yes" and "No" text if needed
- Create a rectangle on the left (x: 100-380) or right (x: 950+) side
- Apply warning-box or info-panel styling
- Add an icon from the shapes panel
- Add descriptive text
- Connect to relevant step with a dashed line:
- Select the connector tool
- Right-click the line β Format β Dashed
- Navigate to the "Key Commands" box on the right side (around y: 500)
- Click inside the text area
- Edit commands in monospace font
- Keep one command per line
- If adding many commands, resize the box:
- Select the box
- Drag the corner handles to resize
The diagram includes custom SVG icons embedded in the file. To modify:
-
Change existing icon placement:
- Click and drag icons to reposition
- Use alignment tools (Arrange β Align) for precision
-
Add new icons:
- Import SVG icons: File β Import β choose SVG file
- Or use draw.io's built-in icon libraries
- Search for icons in the shapes panel (left sidebar)
- X-position: Centered around 670px
- Box width: 340 pixels
- Box height: 70 pixels (simple steps), 90-110 pixels (complex steps)
- Vertical spacing: 30-50 pixels between steps
- Left notes: X-position 100-380
- Right panels: X-position 950-1270
- Box width: 280-320 pixels
- Place in main workflow at center position
- Allow 80 pixels vertical space for the diamond
- Ensure clear "Yes" and "No" paths
- File β Save As
- Keep the
.drawioextension - Save to your repository root
- File β Export as β SVG
- Settings to use:
- β Transparent Background (or white, depending on preference)
- β Include a copy of my diagram
- Width: Leave as is (1400px)
- Border width: 0
- Save as
cluster_update_process.svg - Commit both
.drawioand.svgfiles to git
Important: Always keep both files in sync. When you update the .drawio file, remember to export a new .svg version.
- Create a backup: Save a copy of the current file
- Review existing structure: Understand how elements are organized
- Check git status: Ensure you're on the correct branch
- Maintain consistency: Use existing colors, fonts, and spacing
- Align elements: Use draw.io's alignment tools (Arrange β Align)
- Test connections: Ensure arrows connect properly to shapes
- Use layers: Organize complex diagrams with layers (View β Layers)
- Group related items: Select multiple items and use Ctrl+G to group
- Review the diagram: Zoom out (View β Zoom) to see the full picture
- Export to SVG: Keep the SVG version up to date
- Preview in browser: Open the SVG file to check rendering
- Test on GitHub: Push to a branch and verify GitHub renders it correctly
- Draw basic shapes (rectangles, circles, lines)
- Select all shapes that form your custom shape
- Right-click β Group (or Ctrl+G)
- Save for reuse: Right-click β Edit Style β Copy Style
- Create a reference section with all your standard shapes
- Place it on a separate layer (View β Layers)
- Copy shapes from the template as needed
- Hide the template layer before exporting
- Select multiple shapes (Ctrl+Click or drag selection)
- Apply style changes in Format panel
- All selected shapes will update simultaneously
| Action | Shortcut |
|---|---|
| Copy | Ctrl+C (Cmd+C) |
| Paste | Ctrl+V (Cmd+V) |
| Duplicate | Ctrl+D (Cmd+D) |
| Group | Ctrl+G (Cmd+G) |
| Ungroup | Ctrl+Shift+U (Cmd+Shift+U) |
| Align Left | Ctrl+Shift+L |
| Align Center | Ctrl+Shift+C |
| Align Right | Ctrl+Shift+R |
| Send to Back | Ctrl+Shift+B |
| Bring to Front | Ctrl+Shift+F |
Solution: Enable connection points (View β Connection Points), then reconnect arrows to the blue X marks.
Solution: Either increase box size or reduce font size. Select text and adjust in Format panel.
Solution: Ensure "Include a copy of my diagram" is checked in export settings. This embeds fonts and ensures consistency.
Solution: Icons must be embedded in the file, not linked externally. Re-import icons and embed them (File β Import β check "Embed")
Solution: Check SVG file size (GitHub has limits). Simplify the diagram or reduce embedded images if file is too large.
type: brief description
Examples:
- feat: add new validation step before deployment
- fix: correct step 5 arrow alignment
- docs: update command list in side panel
- style: adjust spacing between steps 7 and 8
- refactor: reorganize side panels for better clarity
Always commit both files together:
git add cluster_update_process.drawio
git add cluster_update_process.svg
git commit -m "feat: add docker cleanup step"# Feature branches
git checkout -b feature/add-validation-step
# Bug fixes
git checkout -b fix/arrow-alignment
# Documentation updates
git checkout -b docs/update-commands- Draw.io Documentation
- Draw.io Keyboard Shortcuts
- SVG Export Guide
- Draw.io Video Tutorials
- Color Picker Tool
- Check the draw.io help: Help β Help in the menu bar
- Visit the draw.io community forum
- See CONTRIBUTING.md for workflow guidance
Pro Tip: Use draw.io's autosave feature (File β Autosave) to prevent losing work. The editor will automatically save to your browser's local storage.