We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 304a7ab commit 80a5658Copy full SHA for 80a5658
api/v1/component_types.go
@@ -18,12 +18,13 @@ type Component struct {
18
}
19
20
type ComponentSpec struct {
21
- Name string `json:"name,omitempty"`
22
- Tooltip string `json:"tooltip,omitempty"`
23
- Icon string `json:"icon,omitempty"`
24
- Owner string `json:"owner,omitempty"`
25
- Id *Template `json:"id,omitempty"` //nolint
26
- Order int `json:"order,omitempty"`
+ Name string `json:"name,omitempty"`
+ Tooltip string `json:"tooltip,omitempty"`
+ Icon string `json:"icon,omitempty"`
+ Owner string `json:"owner,omitempty"`
+ Id *Template `json:"id,omitempty"` //nolint
+ Order int `json:"order,omitempty"`
27
+ Labels map[string]string `json:"labels,omitempty"`
28
// The type of component, e.g. service, API, website, library, database, etc.
29
Type string `json:"type,omitempty"`
30
// The lifecycle state of the component e.g. production, staging, dev, etc.
api/v1/zz_generated.deepcopy.go
config/deploy/crd.yaml
@@ -4019,6 +4019,10 @@ spec:
4019
template:
4020
type: string
4021
type: object
4022
+ labels:
4023
+ additionalProperties:
4024
+ type: string
4025
+ type: object
4026
lifecycle:
4027
description: The lifecycle state of the component e.g. production, staging, dev, etc.
4028
@@ -4310,6 +4314,10 @@ spec:
4310
4314
4311
4315
4312
4316
4317
4318
4319
4320
4313
4321
4322
4323
config/deploy/manifests.yaml
@@ -4288,6 +4288,10 @@ spec:
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
@@ -4579,6 +4583,10 @@ spec:
4579
4583
4580
4584
4581
4585
4586
4587
4588
4589
4582
4590
4591
4592
config/schemas/component.schema.json
@@ -659,6 +659,14 @@
659
"order": {
660
"type": "integer"
661
},
662
+ "labels": {
663
+ "patternProperties": {
664
+ ".*": {
665
+ "type": "string"
666
+ }
667
+ },
668
+ "type": "object"
669
670
"type": {
671
"type": "string"
672
@@ -731,6 +739,14 @@
731
739
732
740
733
741
742
743
744
745
746
747
748
749
734
750
735
751
736
752
config/schemas/topology.schema.json
@@ -638,6 +638,14 @@
638
639
640
641
642
643
644
645
646
647
648
649
650
651
@@ -710,6 +718,14 @@
710
718
711
719
712
720
721
722
723
724
725
726
727
728
713
729
714
730
715
pkg/system_api.go
@@ -267,6 +267,7 @@ func NewComponent(c v1.ComponentSpec) *Component {
267
Icon: c.Icon,
268
Selectors: c.Selectors,
269
ComponentChecks: c.ComponentChecks,
270
+ Labels: c.Labels,
271
Configs: configs,
272
LogSelectors: c.LogSelectors,
273
0 commit comments