File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import (
33
33
"k8s.io/client-go/tools/cache"
34
34
reg_util "kmodules.xyz/client-go/admissionregistration/v1beta1"
35
35
"kmodules.xyz/client-go/discovery"
36
+ "kmodules.xyz/client-go/tools/cli"
36
37
appcatalog_cs "kmodules.xyz/custom-resources/client/clientset/versioned"
37
38
oc_cs "kmodules.xyz/openshift/client/clientset/versioned"
38
39
oc_informers "kmodules.xyz/openshift/client/informers/externalversions"
@@ -87,7 +88,7 @@ func (c *Config) New() (*StashController, error) {
87
88
// audit event publisher
88
89
// WARNING: https://stackoverflow.com/a/46275411/244009
89
90
var auditor cache.ResourceEventHandler
90
- if c .LicenseFile != "" {
91
+ if c .LicenseFile != "" && cli . EnableAnalytics {
91
92
natscfg , err := auditlib .NewNatsConfig (c .KubeClient .CoreV1 ().Namespaces (), c .LicenseFile )
92
93
if err != nil {
93
94
return nil , err
You can’t perform that action at this time.
0 commit comments