Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/calfonso/rusternetes
/ functions
Functions
6,481 in github.com/calfonso/rusternetes
⨍
Functions
6,481
◇
Types & classes
991
↓ 2 callers
Method
get_container_ip
Get the primary IP address for a container
crates/kubelet/src/cni/runtime.rs:256
↓ 2 callers
Function
get_core_api
GET /api Returns the list of API versions available at /api/v1
crates/api-server/src/handlers/discovery.rs:129
↓ 2 callers
Method
get_current_replicas
Get current replica count from the target resource
crates/controller-manager/src/controllers/hpa.rs:242
↓ 2 callers
Function
get_custom_resource
Get a specific custom resource instance
crates/api-server/src/handlers/custom_resource.rs:297
↓ 2 callers
Function
get_custom_resource_scale
Get the scale subresource of a custom resource
crates/api-server/src/handlers/custom_resource.rs:1491
↓ 2 callers
Method
get_endpoint_ports
Compute endpoint ports for a pod based on the service's port definitions. Follows K8s's getEndpointPorts() logic: - For each service port, try to find
crates/controller-manager/src/controllers/endpointslice.rs:918
↓ 2 callers
Method
get_job_finish_time
Get the finish time of a Job
crates/controller-manager/src/controllers/ttl_controller.rs:235
↓ 2 callers
Function
get_response
(resource_name: &str)
crates/api-server/src/openapi.rs:715
↓ 2 callers
Method
get_stats
Get statistics about active attachments
crates/kubelet/src/cni/runtime.rs:293
↓ 2 callers
Method
get_text
Get a resource as plain text (for logs, etc.)
crates/kubectl/src/client.rs:283
↓ 2 callers
Method
get_token
(&self)
crates/kubectl/src/client.rs:330
↓ 2 callers
Function
handleCreate
()
console/src/views/StorageView.tsx:190
↓ 2 callers
Function
handleScale
(replicas: number)
console/src/views/WorkloadsView.tsx:131
↓ 2 callers
Function
handleScale
(replicas: number)
console/src/views/ResourceDetailView.tsx:96
↓ 2 callers
Function
handle_ws_exec
( mut socket: WebSocket, pod: Pod, container_name: String, command: Vec<String>, stdin: bo
crates/api-server/src/streaming.rs:26
↓ 2 callers
Method
has_finalizers
Check if the object has any finalizers
crates/common/src/types.rs:179
↓ 2 callers
Method
initialize
Initialize the flow control engine by loading configurations
crates/api-server/src/flow_control.rs:34
↓ 2 callers
Method
inject_conflicts
Arrange for the next `n` calls to `update()` to return `Error::Conflict`. Subsequent calls behave normally. Used by tests to verify retry logic.
crates/storage/src/memory.rs:49
↓ 2 callers
Function
invalidateAll
()
console/src/views/StorageView.tsx:484
↓ 2 callers
Method
is_container_running
Check if a specific container is running
crates/kubelet/src/runtime.rs:5097
↓ 2 callers
Function
is_hop_by_hop_header
Check if a header is a hop-by-hop header that should not be forwarded
crates/api-server/src/handlers/proxy.rs:781
↓ 2 callers
Method
is_in_range
Check if an IP is in the allocatable range
crates/api-server/src/ip_allocator.rs:93
↓ 2 callers
Function
is_manifest_file
Return true if the file extension indicates a Kubernetes manifest.
crates/kubectl/src/commands/apply.rs:177
↓ 2 callers
Method
is_pod_available
(&self, pod: &Pod, replicaset: &ReplicaSet)
crates/controller-manager/src/controllers/replicaset.rs:528
↓ 2 callers
Function
is_pod_best_effort
Check if a pod is BestEffort QoS class. A pod is BestEffort if NONE of its containers specify any resource requests or limits.
crates/api-server/src/admission.rs:13
↓ 2 callers
Function
is_pod_healthy
Check if a pod is healthy (Running phase)
crates/api-server/src/handlers/pod_subresources.rs:1253
↓ 2 callers
Method
is_pod_ready
Check if a pod is ready by examining its conditions
crates/controller-manager/src/controllers/endpoints.rs:606
↓ 2 callers
Function
is_spdy_request
Check if a request is requesting SPDY upgrade
crates/api-server/src/spdy.rs:219
↓ 2 callers
Function
is_spdy_upgrade
Check if headers indicate SPDY upgrade request (for use with HeaderMap extractor)
crates/api-server/src/spdy.rs:240
↓ 2 callers
Function
json_resource_version
Helper to extract metadata fields from a serde_json::Value
crates/api-server/src/handlers/watch.rs:2219
↓ 2 callers
Function
json_to_cel_value
Convert a serde_json::Value to a CEL Value
crates/common/src/cel.rs:213
↓ 2 callers
Function
json_to_schema
(v: &serde_json::Value)
crates/api-server/src/gnostic.rs:194
↓ 2 callers
Function
kind_to_plural
Simple heuristic to pluralize a Kind name.
crates/kubectl/src/commands/replace.rs:143
↓ 2 callers
Method
list
(&self, prefix: &str)
crates/storage/src/memory.rs:199
↓ 2 callers
Method
list_all_pods
List all pods with containers in Docker, including exited/stopped. Used by orphan cleanup to find and remove stopped containers from pods that have be
crates/kubelet/src/runtime.rs:7921
↓ 2 callers
Function
list_registered_apiservice_groups_with_storage
Storage-only flavour of [`list_registered_apiservice_groups`].
crates/api-server/src/handlers/generic.rs:573
↓ 2 callers
Method
list_resources_with_metadata
List resources with metadata
crates/controller-manager/src/controllers/garbage_collector.rs:242
↓ 2 callers
Method
load_priority_classes
Load all PriorityClasses from storage into a HashMap for fast lookup
crates/scheduler/src/scheduler.rs:1060
↓ 2 callers
Function
make_failed_pod_with_exit_code
( name: &str, namespace: &str, job_name: &str, job_uid: &str, index: i
crates/controller-manager/src/controllers/job.rs:1613
↓ 2 callers
Function
make_orphan_pod
(name: &str, namespace: &str, owner_uid: &str, owner_kind: &str)
crates/controller-manager/src/controllers/cascade_tests.rs:221
↓ 2 callers
Function
make_pod_for_deletion
Helper: create a pod with deletion timestamp set.
crates/kubelet/tests/kubelet_lifecycle_test.rs:572
↓ 2 callers
Function
make_replicaset
(name: &str, namespace: &str, uid: &str)
crates/controller-manager/src/controllers/cascade_tests.rs:198
↓ 2 callers
Function
make_state
Construct a minimal `ApiServerState` backed by the given `MemoryStorage`. `skip_auth = true` so the router uses `skip_auth_middleware` and no token is
crates/api-server/tests/patch_cas_retry_test.rs:36
↓ 2 callers
Function
map_get_error
Helper to convert GetError to anyhow::Error
crates/kubectl/src/commands/describe.rs:32
↓ 2 callers
Function
map_get_error
Helper to convert GetError to anyhow::Error
crates/kubectl/src/commands/get.rs:15
↓ 2 callers
Method
mark_allocated
(&self, ip: String)
crates/api-server/src/ip_allocator.rs:114
↓ 2 callers
Function
match_selector
Match a label selector against pod labels
crates/scheduler/src/advanced.rs:325
↓ 2 callers
Function
matches_field_selector
Check if an object matches a field selector (common: metadata.name, metadata.namespace)
crates/api-server/src/handlers/watch.rs:1209
↓ 2 callers
Function
matches_label_selector
Check if an object matches a label selector
crates/api-server/src/handlers/watch.rs:1084
↓ 2 callers
Method
matches_node_selector
(&self, node: &Node, selector: &HashMap<String, String>)
crates/scheduler/src/scheduler.rs:771
↓ 2 callers
Function
matches_node_selector_requirement
Check if node matches a selector requirement
crates/scheduler/src/advanced.rs:259
↓ 2 callers
Function
matches_node_selector_term
Check if node matches a single node selector term
crates/scheduler/src/advanced.rs:234
↓ 2 callers
Method
matches_resource
Check if a resource (as JSON) matches this label selector
crates/common/src/label_selector.rs:313
↓ 2 callers
Method
matches_selector
(&self, pod: &Pod, replicaset: &ReplicaSet)
crates/controller-manager/src/controllers/replicaset.rs:474
↓ 2 callers
Method
name
(&self)
crates/scheduler/src/plugins.rs:23
↓ 2 callers
Method
name
(&self)
crates/cloud-providers/src/aws.rs:487
↓ 2 callers
Function
negotiate_content_type
Negotiate content type based on Accept header
crates/api-server/src/response.rs:55
↓ 2 callers
Function
parseCpu
Parse CPU quantity (e.g. "250m" -> 0.25, "2" -> 2).
console/src/views/NodesView.tsx:81
↓ 2 callers
Function
parseMemMi
Parse memory quantity to Mi (e.g. "512Mi" -> 512, "1Gi" -> 1024, "262144Ki" -> 256).
console/src/views/NodesView.tsx:89
↓ 2 callers
Function
parse_copy_spec
Test parsing of "pod:path" format
crates/kubectl/tests/command_tests.rs:90
↓ 2 callers
Method
parse_cpu_to_millicores
Parse CPU string to millicores (e.g., "1" -> 1000, "500m" -> 500)
crates/controller-manager/src/controllers/resource_quota.rs:715
↓ 2 callers
Function
parse_duration_to_seconds
(duration: &str)
crates/kubectl/src/commands/logs.rs:105
↓ 2 callers
Function
parse_int_or_string
(s: &str)
crates/kubectl/src/commands/create.rs:1344
↓ 2 callers
Function
parse_jsonpath_condition
(condition: &str)
crates/kubectl/tests/wait_tests.rs:78
↓ 2 callers
Function
parse_label_selector
(selector: &str)
crates/kubectl/src/commands/create.rs:1333
↓ 2 callers
Function
parse_path
Parse a JSON pointer path into parts
crates/api-server/src/patch.rs:608
↓ 2 callers
Function
parse_resource
(resource: &str)
crates/kubectl/tests/auth_tests.rs:24
↓ 2 callers
Function
parse_resource_path
(path: &str)
crates/kubectl/tests/info_commands_tests.rs:328
↓ 2 callers
Function
parse_serviceaccount
(sa: &str)
crates/kubectl/tests/auth_tests.rs:246
↓ 2 callers
Function
patch_content
()
crates/api-server/src/openapi.rs:831
↓ 2 callers
Function
patch_json
Send a PATCH request to `uri` with the given JSON body and `Content-Type: application/merge-patch+json`. Returns the HTTP status code and the response
crates/api-server/tests/patch_cas_retry_test.rs:53
↓ 2 callers
Function
patch_response
(resource_name: &str)
crates/api-server/src/openapi.rs:772
↓ 2 callers
Function
pod_matches_pdb_selector
Check if a pod matches a PDB's label selector
crates/api-server/src/handlers/pod_subresources.rs:1232
↓ 2 callers
Function
pods_table
Helper function to create a table for Pods
crates/api-server/src/handlers/table.rs:144
↓ 2 callers
Method
provision_volume
(&self, pvc: &PersistentVolumeClaim)
crates/controller-manager/src/controllers/dynamic_provisioner.rs:164
↓ 2 callers
Function
proxy_request
Helper function to proxy an HTTP request to a target URL. K8s proxy endpoints return raw HTTP responses, NOT K8s Status JSON objects. On connection e
crates/api-server/src/handlers/proxy.rs:590
↓ 2 callers
Function
proxy_request_with_rewrite
Proxy request with optional URL rewriting for HTML responses. When `proxy_base_path` is Some, absolute URLs in HTML responses are rewritten to include
crates/api-server/src/handlers/proxy.rs:604
↓ 2 callers
Function
prune_custom_resource
Prune unknown fields from a CR based on the CRD schema. K8s removes fields not in the schema unless x-kubernetes-preserve-unknown-fields is set. This
crates/api-server/src/handlers/custom_resource.rs:1168
↓ 2 callers
Function
prune_value_against_schema
Recursively prune unknown fields from a JSON value against a JSONSchema. Fields not declared as a property are removed unless the schema (or the enclo
crates/api-server/src/handlers/custom_resource.rs:1264
↓ 2 callers
Method
pull_image_with_retry
Pull image with retry logic
crates/kubelet/src/runtime.rs:486
↓ 2 callers
Method
read_frame
Read the next frame from the connection
crates/api-server/src/spdy.rs:136
↓ 2 callers
Method
read_termination_message
Read the termination message from a stopped container. First tries reading from the host-side bind-mounted file, then falls back to docker cp.
crates/kubelet/src/runtime.rs:6202
↓ 2 callers
Method
reconcile
(&self, cronjob: &mut CronJob)
crates/controller-manager/src/controllers/cronjob.rs:150
↓ 2 callers
Method
reconcile_all
(&self)
crates/controller-manager/src/controllers/deployment.rs:234
↓ 2 callers
Method
reconcile_all
(&self)
crates/controller-manager/src/controllers/hpa.rs:132
↓ 2 callers
Function
reconcile_binding
Reconcile a RoleBinding or ClusterRoleBinding resource.
crates/kubectl/src/commands/auth.rs:333
↓ 2 callers
Method
reconcile_crd
Reconcile a single CustomResourceDefinition
crates/controller-manager/src/controllers/crd.rs:161
↓ 2 callers
Method
reconcile_csr
Reconcile a single CertificateSigningRequest
crates/controller-manager/src/controllers/certificate_signing_request.rs:165
↓ 2 callers
Method
reconcile_deletions
(&self)
crates/controller-manager/src/controllers/volume_snapshot.rs:374
↓ 2 callers
Method
reconcile_hpa
(&self, hpa: &HorizontalPodAutoscaler)
crates/controller-manager/src/controllers/hpa.rs:153
↓ 2 callers
Method
reconcile_ingress
Reconcile a single Ingress resource
crates/controller-manager/src/controllers/ingress.rs:160
↓ 2 callers
Method
reconcile_namespace
Reconcile a single namespace
crates/controller-manager/src/controllers/namespace.rs:151
↓ 2 callers
Method
reconcile_node
(&self, node: &Node)
crates/controller-manager/src/controllers/taint_eviction.rs:128
↓ 2 callers
Method
reconcile_node
Reconcile a single node
crates/controller-manager/src/controllers/node.rs:161
↓ 2 callers
Method
reconcile_pdb
(&self, pdb: &PodDisruptionBudget)
crates/controller-manager/src/controllers/pod_disruption_budget.rs:140
↓ 2 callers
Method
reconcile_policy
Reconcile a single NetworkPolicy
crates/controller-manager/src/controllers/network_policy.rs:161
↓ 2 callers
Method
reconcile_pvc
(&self, pvc: &PersistentVolumeClaim)
crates/controller-manager/src/controllers/volume_expansion.rs:155
↓ 2 callers
Method
reconcile_quota
Reconcile a single resource quota
crates/controller-manager/src/controllers/resource_quota.rs:239
↓ 2 callers
Method
reconcile_rc
(&self, rc: &ReplicationController)
crates/controller-manager/src/controllers/replicationcontroller.rs:239
↓ 2 callers
Method
reconcile_replicaset
( &self, replicaset: &ReplicaSet, )
crates/controller-manager/src/controllers/replicaset.rs:227
← previous
next →
801–900 of 6,481, ranked by callers