MCPcopy Create free account

hub / github.com/Climatik-Project/Climatik-Project / functions

Functions210 in github.com/Climatik-Project/Climatik-Project

↓ 46 callersMethodError
()
api/v1alpha1/powercappingconfig_types.go:101
↓ 13 callersFunctionRun
Run executes the provided command within this context
test/utils/utils.go:50
↓ 8 callersMethodString
()
internal/planner/grpc.pb.go:96
↓ 6 callersFunctionNewMockPowerCappingConfig
NewMockPowerCappingConfig returns a new instance of a mock PowerCappingConfig
internal/alert/tests/test_helper.go:9
↓ 5 callersMethodGetHandler
(source string)
internal/webhook/factory/factory.go:15
↓ 5 callersMethodQuery
(ctx context.Context, query string, ts time.Time)
internal/alert/adapters/prom_alert.go:19
↓ 4 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:149
↓ 4 callersMethodSubscribe
(topic string, subscriber AlertManager)
internal/alert/pubsub.go:21
↓ 4 callersFunctionfile_grpc_proto_rawDescGZIP
()
internal/planner/grpc.pb.go:293
↓ 3 callersMethodCreateAlert
(podName string, powerCapValue int, devices map[string]string, config *powercappingv1alpha1.PowerCappingConfig
internal/alert/adapters/slack.go:42
↓ 3 callersFunctionNewPrometheusAlertManager
(prometheusAddress string)
internal/alert/adapters/prom_alert.go:28
↓ 3 callersFunctionNewSlackAlertManager
(webhookURL string)
internal/alert/adapters/slack.go:36
↓ 3 callersFunctionNewSlackHandler
(signingSecret, slackBotToken string)
internal/webhook/handlers/slack_handler.go:31
↓ 3 callersFunctionmonitor_power_usage
(spec, status, patch, **kwargs)
python/climatik_operator/operator.py:106
↓ 2 callersMethodCalculateOptimalReplicas
(ctx context.Context, in *CalculateOptimalReplicasRequest, opts ...grpc.CallOption)
internal/planner/grpc_grpc.pb.go:25
↓ 2 callersMethodCreateAlert
(podName string, powerCapValue int, devices map[string]string, config *powercappingv1alpha1.PowerCappingConfig
internal/alert/adapters/prom_alert.go:39
↓ 2 callersFunctionCreateSlackWebhook
(port int)
internal/webhook/slack_webhook.go:25
↓ 2 callersMethodFormatPrometheusAlert
(podName string, powerCapValue int, devices map[string]string)
internal/alert/adapters/prom_alert.go:47
↓ 2 callersFunctionNewGitOpsAlertManager
(repoURL, repoDir string)
internal/alert/adapters/git_ops.go:17
↓ 2 callersFunctionNewPubSub
()
internal/alert/pubsub.go:15
↓ 2 callersMethodRun
()
internal/webhook/runners/runner.go:5
↓ 2 callersMethodSendAlert
(podName string, powerCapValue int, devices map[string]string, config *v1alpha1.PowerCappingConfig)
internal/alert/service.go:18
↓ 2 callersMethodSendAlertToPrometheus
(alert PrometheusAlert)
internal/alert/adapters/prom_alert.go:69
↓ 2 callersFunctioncalculate_max_replicas
(power_cap_limit)
python/climatik_operator/operator.py:210
↓ 2 callersFunctionk8s_api_instance
()
python/climatik_operator/k8s_utils.py:4
↓ 2 callersMethodstart_server
(self)
python/climatik_operator/prom_metrics.py:89
↓ 2 callersFunctionwarnError
(err error)
test/utils/utils.go:37
↓ 1 callersMethodAdd
(repoDir string, files ...string)
internal/alert/tests/alert_test.go:53
↓ 1 callersMethodCommandHandler
(w http.ResponseWriter, r *http.Request)
internal/webhook/handlers/slack_handler.go:49
↓ 1 callersMethodCreateAlert
(podName string, powerCapValue int, devices map[string]string, config *v1alpha1.PowerCappingConfig)
internal/alert/alert.go:7
↓ 1 callersMethodCreateAlert
(podName string, powerCapValue int, devices map[string]string, config *powercappingv1alpha1.PowerCappingConfig
internal/alert/adapters/git_ops.go:25
↓ 1 callersFunctionCreateAlertService
(config map[string]map[string]string)
internal/alert/factory.go:31
↓ 1 callersFunctionCreateWebhook
(port int)
internal/webhook/webhook.go:53
↓ 1 callersMethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PowerCappingConfig.
api/v1alpha1/zz_generated.deepcopy.go:67
↓ 1 callersMethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PowerCappingConfigList.
api/v1alpha1/zz_generated.deepcopy.go:99
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:28
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:43
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:58
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:85
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:117
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:134
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:166
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:181
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:196
↓ 1 callersMethodGetAlerts
GetAlerts returns the current alerts (for testing purposes)
internal/alert/adapters/git_ops.go:52
↓ 1 callersFunctionGetNonEmptyLines
GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.
test/utils/utils.go:120
↓ 1 callersFunctionGetProjectDir
GetProjectDir will return the directory where the project is
test/utils/utils.go:133
↓ 1 callersMethodHandleAlert
(payload []byte)
internal/webhook/interfaces/interfaces.go:6
↓ 1 callersFunctionInstallCertManager
InstallCertManager installs the cert manager bundle.
test/utils/utils.go:88
↓ 1 callersFunctionInstallPrometheusOperator
InstallPrometheusOperator installs the prometheus Operator to be used to export the enabled metrics.
test/utils/utils.go:42
↓ 1 callersMethodInteractionHandler
(w http.ResponseWriter, r *http.Request)
internal/webhook/handlers/slack_handler.go:76
↓ 1 callersFunctionLoadImageToKindClusterWithName
LoadImageToKindCluster loads a local docker image to the kind cluster
test/utils/utils.go:107
↓ 1 callersFunctionNewAlertManager
(managerType AlertManagerType, config map[string]string)
internal/alert/factory.go:18
↓ 1 callersFunctionNewAlertService
(config map[string]map[string]string)
internal/alert/service.go:10
↓ 1 callersMethodPostMessage
(channelID string, options ...slack.MsgOption)
internal/alert/tests/alert_test.go:28
↓ 1 callersMethodPublish
(topic string, podName string, powerCapValue int, devices map[string]string, config *v1alpha1.PowerCappingConf
internal/alert/pubsub.go:27
↓ 1 callersMethodReconcile
+kubebuilder:rbac:groups=climatik-project.io,resources=powercappingconfigs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=cl
internal/controller/powercappingconfig_controller.go:75
↓ 1 callersMethodSetupWithManager
(mgr ctrl.Manager)
internal/controller/powercappingconfig_controller.go:92
↓ 1 callersFunctionUninstallCertManager
UninstallCertManager uninstalls the cert manager
test/utils/utils.go:79
↓ 1 callersFunctionUninstallPrometheusOperator
UninstallPrometheusOperator uninstalls the prometheus
test/utils/utils.go:70
↓ 1 callersMethodUpdatePowerCappingConfig
(param, value string)
internal/webhook/handlers/slack_handler.go:234
↓ 1 callersMethodcalculatePowerCap
(peakPower float64, powerCapPercentage int)
internal/controller/powercappingconfig_controller.go:298
↓ 1 callersMethodcalculate_max_replicas
(self, current_replicas: Dict[str, int], power_consumptions: Dict[str, float],
python/climatik_operator/strategies/base_strategy.py:8
↓ 1 callersMethodcalculate_optimal_replicas
(self, deployment, power_cap)
python/planner/planner.py:24
↓ 1 callersMethodcreateAlert
(pod *corev1.Pod, powerCap int, deviceLabels map[string]string)
internal/controller/powercappingconfig_controller.go:236
↓ 1 callersFunctioncreate_power_capping_config
(spec, **kwargs)
python/climatik_operator/operator.py:55
↓ 1 callersFunctionfile_grpc_proto_init
()
internal/planner/grpc.pb.go:320
↓ 1 callersFunctionfindRootDir
findRootDir tries to find the root directory of the project
internal/alert/tests/slack_notification_test.go:41
↓ 1 callersMethodformatAlertMessage
(podName string, powerCapValue int, devices map[string]string)
internal/alert/adapters/git_ops.go:32
↓ 1 callersFunctiongenerate_synthetic_data
(start_time, end_time, step)
python/planner/mock_prometheus/mock_prometheus.py:12
↓ 1 callersFunctiongetColorForAlertLevel
(level AlertLevel)
internal/alert/adapters/slack.go:113
↓ 1 callersFunctiongetEnv
(key, fallback string)
internal/controller/powercappingconfig_controller.go:242
↓ 1 callersMethodgetKeplerMetrics
(ctx context.Context, podName, device string)
internal/controller/powercappingconfig_controller.go:146
↓ 1 callersMethodgetPodDevices
(pod *corev1.Pod)
internal/controller/powercappingconfig_controller.go:222
↓ 1 callersFunctiongetPowerCapPercentage
(label string)
internal/controller/powercappingconfig_controller.go:302
↓ 1 callersFunctionget_power_capping_strategy
(strategy_name: str)
python/climatik_operator/strategies/__init__.py:6
↓ 1 callersFunctionget_power_consumption
(deployment_name, namespace)
python/climatik_operator/operator.py:226
↓ 1 callersMethodhandleBlockActions
(w http.ResponseWriter, payload *slack.InteractionCallback)
internal/webhook/handlers/slack_handler.go:107
↓ 1 callersMethodhandleModifyPowerConfig
(w http.ResponseWriter)
internal/webhook/handlers/slack_handler.go:199
↓ 1 callersMethodhandleParameterUpdate
(w http.ResponseWriter, payload *slack.InteractionCallback)
internal/webhook/handlers/slack_handler.go:171
↓ 1 callersMethodhandlePodAdd
(obj interface{})
internal/controller/powercappingconfig_controller.go:170
↓ 1 callersMethodhandleViewSubmission
(w http.ResponseWriter, payload *slack.InteractionCallback)
internal/webhook/handlers/slack_handler.go:119
↓ 1 callersFunctionlist_pods_in_deployment
(namespace, deployment_name, debug=False)
python/climatik_operator/k8s_utils.py:11
↓ 1 callersMethodopenParameterInputModal
(w http.ResponseWriter, triggerID, parameter string)
internal/webhook/handlers/slack_handler.go:128
↓ 1 callersMethodqueryPodPeakPower
(ctx context.Context, podName, window string)
internal/controller/powercappingconfig_controller.go:275
↓ 1 callersMethodsendWebhookAlert
(alert SlackAlert)
internal/alert/adapters/slack.go:79
↓ 1 callersFunctionserve
()
python/planner/planner.py:30
↓ 1 callersMethodupdate_bpf_block_irq
(self, deployment, bpf_block_irq)
python/climatik_operator/prom_metrics.py:135
↓ 1 callersMethodupdate_bpf_cpu_time_ms
(self, deployment, bpf_cpu_time_ms)
python/climatik_operator/prom_metrics.py:141
↓ 1 callersMethodupdate_bpf_net_rx_irq
(self, deployment, bpf_net_rx_irq)
python/climatik_operator/prom_metrics.py:147
↓ 1 callersMethodupdate_bpf_net_tx_irq
(self, deployment, bpf_net_tx_irq)
python/climatik_operator/prom_metrics.py:153
↓ 1 callersMethodupdate_bpf_page_cache_hit
(self, deployment, bpf_page_cache_hit)
python/climatik_operator/prom_metrics.py:159
↓ 1 callersMethodupdate_core_joules
(self, deployment, core_joules)
python/climatik_operator/prom_metrics.py:120
↓ 1 callersMethodupdate_dram_joules
(self, deployment, dram_joules)
python/climatik_operator/prom_metrics.py:125
↓ 1 callersMethodupdate_forecast_power_consumption
(self, deployment, forecast_power)
python/climatik_operator/prom_metrics.py:109
↓ 1 callersMethodupdate_gpu_joules
(self, deployment, gpu_joules)
python/climatik_operator/prom_metrics.py:130
↓ 1 callersMethodupdate_joules
(self, deployment, joules)
python/climatik_operator/prom_metrics.py:166
↓ 1 callersMethodupdate_metrics
(self)
python/climatik_operator/prom_metrics.py:170
↓ 1 callersMethodupdate_power_consumption
(self, deployment, power_consumption)
python/climatik_operator/prom_metrics.py:102
↓ 1 callersMethodupdate_replicas
(self, deployment, count)
python/climatik_operator/prom_metrics.py:98
next →1–100 of 210, ranked by callers