MCPcopy Create free account

hub / github.com/calfonso/rusternetes / functions

Functions6,481 in github.com/calfonso/rusternetes

↓ 1 callersFunctionfield_owned_by
Check if a field is owned by a manager based on fields_v1
crates/common/src/server_side_apply.rs:246
↓ 1 callersFunctionfilter_by_namespace
( pods: &'a [(&str, &str)], namespace: &str, )
crates/kubectl/tests/top_tests.rs:206
↓ 1 callersMethodfind_affected_pods
Find all pods affected by this NetworkPolicy
crates/controller-manager/src/controllers/network_policy.rs:370
↓ 1 callersFunctionfind_duplicate_json_key
Find duplicate JSON keys at any nesting level of a JSON object string. Returns the first duplicate key found (just the key name, not dotted path), or
crates/api-server/src/handlers/validation.rs:13
↓ 1 callersMethodfind_orphans
Find orphaned resources — resources where ALL owner references point to non-existent owners. A resource with at least one valid owner is NOT an orphan
crates/controller-manager/src/controllers/garbage_collector.rs:322
↓ 1 callersMethodfind_port
Find the container port on a pod that corresponds to a service port. Implements K8s's FindPort logic: - If targetPort is a string (named port), search
crates/controller-manager/src/controllers/endpointslice.rs:945
↓ 1 callersFunctionfind_unknown_fields_recursive
Recursively find fields in `original` that are not present in `canonical`. Returns a list of dotted field paths for unknown fields.
crates/api-server/src/handlers/validation.rs:332
↓ 1 callersFunctionfirst_ip_from_cidr
Extract the first usable IP address from a CIDR range For example, "10.96.0.0/12" -> "10.96.0.1"
crates/kubelet/src/config.rs:204
↓ 1 callersFunctionformat_age
Test timestamp age calculation
crates/kubectl/tests/describe_tests.rs:321
↓ 1 callersFunctionformat_api_resource
( name: &str, shortnames: &[&str], api_version: &str, namespac
crates/kubectl/tests/info_commands_tests.rs:141
↓ 1 callersFunctionformat_api_versions
(versions: &[&str])
crates/kubectl/tests/info_commands_tests.rs:272
↓ 1 callersFunctionformat_client_version
(version: &str, commit: &str, build_date: &str)
crates/kubectl/tests/info_commands_tests.rs:19
↓ 1 callersFunctionformat_cluster_info
(name: &str, server: &str)
crates/kubectl/tests/info_commands_tests.rs:66
↓ 1 callersFunctionformat_container_row
(pod: &str, container: &str, cpu: &str, memory: &str)
crates/kubectl/tests/top_tests.rs:260
↓ 1 callersFunctionformat_endpoints
Test service endpoints formatting
crates/kubectl/tests/describe_tests.rs:142
↓ 1 callersFunctionformat_event
Test event formatting for describe output
crates/kubectl/tests/describe_tests.rs:65
↓ 1 callersFunctionformat_field_description
( field: &str, field_type: &str, description: &str, required:
crates/kubectl/tests/info_commands_tests.rs:341
↓ 1 callersFunctionformat_node_info
Test node information formatting
crates/kubectl/tests/describe_tests.rs:159
↓ 1 callersFunctionformat_node_row
( name: &str, cpu: &str, cpu_pct: &str, mem: &str,
crates/kubectl/tests/top_tests.rs:138
↓ 1 callersFunctionformat_option_help
(flag: &str, description: &str)
crates/kubectl/tests/info_commands_tests.rs:422
↓ 1 callersFunctionformat_pod_row
(name: &str, namespace: &str, cpu: &str, memory: &str)
crates/kubectl/tests/top_tests.rs:193
↓ 1 callersFunctionformat_resources
Test resource requirements formatting
crates/kubectl/tests/describe_tests.rs:122
↓ 1 callersFunctionformat_user_info
(username: &str, uid: &str, groups: &[&str])
crates/kubectl/tests/auth_tests.rs:141
↓ 1 callersMethodgarbage_collect_containers
Container garbage collector — removes dead containers to prevent buildup. Matches K8s kuberuntime_gc.go: - For deleted pods (not in existing_pods): re
crates/kubelet/src/runtime.rs:7763
↓ 1 callersFunctiongenerate_components
Generate component schemas
crates/api-server/src/openapi.rs:891
↓ 1 callersFunctiongenerate_debug_container_name
(pod: &Value)
crates/kubectl/src/commands/debug.rs:224
↓ 1 callersFunctiongenerate_paths
Generate API paths
crates/api-server/src/openapi.rs:86
↓ 1 callersFunctiongenerate_pod_logs
Generate synthetic logs for a pod container
crates/api-server/src/handlers/pod_subresources.rs:337
↓ 1 callersMethodgenerate_recommendations
Generate resource recommendations using percentile-based algorithm
crates/controller-manager/src/controllers/vpa.rs:382
↓ 1 callersMethodgenerate_simulated_lb_ip
Generate a simulated load balancer IP Uses a deterministic approach based on namespace and name to ensure consistent IPs across reconciliation loops
crates/controller-manager/src/controllers/ingress.rs:422
↓ 1 callersFunctiongenerate_tags
Generate API tags for grouping
crates/api-server/src/openapi.rs:44
↓ 1 callersFunctiongetReadyCount
(item: K8sResource)
console/src/views/ResourceListView.tsx:42
↓ 1 callersFunctiongetStatus
(item: K8sResource)
console/src/views/ResourceListView.tsx:29
↓ 1 callersMethodget_allocated_node_ports
Get all currently allocated NodePorts across all services
crates/controller-manager/src/controllers/loadbalancer.rs:449
↓ 1 callersFunctionget_api_server_ip
Get the API server's IP address from the network interface This discovers the container's IP on the Docker/Podman network
crates/api-server/src/bootstrap.rs:10
↓ 1 callersMethodget_base_url
(&self)
crates/kubectl/src/client.rs:326
↓ 1 callersMethodget_configmap_value
Get a value from a ConfigMap
crates/kubelet/src/runtime.rs:7452
↓ 1 callersMethodget_container_age
Get the age of a pod's pause container (time since creation). Returns Duration::ZERO if the container can't be found.
crates/kubelet/src/runtime.rs:7948
↓ 1 callersMethodget_container_exit_code
Get the exit code of a terminated container. Returns the exit code or an error if the container doesn't exist.
crates/kubelet/src/runtime.rs:7201
↓ 1 callersFunctionget_container_logs
Get real logs from the container runtime
crates/api-server/src/handlers/pod_subresources.rs:225
↓ 1 callersFunctionget_container_stats
Get resource stats for a single container
crates/kubelet/src/eviction.rs:660
↓ 1 callersMethodget_current_resource_utilization
Get current resource utilization from metrics API In a real implementation, this would query metrics.k8s.io/v1beta1 For now, returns mock data based o
crates/controller-manager/src/controllers/hpa.rs:451
↓ 1 callersMethodget_current_value
Get current value for an eviction signal
crates/kubelet/src/eviction.rs:208
↓ 1 callersFunctionget_custom_metric
Get a custom metric value for a specific object
crates/api-server/src/handlers/custom_metrics.rs:26
↓ 1 callersFunctionget_custom_resource_status
Get the status subresource of a custom resource
crates/api-server/src/handlers/custom_resource.rs:1377
↓ 1 callersMethodget_default_config
Get the default network configuration (first in alphabetical order)
crates/kubelet/src/cni/config.rs:243
↓ 1 callersMethodget_device_class
(&self, name: &str)
crates/controller-manager/src/controllers/resourceclaim.rs:277
↓ 1 callersMethodget_events_since
Get all cached events for a prefix with revision > the given revision.
crates/api-server/src/watch_cache.rs:191
↓ 1 callersFunctionget_global_options
()
crates/kubectl/tests/info_commands_tests.rs:406
↓ 1 callersFunctionget_impersonate_extra_header
(key: &str, value: &str)
crates/kubectl/tests/auth_tests.rs:361
↓ 1 callersFunctionget_impersonate_groups_headers
(groups: &[&str])
crates/kubectl/tests/auth_tests.rs:335
↓ 1 callersFunctionget_impersonate_header
(user: &str)
crates/kubectl/tests/auth_tests.rs:324
↓ 1 callersFunctionget_impersonate_uid_header
(uid: &str)
crates/kubectl/tests/auth_tests.rs:350
↓ 1 callersMethodget_jwks
Get the cached JWKS, fetching if not present
crates/common/src/auth.rs:653
↓ 1 callersMethodget_list
(&self, path: &str)
crates/kubectl/tests/mock_client_example.rs:34
↓ 1 callersMethodget_namespace
Get the namespace for the current context
crates/kubectl/src/kubeconfig.rs:182
↓ 1 callersFunctionget_namespace_metric
Get a custom metric value for a namespace-scoped metric
crates/api-server/src/handlers/custom_metrics.rs:236
↓ 1 callersFunctionget_node_field
Get a field value from a node
crates/scheduler/src/advanced.rs:316
↓ 1 callersFunctionget_node_header
()
crates/kubectl/tests/top_tests.rs:324
↓ 1 callersFunctionget_node_metrics
Get metrics for a specific node. Reads metrics published to storage by the kubelet.
crates/api-server/src/handlers/metrics.rs:21
↓ 1 callersFunctionget_node_stats
Get node resource statistics Queries actual system resources using sysinfo crate
crates/kubelet/src/eviction.rs:499
↓ 1 callersMethodget_or_create_lease
Get or create a lease
crates/common/src/leader_election.rs:229
↓ 1 callersFunctionget_pid_stats
()
crates/kubelet/src/eviction.rs:544
↓ 1 callersMethodget_plugin
Get a plugin by type/name
crates/kubelet/src/cni/plugin.rs:226
↓ 1 callersFunctionget_pod_header
()
crates/kubectl/tests/top_tests.rs:339
↓ 1 callersFunctionget_pod_metrics
Get metrics for a specific pod
crates/api-server/src/handlers/metrics.rs:125
↓ 1 callersFunctionget_pod_stats
Get pod resource usage statistics Queries the container runtime for actual resource usage
crates/kubelet/src/eviction.rs:588
↓ 1 callersFunctionget_pod_stats_async
Async implementation of pod stats gathering
crates/kubelet/src/eviction.rs:593
↓ 1 callersFunctionget_proxy_client
Create a shared reqwest client for proxy requests. Using a shared client enables connection pooling and avoids the overhead of creating a new TLS cont
crates/api-server/src/handlers/proxy.rs:567
↓ 1 callersFunctionget_qos_class
Determine QoS class for a pod
crates/kubelet/src/eviction.rs:428
↓ 1 callersMethodget_secret_value
Get a value from a Secret
crates/kubelet/src/runtime.rs:7470
↓ 1 callersMethodget_server
Get the server URL for the current context
crates/kubectl/src/kubeconfig.rs:175
↓ 1 callersMethodget_stream
Get a streaming response for watch mode
crates/kubectl/src/client.rs:103
↓ 1 callersMethodget_target_pods
Find pods targeted by this VPA
crates/controller-manager/src/controllers/vpa.rs:229
↓ 1 callersMethodget_template_from_revision
Look up a ControllerRevision and extract the PodTemplateSpec from its data field.
crates/controller-manager/src/controllers/statefulset.rs:1226
↓ 1 callersMethodget_user_cluster_role_bindings
Get all ClusterRoleBindings that apply to the user
crates/common/src/authz.rs:215
↓ 1 callersMethodget_user_role_bindings
Get all RoleBindings that apply to the user
crates/common/src/authz.rs:198
↓ 1 callersMethodget_user_rules
( &self, user: &UserInfo, namespace: &str, )
crates/common/src/authz.rs:295
↓ 1 callersFunctiongvk_extension_from_path
Extract group and version from a Kubernetes API path and build the x-kubernetes-group-version-kind extension value.
crates/api-server/src/openapi.rs:253
↓ 1 callersFunctionhandleDelete
(item: K8sResource)
console/src/views/ResourceListView.tsx:107
↓ 1 callersFunctionhandle_attach_websocket
Alias for backward compatibility
crates/api-server/src/streaming.rs:365
↓ 1 callersMethodhandle_crd_deletion
Handle CRD deletion: process finalizers by cleaning up custom resources, then remove the finalizer and delete the CRD. K8s ref: staging/src/k8s.io/ap
crates/controller-manager/src/controllers/crd.rs:202
↓ 1 callersMethodhandle_eviction
Handle pod eviction when node resources are exhausted
crates/kubelet/src/kubelet.rs:3981
↓ 1 callersFunctionhandle_exec_websocket_with_protocol
( socket: WebSocket, pod: Pod, container_name: String, command: Vec<String>, stdin: bool,
crates/api-server/src/streaming.rs:334
↓ 1 callersFunctionhandle_port_forward_connection
( tcp_stream: tokio::net::TcpStream, ws_url: Url, remote_port: u16, )
crates/kubectl/src/websocket.rs:257
↓ 1 callersFunctionhandle_portforward_websocket
Handle WebSocket port-forward
crates/api-server/src/streaming.rs:378
↓ 1 callersFunctionhandle_request
( req: Request<Incoming>, state: &ProxyState, )
crates/kubectl/src/commands/proxy.rs:88
↓ 1 callersMethodhandle_snapshot_restore
Handle snapshot restore by validating the snapshot and returning the source path
crates/controller-manager/src/controllers/dynamic_provisioner.rs:374
↓ 1 callersFunctionhandle_spdy_attach
Handle SPDY attach connection by proxying to the kubelet
crates/api-server/src/spdy_handlers.rs:159
↓ 1 callersFunctionhandle_spdy_portforward
Handle SPDY port-forward connection
crates/api-server/src/spdy_handlers.rs:182
↓ 1 callersFunctionhandle_ws_attach
Handle WebSocket attach
crates/api-server/src/streaming.rs:273
↓ 1 callersMethodhas_any_app_container
Check if any app (non-init, non-pause) container has been created for a pod. K8s ref: kubelet_pods.go:2689 — HasAnyRegularContainerCreated. If app con
crates/kubelet/src/runtime.rs:5189
↓ 1 callersMethodhas_controller_owner
Check if a pod has any controller ownerReference at all
crates/controller-manager/src/controllers/replicationcontroller.rs:487
↓ 1 callersMethodhas_controller_owner
Check if a pod has any controller ownerReference at all
crates/controller-manager/src/controllers/replicaset.rs:376
↓ 1 callersFunctionhas_finalizers
Check if a resource has finalizers
crates/common/src/deletion.rs:232
↓ 1 callersMethodhas_terminated_containers
Check if any spec container in a pod has terminated (exited). This is a lightweight check that only inspects Docker state — it does NOT run any probes
crates/kubelet/src/runtime.rs:5124
↓ 1 callersMethodhas_usage
Check if token has the specified usage
crates/common/src/auth.rs:329
↓ 1 callersFunctionhost_ips_overlap
Check if two hostIP values overlap. "0.0.0.0", "::", and "" all mean "all interfaces" and overlap with everything.
crates/scheduler/src/advanced.rs:521
↓ 1 callersFunctioninit
()
docs/guide/search.js:49
↓ 1 callersMethodinitialize
Initialize iptables chains and jump rules
crates/kube-proxy/src/iptables.rs:174
← previousnext →1,201–1,300 of 6,481, ranked by callers