Skip to main content

Catalog

You can link components with configs. The linked config items appears in the component page in the right hand side panel.

To establish this relationship, you need to specify which config items to link with using the config field.

Component Config relationship

kubernetes-cluster.yaml
apiVersion: canaries.flanksource.com/v1
kind: Topology
metadata:
name: kubernetes-cluster
spec:
schedule: '@every 10m'
components:
- icon: pods
lookup:
kubernetes:
- display:
javascript: JSON.stringify(k8s.getPodTopology(results))
kind: Pod
name: k8s-pods
configs:
- type: Kubernetes::Pod

Config Selector

FieldDescriptionSchemeRequired
idSpecify the name of the config item.[]string
nameSpecify the name of the config item.string
namespaceSpecify the namespace of the config item.string
typeSpecify type of config item.string
classSpecify type of config item.string
external_idSpecify type of config item.string
tagsSpecify tags of config item.map[string]string

This Config object is used to find config items to associate with the component. It's important to note that there can be multiple config items that can match the same Config object. The first match is used in that case.

To get a better result, you can provide more information in the Config object; example: provide name, namespace and type instead of just providing the namespace.