# vexxhost/atmosphere architecture

> Architecture diagram of the GitHub repository vexxhost/atmosphere, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vexxhost/atmosphere
- Repository: https://github.com/vexxhost/atmosphere

## Overview

Atmosphere appears to support deploying and operating OpenStack on Kubernetes, with Ansible extensions, Helm-value helpers, and network utilities. A likely operator workflow is to configure cloud services and storage, then apply those settings through deployment tooling; the available README does not document that workflow, so the graph only asserts relationships visible in sampled source. The sampled OVS initializer has a clearer runtime flow: load bridge mappings, inspect interfaces, and migrate interface state. Some listed plugin capabilities are represented as independent components because their callers were not shown.

Main entry points: [`tools/extraspecfix/extraspecfix.go`](https://github.com/vexxhost/atmosphere/blob/main/tools/extraspecfix/extraspecfix.go) (Flavor spec fixer), [`crates/ovsinit/src/main.rs`](https://github.com/vexxhost/atmosphere/blob/main/crates/ovsinit/src/main.rs) (OVS initializer), [`cmd/pinimages/pinimages.go`](https://github.com/vexxhost/atmosphere/blob/main/cmd/pinimages/pinimages.go) (Image digest pinner), [`crates/ovsinit/src/lib.rs`](https://github.com/vexxhost/atmosphere/blob/main/crates/ovsinit/src/lib.rs) (Interface migration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_network["Network setup"]
  node_network_config["Bridge config<br/>[config.rs]"]
  node_ovsinit_cli["OVS initializer<br/>[main.rs]"]
  node_interface_migration["Interface migration<br/>[lib.rs]"]
  node_route_parser["Route parsing<br/>[routes.rs]"]
end

subgraph group_openstack["OpenStack configuration"]
  node_openstack_helm["Helm values<br/>[openstack_helm.go]"]
  node_service_values["Service values"]
  node_storage_values["Storage values<br/>[storage.py]"]
end

subgraph group_ansible["Ansible extensions"]
  node_subnet_module["Subnet management<br/>[subnet.py]"]
  node_federation_actions["Federation actions<br/>[federation_idp.py]"]
  node_identity_actions["Identity actions<br/>[identity_domain.py]"]
  node_identity_filters["Identity filters"]
  node_ini_filter["INI filter<br/>[from_ini.py]"]
  node_image_tag_filter["Image tag filter"]
  node_jsonnet_lookup["Jsonnet lookup<br/>[jsonnet.py]"]
  node_openstack_module_utils["OpenStack utilities<br/>[openstack.py]"]
end

subgraph group_operations["Operations tools"]
  node_extraspecfix["Flavor spec fixer<br/>[extraspecfix.go]"]
  node_portforward["Port forwarding<br/>[portforwardutil.go]"]
  node_image_pinner["Image digest pinner<br/>[pinimages.go]"]
end

node_operator(("Operator"))
node_kubernetes["Kubernetes API"]
node_openstack_db[("OpenStack database")]
node_container_registry["Container registry"]

node_operator -->|"runs"| node_ovsinit_cli
node_ovsinit_cli -->|"loads"| node_network_config
node_ovsinit_cli -->|"migrates interfaces"| node_interface_migration
node_interface_migration -->|"parses routes"| node_route_parser
node_operator -.->|"invokes"| node_subnet_module
node_operator -.->|"configures storage"| node_storage_values
node_operator -->|"runs"| node_extraspecfix
node_extraspecfix -->|"reads secret"| node_kubernetes
node_extraspecfix -->|"opens tunnel"| node_portforward
node_extraspecfix -->|"updates flavor"| node_openstack_db
node_operator -->|"runs"| node_image_pinner
node_image_pinner -->|"fetches digests"| node_container_registry
node_image_pinner -->|"updates image references"| node_openstack_helm

click node_network_config "https://github.com/vexxhost/atmosphere/blob/main/crates/ovsinit/src/config.rs"
click node_ovsinit_cli "https://github.com/vexxhost/atmosphere/blob/main/crates/ovsinit/src/main.rs"
click node_interface_migration "https://github.com/vexxhost/atmosphere/blob/main/crates/ovsinit/src/lib.rs"
click node_route_parser "https://github.com/vexxhost/atmosphere/blob/main/crates/ovsinit/src/routes.rs"
click node_openstack_helm "https://github.com/vexxhost/atmosphere/blob/main/internal/openstack_helm/openstack_helm.go"
click node_service_values "https://github.com/vexxhost/atmosphere/tree/main/internal/openstack_helm"
click node_storage_values "https://github.com/vexxhost/atmosphere/blob/main/plugins/filter/storage.py"
click node_subnet_module "https://github.com/vexxhost/atmosphere/blob/main/plugins/modules/subnet.py"
click node_federation_actions "https://github.com/vexxhost/atmosphere/blob/main/plugins/action/federation_idp.py"
click node_identity_actions "https://github.com/vexxhost/atmosphere/blob/main/plugins/action/identity_domain.py"
click node_identity_filters "https://github.com/vexxhost/atmosphere/blob/main/plugins/filter/keystone_domains.py"
click node_ini_filter "https://github.com/vexxhost/atmosphere/blob/main/plugins/filter/from_ini.py"
click node_image_tag_filter "https://github.com/vexxhost/atmosphere/blob/main/plugins/filter/openstack_helm_image_tags.py"
click node_jsonnet_lookup "https://github.com/vexxhost/atmosphere/blob/main/plugins/lookup/jsonnet.py"
click node_openstack_module_utils "https://github.com/vexxhost/atmosphere/blob/main/plugins/module_utils/openstack.py"
click node_extraspecfix "https://github.com/vexxhost/atmosphere/blob/main/tools/extraspecfix/extraspecfix.go"
click node_portforward "https://github.com/vexxhost/atmosphere/blob/main/internal/portforwardutil/portforwardutil.go"
click node_image_pinner "https://github.com/vexxhost/atmosphere/blob/main/cmd/pinimages/pinimages.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_network_config,node_ovsinit_cli,node_interface_migration,node_route_parser toneBlue
class node_openstack_helm,node_service_values,node_storage_values,node_openstack_db toneAmber
class node_subnet_module,node_federation_actions,node_identity_actions,node_identity_filters,node_ini_filter,node_image_tag_filter,node_jsonnet_lookup,node_openstack_module_utils,node_kubernetes toneMint
class node_extraspecfix,node_portforward,node_image_pinner toneRose
class node_operator,node_container_registry toneIndigo
```

## Components

### Network setup

- [Bridge config](https://github.com/vexxhost/atmosphere/blob/main/crates/ovsinit/src/config.rs): `crates/ovsinit/src/config.rs`
- [OVS initializer](https://github.com/vexxhost/atmosphere/blob/main/crates/ovsinit/src/main.rs): `crates/ovsinit/src/main.rs`
- [Interface migration](https://github.com/vexxhost/atmosphere/blob/main/crates/ovsinit/src/lib.rs): `crates/ovsinit/src/lib.rs`
- [Route parsing](https://github.com/vexxhost/atmosphere/blob/main/crates/ovsinit/src/routes.rs): `crates/ovsinit/src/routes.rs`

### OpenStack configuration

- [Helm values](https://github.com/vexxhost/atmosphere/blob/main/internal/openstack_helm/openstack_helm.go): `internal/openstack_helm/openstack_helm.go`
- [Service values](https://github.com/vexxhost/atmosphere/tree/main/internal/openstack_helm): `internal/openstack_helm`
- [Storage values](https://github.com/vexxhost/atmosphere/blob/main/plugins/filter/storage.py): `plugins/filter/storage.py`

### Ansible extensions

- [Subnet management](https://github.com/vexxhost/atmosphere/blob/main/plugins/modules/subnet.py): `plugins/modules/subnet.py`
- [Federation actions](https://github.com/vexxhost/atmosphere/blob/main/plugins/action/federation_idp.py): `plugins/action/federation_idp.py`
- [Identity actions](https://github.com/vexxhost/atmosphere/blob/main/plugins/action/identity_domain.py): `plugins/action/identity_domain.py`
- [Identity filters](https://github.com/vexxhost/atmosphere/blob/main/plugins/filter/keystone_domains.py): `plugins/filter/keystone_domains.py`
- [INI filter](https://github.com/vexxhost/atmosphere/blob/main/plugins/filter/from_ini.py): `plugins/filter/from_ini.py`
- [Image tag filter](https://github.com/vexxhost/atmosphere/blob/main/plugins/filter/openstack_helm_image_tags.py): `plugins/filter/openstack_helm_image_tags.py`
- [Jsonnet lookup](https://github.com/vexxhost/atmosphere/blob/main/plugins/lookup/jsonnet.py): `plugins/lookup/jsonnet.py`
- [OpenStack utilities](https://github.com/vexxhost/atmosphere/blob/main/plugins/module_utils/openstack.py): `plugins/module_utils/openstack.py`

### Operations tools

- [Flavor spec fixer](https://github.com/vexxhost/atmosphere/blob/main/tools/extraspecfix/extraspecfix.go): `tools/extraspecfix/extraspecfix.go`
- [Port forwarding](https://github.com/vexxhost/atmosphere/blob/main/internal/portforwardutil/portforwardutil.go): `internal/portforwardutil/portforwardutil.go`
- [Image digest pinner](https://github.com/vexxhost/atmosphere/blob/main/cmd/pinimages/pinimages.go): `cmd/pinimages/pinimages.go`

### Other components

- **Operator**
- **Kubernetes API**
- **OpenStack database**
- **Container registry**

## Connections

- Operator → OVS initializer: runs (evidence: `crates/ovsinit/src/main.rs`)
- OVS initializer → Bridge config: loads (evidence: `crates/ovsinit/src/main.rs`)
- OVS initializer → Interface migration: migrates interfaces (evidence: `crates/ovsinit/src/main.rs`)
- Interface migration → Route parsing: parses routes (evidence: `crates/ovsinit/src/lib.rs`)
- Operator → Subnet management: invokes
- Operator → Storage values: configures storage
- Operator → Flavor spec fixer: runs (evidence: `tools/extraspecfix/extraspecfix.go`)
- Flavor spec fixer → Kubernetes API: reads secret (evidence: `tools/extraspecfix/extraspecfix.go`)
- Flavor spec fixer → Port forwarding: opens tunnel (evidence: `tools/extraspecfix/extraspecfix.go`)
- Flavor spec fixer → OpenStack database: updates flavor (evidence: `tools/extraspecfix/extraspecfix.go`)
- Operator → Image digest pinner: runs (evidence: `cmd/pinimages/pinimages.go`)
- Image digest pinner → Container registry: fetches digests (evidence: `cmd/pinimages/pinimages.go`)
- Image digest pinner → Helm values: updates image references (evidence: `cmd/pinimages/pinimages.go`)
