Properties
A topology view can be customized using properties.
properties:
- icon: github
text: https://github.com/spring-petclinic/spring-petclinic-microservices
type: url
- icon: aws
text: eu-west-1
- icon: git
text: vaev6ae (updated 2h ago)
- headline: true
name: Pets
text: '15000'
- headline: true
name: Vets
text: '125'
- color: green
headline: true
name: Visitors
text: '447'
Field | Description | Scheme | Required |
---|---|---|---|
name | Set name for component property. | string | |
value | Mutually exclusive with text | int64 | |
text | Mutually exclusive with value | string | |
type | Specify type of component property, one of currency , number , url | string | |
unit | Unit for component property e.g. milliseconds, bytes, millicores, epoch etc. | string | |
color | Set color for component property. | string | |
headline | Toggle headline for component property. | bool | |
icon | Specify icon for component. | Icon | |
label | Specify label for component property. | string | |
links | Set links pertaining to component. | []Link | |
max | Set maximum value for components to display. | int64 | optional |
min | Set minimum value for components to display. | int64 | |
order | Set integer value order for component property. | int | |
status | Specify status for component property. | string | |
tooltip | Set tooltip outlining information pertaining to the component. | string | |
configLookup | Specify lookup for component config. | ConfigLookup | optional |
Link
Field | Description | Schema | Required |
---|---|---|---|
type | The type of the link. | string | |
url | The url of the link. | string | |
tooltip | The tooltip of the link. | string | |
icon | The icon of the link. | Icon | |
text | The text of the link. | string | |
label | The label of the link. | string |
Config Lookup
Field | Description | Scheme | Required |
---|---|---|---|
config.name | The name of the config item. | string | |
config.type | The type of config item. | string | |
config.labels | Match labels of the config item, all labels must match | map[string]string | |
field | A JSONPath expression to lookup the value in the config. | string | true |
display | Apply transformations to the value. | Display | |
id | The UUID of config item, rarely used | string |
Configuration Lookup
Property values can be looked up from configuration items using the configLookup
field:
config-lookup.yamlapiVersion: canaries.flanksource.com/v1
kind: Topology
metadata:
name: application-config-lookup
spec:
components:
- name: Application
properties:
- headline: true
name: Version
configLookup:
config:
labelSelector: namespace=$().properties.namespace)
name: Configuration.properties
type:
- File
field: $["application.buildversion"]
This config
object is used to find the config item to lookup a value from, if there are multiple matches, the first match is used.