diff --git a/config/config.go b/config/config.go index ff9279f29..2a14db344 100644 --- a/config/config.go +++ b/config/config.go @@ -340,6 +340,10 @@ func (c *Config) IsProFeatureEnabled() bool { return true } + if len(c.Sync.ToHost.CustomResources) > 0 { + return true + } + return false } diff --git a/config/config_test.go b/config/config_test.go index 34bbee758..02ec1094d 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -143,8 +143,8 @@ controlPlane: func TestConfig_IsProFeatureEnabled(t *testing.T) { tests := []struct { - name string config *Config + name string expected bool }{ { @@ -372,6 +372,19 @@ func TestConfig_IsProFeatureEnabled(t *testing.T) { }, expected: true, }, + { + name: "Custom Resource Syncing is configured", + config: &Config{ + Sync: Sync{ + ToHost: SyncToHost{ + CustomResources: map[string]SyncToHostCustomResource{ + "demo": {}, + }, + }, + }, + }, + expected: true, + }, } for _, tt := range tests {