File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ require (
1515 github.com/hashicorp/go-plugin v1.6.0
1616 github.com/jackc/pgtype v1.14.4
1717 github.com/nats-io/nats.go v1.36.0
18- github.com/opengovern/og-util v1.11 .0
18+ github.com/opengovern/og-util v1.12 .0
1919 github.com/opengovern/resilient-bridge v0.0.0-20241223164127-85ad8f42a67d
2020 github.com/shurcooL/githubv4 v0.0.0-20240727222349-48295856cce7
2121 github.com/spf13/cobra v1.8.1
Original file line number Diff line number Diff line change @@ -743,8 +743,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8
743743github.com/opencontainers/go-digest v1.0.0 /go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM =
744744github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug =
745745github.com/opencontainers/image-spec v1.1.0 /go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM =
746- github.com/opengovern/og-util v1.11 .0 h1:Amct1bHXDF5TBnymstPUEWpWaC+Lji5dnJ8Mr6fkbMA =
747- github.com/opengovern/og-util v1.11 .0 /go.mod h1:9uNpGalixRoQkUzPPBdT+JG1epg8FTRx/qmkfTyUZHE =
746+ github.com/opengovern/og-util v1.12 .0 h1:D/1khsUlO2LZGBN+YrSbupjJ5MxsZeg7z9Mg+o9I3eU =
747+ github.com/opengovern/og-util v1.12 .0 /go.mod h1:9uNpGalixRoQkUzPPBdT+JG1epg8FTRx/qmkfTyUZHE =
748748github.com/opengovern/resilient-bridge v0.0.0-20241223164127-85ad8f42a67d h1:OnoG1Za89armxN1ZlEbr/eKvAdbRN6UGKXCFxee58s0 =
749749github.com/opengovern/resilient-bridge v0.0.0-20241223164127-85ad8f42a67d /go.mod h1:zEulaGgccj5tPXGiudGz17NRhXAk2HHh+GPj2VkjNq0 =
750750github.com/opensearch-project/opensearch-go/v2 v2.3.0 h1:nQIEMr+A92CkhHrZgUhcfsrZjibvB3APXf2a1VwCmMQ =
Original file line number Diff line number Diff line change @@ -86,14 +86,19 @@ func (i *Integration) DiscoverIntegrations(jsonData []byte) ([]integration.Integ
8686 return integrations , nil
8787}
8888
89- func (i * Integration ) GetResourceTypesByLabels (labels map [string ]string ) (map [ string ]interfaces.ResourceTypeConfiguration , error ) {
90- resourceTypesMap := make ( map [ string ]interfaces.ResourceTypeConfiguration )
89+ func (i * Integration ) GetResourceTypesByLabels (labels map [string ]string ) ([ ]interfaces.ResourceTypeConfiguration , error ) {
90+ var resourceTypesMap [ ]interfaces.ResourceTypeConfiguration
9191 for _ , resourceType := range maps .ResourceTypesList {
92+ var resource interfaces.ResourceTypeConfiguration
9293 if v , ok := maps .ResourceTypeConfigs [resourceType ]; ok {
93- resourceTypesMap [resourceType ] = * v
94- } else {
95- resourceTypesMap [resourceType ] = interfaces.ResourceTypeConfiguration {}
96- }
94+ resource .Description = v .Description
95+ resource .Params = v .Params
96+ resource .Name = v .Name
97+ resource .IntegrationType = v .IntegrationType
98+ resource .Table = maps .ResourceTypesToTables [v .Name ]
99+ resourceTypesMap = append (resourceTypesMap , resource )
100+
101+ }
97102 }
98103 return resourceTypesMap , nil
99104}
You can’t perform that action at this time.
0 commit comments