diff --git a/config/config.go b/config/config.go index 2a14db344..90f82cfbb 100644 --- a/config/config.go +++ b/config/config.go @@ -340,7 +340,7 @@ func (c *Config) IsProFeatureEnabled() bool { return true } - if len(c.Sync.ToHost.CustomResources) > 0 { + if len(c.Sync.ToHost.CustomResources) > 0 || len(c.Sync.FromHost.CustomResources) > 0 { return true } diff --git a/config/config_test.go b/config/config_test.go index 02ec1094d..740ec7a75 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -373,7 +373,7 @@ func TestConfig_IsProFeatureEnabled(t *testing.T) { expected: true, }, { - name: "Custom Resource Syncing is configured", + name: "Custom Resource Syncing to host is configured", config: &Config{ Sync: Sync{ ToHost: SyncToHost{ @@ -385,6 +385,19 @@ func TestConfig_IsProFeatureEnabled(t *testing.T) { }, expected: true, }, + { + name: "Custom Resource Syncing from host is configured", + config: &Config{ + Sync: Sync{ + FromHost: SyncFromHost{ + CustomResources: map[string]SyncFromHostCustomResource{ + "demo": {}, + }, + }, + }, + }, + expected: true, + }, } for _, tt := range tests {