Skip to content

Commit cb9b110

Browse files
committed
Update check for custom images
1 parent 49ad315 commit cb9b110

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

pkg/types/clusterconfig/cluster_config.go

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,82 +1614,82 @@ func (cc *CoreConfig) TelemetryEvent() map[string]interface{} {
16141614

16151615
event["region"] = cc.Region
16161616

1617-
if !strings.HasPrefix(cc.ImageOperator, "cortexlabs/") {
1617+
if !strings.HasPrefix(cc.ImageOperator, "quay.io/cortexlabs/") {
16181618
event["image_operator._is_custom"] = true
16191619
}
1620-
if !strings.HasPrefix(cc.ImageControllerManager, "cortexlabs/") {
1620+
if !strings.HasPrefix(cc.ImageControllerManager, "quay.io/cortexlabs/") {
16211621
event["image_operator_controller_manager._is_custom"] = true
16221622
}
1623-
if !strings.HasPrefix(cc.ImageManager, "cortexlabs/") {
1623+
if !strings.HasPrefix(cc.ImageManager, "quay.io/cortexlabs/") {
16241624
event["image_manager._is_custom"] = true
16251625
}
1626-
if !strings.HasPrefix(cc.ImageKubexit, "cortexlabs/") {
1626+
if !strings.HasPrefix(cc.ImageKubexit, "quay.io/cortexlabs/") {
16271627
event["image_kubexit._is_custom"] = true
16281628
}
1629-
if !strings.HasPrefix(cc.ImageProxy, "cortexlabs/") {
1629+
if !strings.HasPrefix(cc.ImageProxy, "quay.io/cortexlabs/") {
16301630
event["image_proxy._is_custom"] = true
16311631
}
1632-
if !strings.HasPrefix(cc.ImageAsyncGateway, "cortexlabs/") {
1632+
if !strings.HasPrefix(cc.ImageAsyncGateway, "quay.io/cortexlabs/") {
16331633
event["image_async_gateway._is_custom"] = true
16341634
}
1635-
if !strings.HasPrefix(cc.ImageEnqueuer, "cortexlabs/") {
1635+
if !strings.HasPrefix(cc.ImageEnqueuer, "quay.io/cortexlabs/") {
16361636
event["image_enqueuer._is_custom"] = true
16371637
}
1638-
if !strings.HasPrefix(cc.ImageDequeuer, "cortexlabs/") {
1638+
if !strings.HasPrefix(cc.ImageDequeuer, "quay.io/cortexlabs/") {
16391639
event["image_dequeuer._is_custom"] = true
16401640
}
1641-
if !strings.HasPrefix(cc.ImageClusterAutoscaler, "cortexlabs/") {
1641+
if !strings.HasPrefix(cc.ImageClusterAutoscaler, "quay.io/cortexlabs/") {
16421642
event["image_cluster_autoscaler._is_custom"] = true
16431643
}
1644-
if !strings.HasPrefix(cc.ImageMetricsServer, "cortexlabs/") {
1644+
if !strings.HasPrefix(cc.ImageMetricsServer, "quay.io/cortexlabs/") {
16451645
event["image_metrics_server._is_custom"] = true
16461646
}
1647-
if !strings.HasPrefix(cc.ImageNvidiaDevicePlugin, "cortexlabs/") {
1647+
if !strings.HasPrefix(cc.ImageNvidiaDevicePlugin, "quay.io/cortexlabs/") {
16481648
event["image_nvidia_device_plugin._is_custom"] = true
16491649
}
1650-
if !strings.HasPrefix(cc.ImageNeuronDevicePlugin, "cortexlabs/") {
1650+
if !strings.HasPrefix(cc.ImageNeuronDevicePlugin, "quay.io/cortexlabs/") {
16511651
event["image_neuron_device_plugin._is_custom"] = true
16521652
}
1653-
if !strings.HasPrefix(cc.ImageNeuronScheduler, "cortexlabs/") {
1653+
if !strings.HasPrefix(cc.ImageNeuronScheduler, "quay.io/cortexlabs/") {
16541654
event["image_neuron_scheduler._is_custom"] = true
16551655
}
1656-
if !strings.HasPrefix(cc.ImageFluentBit, "cortexlabs/") {
1656+
if !strings.HasPrefix(cc.ImageFluentBit, "quay.io/cortexlabs/") {
16571657
event["image_fluent_bit._is_custom"] = true
16581658
}
1659-
if !strings.HasPrefix(cc.ImageIstioProxy, "cortexlabs/") {
1659+
if !strings.HasPrefix(cc.ImageIstioProxy, "quay.io/cortexlabs/") {
16601660
event["image_istio_proxy._is_custom"] = true
16611661
}
1662-
if !strings.HasPrefix(cc.ImageIstioPilot, "cortexlabs/") {
1662+
if !strings.HasPrefix(cc.ImageIstioPilot, "quay.io/cortexlabs/") {
16631663
event["image_istio_pilot._is_custom"] = true
16641664
}
1665-
if strings.HasPrefix(cc.ImagePrometheus, "cortexlabs/") {
1665+
if strings.HasPrefix(cc.ImagePrometheus, "quay.io/cortexlabs/") {
16661666
event["image_prometheus._is_custom"] = true
16671667
}
1668-
if strings.HasPrefix(cc.ImagePrometheusConfigReloader, "cortexlabs/") {
1668+
if strings.HasPrefix(cc.ImagePrometheusConfigReloader, "quay.io/cortexlabs/") {
16691669
event["image_prometheus_config_reloader._is_custom"] = true
16701670
}
1671-
if strings.HasPrefix(cc.ImagePrometheusOperator, "cortexlabs/") {
1671+
if strings.HasPrefix(cc.ImagePrometheusOperator, "quay.io/cortexlabs/") {
16721672
event["image_prometheus_operator._is_custom"] = true
16731673
}
1674-
if strings.HasPrefix(cc.ImagePrometheusStatsDExporter, "cortexlabs/") {
1674+
if strings.HasPrefix(cc.ImagePrometheusStatsDExporter, "quay.io/cortexlabs/") {
16751675
event["image_prometheus_statsd_exporter._is_custom"] = true
16761676
}
1677-
if strings.HasPrefix(cc.ImagePrometheusDCGMExporter, "cortexlabs/") {
1677+
if strings.HasPrefix(cc.ImagePrometheusDCGMExporter, "quay.io/cortexlabs/") {
16781678
event["image_prometheus_dcgm_exporter._is_custom"] = true
16791679
}
1680-
if strings.HasPrefix(cc.ImagePrometheusKubeStateMetrics, "cortexlabs/") {
1680+
if strings.HasPrefix(cc.ImagePrometheusKubeStateMetrics, "quay.io/cortexlabs/") {
16811681
event["image_prometheus_kube_state_metrics._is_custom"] = true
16821682
}
1683-
if strings.HasPrefix(cc.ImagePrometheusNodeExporter, "cortexlabs/") {
1683+
if strings.HasPrefix(cc.ImagePrometheusNodeExporter, "quay.io/cortexlabs/") {
16841684
event["image_prometheus_node_exporter._is_custom"] = true
16851685
}
1686-
if strings.HasPrefix(cc.ImageKubeRBACProxy, "cortexlabs/") {
1686+
if strings.HasPrefix(cc.ImageKubeRBACProxy, "quay.io/cortexlabs/") {
16871687
event["image_kube_rbac_proxy._is_custom"] = true
16881688
}
1689-
if strings.HasPrefix(cc.ImageGrafana, "cortexlabs/") {
1689+
if strings.HasPrefix(cc.ImageGrafana, "quay.io/cortexlabs/") {
16901690
event["image_grafana._is_custom"] = true
16911691
}
1692-
if strings.HasPrefix(cc.ImageEventExporter, "cortexlabs/") {
1692+
if strings.HasPrefix(cc.ImageEventExporter, "quay.io/cortexlabs/") {
16931693
event["image_event_exporter._is_custom"] = true
16941694
}
16951695

0 commit comments

Comments
 (0)