diff --git a/examples/PklProject b/examples/PklProject index 6badb7a..9c4eb07 100644 --- a/examples/PklProject +++ b/examples/PklProject @@ -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" } } diff --git a/formae-plugin.pkl b/formae-plugin.pkl index d7ed0bd..857e962 100644 --- a/formae-plugin.pkl +++ b/formae-plugin.pkl @@ -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" diff --git a/oci.go b/oci.go index 307c2ae..f999842 100644 --- a/oci.go +++ b/oci.go @@ -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) {