# rohan-muslekar/kube-smell-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/rohan-muslekar/kube-smell-tracker
- Repository: https://github.com/rohan-muslekar/kube-smell-tracker

## Overview

kube-smell-tracker is a research pipeline for measuring Kubernetes configuration smells across release versions. Researchers select study tags, collect manifests and analyzer results, normalize findings, and track each instance as introduced, persisted, removed, or reappeared; generated tables support prevalence, overlap, and survival analysis. Separate capabilities cover Kustomize rendering, category-rating agreement, and tag selection. The graph follows documented workflow and sampled calls; collection details and some analysis branches are supported by README statements rather than inspected implementation excerpts.

Main entry points: [`scripts/collect.sh`](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/scripts/collect.sh) (Manifest collection), [`kst/__main__.py`](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/__main__.py) (Analysis entry point), [`out`](https://github.com/rohan-muslekar/kube-smell-tracker/tree/master/out) (Analysis tables), [`kst/select_tags.py`](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/select_tags.py) (Release tag selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Collection and inputs"]
  node_tag_select["Release tag selection<br/>[select_tags.py]"]
  node_collection_runner["Manifest collection<br/>[collect.sh]"]
  node_manifest_filter["Manifest filtering<br/>[manifests.py]"]
  node_kustomize_render["Kustomize rendering<br/>[render.py]"]
  node_object_inventory["Object inventory<br/>[inventory.py]"]
end

subgraph group_analysis["Finding and lifecycle analysis"]
  node_analysis_cli["Analysis entry point<br/>[__main__.py]"]
  node_normalization["Finding normalization<br/>[normalize.py]"]
  node_overlap["Analyzer overlap<br/>[overlap.py]"]
  node_lifecycle["Instance tracking<br/>[track.py]"]
end

subgraph group_research["Research analyses"]
  node_survival["Survival analysis<br/>[survival_km.py]"]
  node_category_ratings["Category validation"]
  node_summary["Results summary<br/>[summary.py]"]
end

subgraph group_artifacts["Stored data"]
  node_raw_data[("Raw analyzer data")]
  node_outputs[("Analysis tables")]
end

node_researcher(("Researcher"))
node_analyzers["Static analyzers"]

node_researcher -->|"selects tags"| node_tag_select
node_researcher -->|"reproduces study"| node_collection_runner
node_tag_select -->|"defines releases"| node_collection_runner
node_collection_runner -->|"filters manifests"| node_manifest_filter
node_collection_runner -->|"renders configurations"| node_kustomize_render
node_collection_runner -->|"lists objects"| node_object_inventory
node_collection_runner -->|"runs analyzers"| node_analyzers
node_collection_runner -->|"writes results"| node_raw_data
node_raw_data -->|"reads analyzer data"| node_analysis_cli
node_analysis_cli -->|"normalizes findings"| node_normalization
node_analysis_cli -->|"computes overlap"| node_overlap
node_analysis_cli -->|"tracks instances"| node_lifecycle
node_analysis_cli -->|"writes tables"| node_outputs
node_analysis_cli -->|"generates curves"| node_survival
node_outputs -->|"reads instances"| node_survival
node_researcher -->|"rates categories"| node_category_ratings
node_outputs -.->|"summarizes results"| node_summary

click node_tag_select "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/select_tags.py"
click node_collection_runner "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/scripts/collect.sh"
click node_manifest_filter "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/manifests.py"
click node_kustomize_render "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/render.py"
click node_object_inventory "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/inventory.py"
click node_raw_data "https://github.com/rohan-muslekar/kube-smell-tracker/tree/master/raw"
click node_analysis_cli "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/__main__.py"
click node_normalization "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/normalize.py"
click node_overlap "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/overlap.py"
click node_lifecycle "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/track.py"
click node_outputs "https://github.com/rohan-muslekar/kube-smell-tracker/tree/master/out"
click node_survival "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/survival_km.py"
click node_category_ratings "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/category_validation.py"
click node_summary "https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/scripts/summary.py"

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_tag_select,node_collection_runner,node_manifest_filter,node_kustomize_render,node_object_inventory toneBlue
class node_analysis_cli,node_normalization,node_overlap,node_lifecycle toneAmber
class node_survival,node_category_ratings,node_summary toneMint
class node_raw_data,node_outputs toneRose
class node_researcher,node_analyzers toneIndigo
```

## Components

### Collection and inputs

- [Release tag selection](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/select_tags.py): `kst/select_tags.py`
- [Manifest collection](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/scripts/collect.sh): `scripts/collect.sh`
- [Manifest filtering](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/manifests.py): `kst/manifests.py`
- [Kustomize rendering](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/render.py): `kst/render.py`
- [Object inventory](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/inventory.py): `kst/inventory.py`

### Finding and lifecycle analysis

- [Analysis entry point](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/__main__.py): `kst/__main__.py`
- [Finding normalization](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/normalize.py): `kst/normalize.py`
- [Analyzer overlap](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/overlap.py): `kst/overlap.py`
- [Instance tracking](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/track.py): `kst/track.py`

### Research analyses

- [Survival analysis](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/survival_km.py): `kst/survival_km.py`
- [Category validation](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/kst/category_validation.py): `kst/category_validation.py`
- [Results summary](https://github.com/rohan-muslekar/kube-smell-tracker/blob/master/scripts/summary.py): `scripts/summary.py`

### Stored data

- [Raw analyzer data](https://github.com/rohan-muslekar/kube-smell-tracker/tree/master/raw): `raw`
- [Analysis tables](https://github.com/rohan-muslekar/kube-smell-tracker/tree/master/out): `out`

### Other components

- **Researcher**
- **Static analyzers**

## Connections

- Researcher → Release tag selection: selects tags (evidence: `README.md`)
- Researcher → Manifest collection: reproduces study (evidence: `README.md`)
- Release tag selection → Manifest collection: defines releases (evidence: `README.md`)
- Manifest collection → Manifest filtering: filters manifests (evidence: `README.md`)
- Manifest collection → Kustomize rendering: renders configurations (evidence: `README.md`)
- Manifest collection → Object inventory: lists objects (evidence: `README.md`)
- Manifest collection → Static analyzers: runs analyzers (evidence: `README.md`)
- Manifest collection → Raw analyzer data: writes results (evidence: `README.md`)
- Raw analyzer data → Analysis entry point: reads analyzer data (evidence: `kst/__main__.py`)
- Analysis entry point → Finding normalization: normalizes findings (evidence: `kst/__main__.py`)
- Analysis entry point → Analyzer overlap: computes overlap (evidence: `kst/__main__.py`)
- Analysis entry point → Instance tracking: tracks instances (evidence: `kst/__main__.py`)
- Analysis entry point → Analysis tables: writes tables (evidence: `kst/__main__.py`)
- Analysis entry point → Survival analysis: generates curves (evidence: `kst/__main__.py`)
- Analysis tables → Survival analysis: reads instances (evidence: `kst/survival_km.py`)
- Researcher → Category validation: rates categories (evidence: `README.md`)
- Analysis tables → Results summary: summarizes results
