From 16c974b49963750a0974ce7e2097a1b6ad9ea95f Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Mon, 3 Jul 2023 11:10:51 +0545 Subject: [PATCH] chore: make test && make resources --- api/v1/zz_generated.deepcopy.go | 14 ++++++++++++++ config/deploy/crd.yaml | 8 ++++++++ config/deploy/manifests.yaml | 8 ++++++++ config/schemas/component.schema.json | 16 ++++++++++++++++ config/schemas/topology.schema.json | 16 ++++++++++++++++ 5 files changed, 62 insertions(+) diff --git a/api/v1/zz_generated.deepcopy.go b/api/v1/zz_generated.deepcopy.go index 4e19aebf1..92c41197d 100644 --- a/api/v1/zz_generated.deepcopy.go +++ b/api/v1/zz_generated.deepcopy.go @@ -897,6 +897,13 @@ func (in *ComponentSpec) DeepCopyInto(out *ComponentSpec) { *out = new(Template) **out = **in } + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } if in.Relationships != nil { in, out := &in.Relationships, &out.Relationships *out = make([]RelationshipSpec, len(*in)) @@ -981,6 +988,13 @@ func (in *ComponentSpecObject) DeepCopyInto(out *ComponentSpecObject) { *out = new(Template) **out = **in } + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } if in.Relationships != nil { in, out := &in.Relationships, &out.Relationships *out = make([]RelationshipSpec, len(*in)) diff --git a/config/deploy/crd.yaml b/config/deploy/crd.yaml index 4653f81f0..3c97dc1ba 100644 --- a/config/deploy/crd.yaml +++ b/config/deploy/crd.yaml @@ -4019,6 +4019,10 @@ spec: template: type: string type: object + labels: + additionalProperties: + type: string + type: object lifecycle: description: The lifecycle state of the component e.g. production, staging, dev, etc. type: string @@ -4310,6 +4314,10 @@ spec: template: type: string type: object + labels: + additionalProperties: + type: string + type: object lifecycle: description: The lifecycle state of the component e.g. production, staging, dev, etc. type: string diff --git a/config/deploy/manifests.yaml b/config/deploy/manifests.yaml index ae2f36d78..cbb6b5316 100644 --- a/config/deploy/manifests.yaml +++ b/config/deploy/manifests.yaml @@ -4288,6 +4288,10 @@ spec: template: type: string type: object + labels: + additionalProperties: + type: string + type: object lifecycle: description: The lifecycle state of the component e.g. production, staging, dev, etc. type: string @@ -4579,6 +4583,10 @@ spec: template: type: string type: object + labels: + additionalProperties: + type: string + type: object lifecycle: description: The lifecycle state of the component e.g. production, staging, dev, etc. type: string diff --git a/config/schemas/component.schema.json b/config/schemas/component.schema.json index 8b8e2f68c..7bc0361e9 100644 --- a/config/schemas/component.schema.json +++ b/config/schemas/component.schema.json @@ -659,6 +659,14 @@ "order": { "type": "integer" }, + "labels": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" + }, "type": { "type": "string" }, @@ -731,6 +739,14 @@ "order": { "type": "integer" }, + "labels": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" + }, "type": { "type": "string" }, diff --git a/config/schemas/topology.schema.json b/config/schemas/topology.schema.json index daacb364b..628b6f8c5 100644 --- a/config/schemas/topology.schema.json +++ b/config/schemas/topology.schema.json @@ -638,6 +638,14 @@ "order": { "type": "integer" }, + "labels": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" + }, "type": { "type": "string" }, @@ -710,6 +718,14 @@ "order": { "type": "integer" }, + "labels": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" + }, "type": { "type": "string" },