Skip to main content

Config Queries

Config queries fetch configuration items from the Flanksource catalog.

Query Properties

PropertyTypeDescription
typesarrayConfig types to query (e.g., ["Kubernetes::Pod"])
searchstringFree text search (supports @order= for sorting)
statusstringFilter by status
healthstringFilter by health status
tagSelectorstringFilter by tags (e.g., environment=prod,team=platform)
labelSelectorstringFilter by Kubernetes-style labels
agentstringFilter by agent ID (use all for all agents)
limitintegerMaximum results to return

Example

cronjobs.yaml
apiVersion: mission-control.flanksource.com/v1
kind: View
metadata:
name: cronjobs
namespace: mc
spec:
display:
title: CronJobs
icon: cronjob
sidebar: true
columns:
- name: id
type: string
primaryKey: true
hidden: true
- name: name
type: config_item
- name: namespace
type: string
- name: status
type: status
badge:
color:
auto: true
filter:
type: multiselect
- name: health
type: health
hidden: true
filter:
type: multiselect
- name: created
type: datetime
queries:
cronjobs:
configs:
search: "@order=name"
types:
- Kubernetes::CronJob
mapping:
created: row.created_at
namespace: row.tags.namespace

Auto-Mapped Columns

Config queries provide these columns:

  • id, name, type, namespace - Core identifiers
  • status, health - Current state
  • created_at, updated_at - Timestamps
  • config - Raw configuration (JSON)
  • properties, tags, labels - Metadata
  • cost_total_1d, cost_total_7d, cost_total_30d - Cost data
  • parent_id, parent_name, parent_type - Relationships