From 15668044304ad254273a118512fd7c07ad3d3eb4 Mon Sep 17 00:00:00 2001 From: yair Date: Mon, 25 Dec 2023 18:37:22 +0200 Subject: [PATCH] removed service from defaults --- assets/defaults/appConfig.yaml | 11 ----------- pkg/defaults/init.go | 3 ++- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/assets/defaults/appConfig.yaml b/assets/defaults/appConfig.yaml index 9dec380..bf61c0d 100644 --- a/assets/defaults/appConfig.yaml +++ b/assets/defaults/appConfig.yaml @@ -102,16 +102,5 @@ resources: relations: Namespace: .metadata.namespace + "-" + env.CLUSTER_NAME title: .metadata.name - selector: - query: .metadata.namespace | startswith("kube") | not - - kind: apps/v1/deployments - port: - entity: - mappings: - - blueprint: '"service"' - icon: '"Deployment"' - identifier: .metadata.name + "-Deployment-" + .metadata.namespace + "-" + env.CLUSTER_NAME - properties: {} - title: .metadata.name selector: query: .metadata.namespace | startswith("kube") | not \ No newline at end of file diff --git a/pkg/defaults/init.go b/pkg/defaults/init.go index 7320a3f..36435df 100644 --- a/pkg/defaults/init.go +++ b/pkg/defaults/init.go @@ -19,7 +19,8 @@ func getEventListenerConfig(eventListenerType string) *port.EventListenerSetting func InitIntegration(portClient *cli.PortClient, applicationConfig *port.Config) error { existingIntegration, err := integration.GetIntegration(portClient, applicationConfig.StateKey) defaultIntegrationConfig := &port.IntegrationAppConfig{ - Resources: applicationConfig.Resources, + Resources: applicationConfig.Resources, + CreateMissingRelatedEntities: true, } if err != nil {