Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/PklProject
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ dependencies {
uri = "package://hub.platform.engineering/plugins/pkl/schema/pkl/formae/formae@0.84.0"
}
["oci"] {
uri = "package://hub.platform.engineering/plugins/oci/schema/pkl/oci/oci@0.1.2"
uri = "package://hub.platform.engineering/plugins/oci/schema/pkl/oci/oci@0.1.3"
}
}
2 changes: 1 addition & 1 deletion formae-plugin.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

name = "oci"
version = "0.1.2"
version = "0.1.3"
namespace = "OCI"
description = "Oracle Cloud Infrastructure resource plugin for Formae"
license = "FSL-1.1-ALv2"
Expand Down
11 changes: 10 additions & 1 deletion oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ func (p *Plugin) DiscoveryFilters() []model.MatchFilter {
}

func (p *Plugin) LabelConfig() model.LabelConfig {
return model.LabelConfig{}
return model.LabelConfig{
DefaultQuery: "$.DisplayName",
ResourceOverrides: map[string]string{
"OCI::Identity::Compartment": "$.Name",
"OCI::Identity::Policy": "$.Name",
"OCI::ContainerEngine::Cluster": "$.Name",
"OCI::ContainerEngine::NodePool": "$.Name",
"OCI::ObjectStorage::Bucket": "$.Name",
},
}
}

func (p *Plugin) Create(ctx context.Context, request *resource.CreateRequest) (*resource.CreateResult, error) {
Expand Down
Loading