MCPcopy Create free account

hub / github.com/calfonso/rusternetes / functions

Functions6,481 in github.com/calfonso/rusternetes

↓ 1 callersFunctioninject_service_account_token
ServiceAccount admission controller - injects service account token volumes into pods This is a built-in admission controller that: 1. Sets serviceAcc
crates/api-server/src/admission.rs:951
↓ 1 callersMethodinject_service_account_token
( &self, spec: &mut rusternetes_common::resources::PodSpec, namespace: &str, )
crates/controller-manager/src/controllers/daemonset.rs:1021
↓ 1 callersMethodinto_mtls_server_config
Create rustls server config with mutual TLS (mTLS)
crates/common/src/tls.rs:123
↓ 1 callersFunctionis_allowed_capability_baseline
Check if a capability is allowed in baseline mode
crates/common/src/admission.rs:462
↓ 1 callersFunctionis_being_deleted
Check if a resource is being deleted
crates/common/src/deletion.rs:219
↓ 1 callersMethodis_driver_supported
(&self, driver: &str)
crates/controller-manager/src/controllers/volume_snapshot.rs:263
↓ 1 callersMethodis_empty
Returns true if the queue is empty.
crates/storage/src/workqueue.rs:303
↓ 1 callersMethodis_expired
Check if token is expired
crates/common/src/auth.rs:320
↓ 1 callersMethodis_job_finished
Check if a Job is finished
crates/controller-manager/src/controllers/ttl_controller.rs:223
↓ 1 callersMethodis_node_allowed_resource
Check if the resource type is one that nodes are allowed to read
crates/common/src/authz.rs:476
↓ 1 callersMethodis_node_api_group
Check if the request is for node-related API groups
crates/common/src/authz.rs:496
↓ 1 callersMethodis_node_lease_fresh
Check if the node's Lease in kube-node-lease namespace has a recent renewTime. Returns true if the Lease exists and was renewed within the grace perio
crates/controller-manager/src/controllers/node.rs:310
↓ 1 callersMethodis_node_ready
Check if a node is ready based on its last heartbeat Check if a node is ready by examining BOTH: 1. The node's Ready condition heartbeat time 2. The n
crates/controller-manager/src/controllers/node.rs:231
↓ 1 callersMethodis_node_ready_async
Async version that checks BOTH node condition AND Lease.
crates/controller-manager/src/controllers/node.rs:275
↓ 1 callersMethodis_own_node
Check if the request is for the node's own Node object
crates/common/src/authz.rs:469
↓ 1 callersMethodis_owned_by
Check if a pod is owned by this ReplicaSet (has a controller ownerReference pointing to it)
crates/controller-manager/src/controllers/replicaset.rs:361
↓ 1 callersMethodis_pod_healthy
Check if a pod is healthy (Running and Ready)
crates/controller-manager/src/controllers/pod_disruption_budget.rs:272
↓ 1 callersFunctionis_protobuf
Check if data appears to be protobuf-encoded (has magic number)
crates/common/src/protobuf.rs:169
↓ 1 callersMethodis_provisioner_supported
(&self, provisioner: &str)
crates/controller-manager/src/controllers/dynamic_provisioner.rs:232
↓ 1 callersMethodis_threshold_exceeded
Check if a threshold is exceeded
crates/kubelet/src/eviction.rs:161
↓ 1 callersFunctionis_valid_sysctl_name
Validate sysctl name matches K8s allowed pattern. Names must be dot-separated segments of lowercase alphanumeric with hyphens/underscores.
crates/api-server/src/handlers/pod.rs:1546
↓ 1 callersFunctionjson_to_any
(v: &serde_json::Value)
crates/api-server/src/gnostic.rs:326
↓ 1 callersFunctionjson_to_document
(v: &serde_json::Value)
crates/api-server/src/gnostic.rs:28
↓ 1 callersFunctionjson_to_path_item
(v: &serde_json::Value)
crates/api-server/src/gnostic.rs:100
↓ 1 callersFunctionjson_to_vendor_extensions
(obj: &serde_json::Map<String, serde_json::Value>)
crates/api-server/src/gnostic.rs:316
↓ 1 callersMethodjwk_to_decoding_key
Convert JWK to DecodingKey
crates/common/src/auth.rs:706
↓ 1 callersFunctionk8sGet
( apiPath: string, )
console/src/engine/query.ts:69
↓ 1 callersFunctionk8sList
( apiPath: string, opts?: { labelSelector?: string; fieldSelector?: string; limit?: number;
console/src/engine/query.ts:47
↓ 1 callersFunctionk8sUpdate
( apiPath: string, resource: T, )
console/src/engine/query.ts:90
↓ 1 callersFunctionkind_to_output_name
Kind to lowercase resource name for output (e.g., "Deployment" -> "deployment.apps")
crates/kubectl/src/commands/replace.rs:165
↓ 1 callersFunctionkind_to_plural
Map K8s Kind names to their plural storage resource names. K8s uses discovery API for this; we use a static mapping.
crates/controller-manager/src/controllers/garbage_collector.rs:1000
↓ 1 callersFunctionlabel_selector_strategy
()
crates/common/tests/fuzz_roundtrip_jsonproto_test.rs:253
↓ 1 callersMethodlabels_match_selector
Check if a pod's labels match the RC's selector (pure label check, ignores ownerReference)
crates/controller-manager/src/controllers/replicationcontroller.rs:454
↓ 1 callersMethodlabels_match_selector
Check if a pod's labels match the ReplicaSet's selector (ignoring ownerReference)
crates/controller-manager/src/controllers/replicaset.rs:346
↓ 1 callersMethodlen
Returns the number of keys currently waiting in the queue.
crates/storage/src/workqueue.rs:297
↓ 1 callersMethodlist
(&self, prefix: &str)
crates/storage/src/rhino.rs:304
↓ 1 callersFunctionlist_custom_metrics
List custom metric values for multiple objects of the same type
crates/api-server/src/handlers/custom_metrics.rs:98
↓ 1 callersFunctionlist_custom_resources
List custom resource instances
crates/api-server/src/handlers/custom_resource.rs:353
↓ 1 callersFunctionlist_node_metrics
List metrics for all nodes. Reads metrics published to storage by the kubelets.
crates/api-server/src/handlers/metrics.rs:72
↓ 1 callersMethodlist_plugins
List all available plugins
crates/kubelet/src/cni/plugin.rs:339
↓ 1 callersFunctionlist_pod_metrics
List metrics for all pods in a namespace
crates/api-server/src/handlers/metrics.rs:207
↓ 1 callersFunctionlist_registered_apiservice_groups
Discovery merge: produce APIGroup entries for APIServices whose backing `{group}/{version}` is not one of the built-in groups. Caller is responsible f
crates/api-server/src/handlers/generic.rs:568
↓ 1 callersFunctionlist_resource_version
Compute the list-level resourceVersion from the max item resourceVersion. This uses etcd mod_revisions (from individual items) rather than timestamps.
crates/api-server/src/handlers/mod.rs:84
↓ 1 callersFunctionlist_response
(resource_name: &str)
crates/api-server/src/openapi.rs:696
↓ 1 callersMethodlog_request
Log an API request
crates/common/src/audit.rs:314
↓ 1 callersMethodlog_response
( &self, audit_id: String, request_uri: String, verb: String, user: Us
crates/common/src/audit.rs:353
↓ 1 callersFunctionmain
()
examples/admission-webhooks/mock-webhook-server.py:148
↓ 1 callersFunctionmake_all_pods_ready
Mark all pods in a namespace as Running and Ready
crates/controller-manager/tests/deployment_controller_test.rs:21
↓ 1 callersFunctionmake_all_pods_ready
Mark all pods in a namespace as Running and Ready
crates/controller-manager/tests/deployment_scaling_test.rs:26
↓ 1 callersFunctionmake_container
(name: &str, image: &str)
crates/kubelet/tests/kubelet_lifecycle_test.rs:20
↓ 1 callersFunctionmake_container_with_prestop_http
Helper: create a container with a preStop HTTP hook.
crates/kubelet/tests/kubelet_lifecycle_test.rs:540
↓ 1 callersFunctionmake_orphan_pod
(name: &str, labels: HashMap<String, String>)
crates/controller-manager/src/controllers/replicationcontroller.rs:871
↓ 1 callersFunctionmake_running_container_status
(name: &str)
crates/kubelet/src/kubelet.rs:4165
↓ 1 callersFunctionmake_state
(mem: Arc<MemoryStorage>)
crates/api-server/tests/decoder_content_type_test.rs:56
↓ 1 callersFunctionmake_state
(mem: Arc<MemoryStorage>)
crates/api-server/tests/decoder_malformed_json_test.rs:42
↓ 1 callersFunctionmake_state
(mem: Arc<MemoryStorage>)
crates/api-server/tests/decoder_strict_fields_test.rs:45
↓ 1 callersFunctionmake_test_pod
()
crates/kubectl/src/commands/describe.rs:435
↓ 1 callersFunctionmatches_node_selector
Check if node matches a node selector
crates/scheduler/src/advanced.rs:225
↓ 1 callersMethodmatches_node_selector
(&self, node: &Node, daemonset: &DaemonSet)
crates/controller-manager/src/controllers/daemonset.rs:851
↓ 1 callersFunctionmerge_fields
Merge modified fields into the result
crates/common/src/server_side_apply.rs:255
↓ 1 callersFunctionmerge_metadata
Merge metadata fields carefully (preserve system fields)
crates/common/src/server_side_apply.rs:275
↓ 1 callersMethodmetadata
(&self)
crates/api-server/src/handlers/finalizers.rs:178
↓ 1 callersFunctionmicrosecond_timestamp
Generate a `chrono::DateTime<Utc>` whose sub-second precision lands exactly on a microsecond boundary — anything finer would drift through MicroTime's
crates/common/tests/fuzz_roundtrip_jsonproto_test.rs:524
↓ 1 callersMethodmime_type
Get the MIME type string
crates/api-server/src/response.rs:75
↓ 1 callersMethodmirror_endpoint
Mirror a single Endpoints resource into an EndpointSlice. Only mirrors Endpoints for services without selectors or standalone Endpoints. K8s ref: pkg/
crates/controller-manager/src/controllers/endpointslice.rs:274
↓ 1 callersMethodmirror_worker
Worker for mirroring Endpoints to EndpointSlices. K8s has a separate endpointslice-mirroring-controller that watches Endpoints and creates EndpointSli
crates/controller-manager/src/controllers/endpointslice.rs:250
↓ 1 callersFunctionmove_operation
Move operation - moves a value from one path to another
crates/api-server/src/patch.rs:285
↓ 1 callersMethodneeds_expansion
Check if a PVC needs expansion
crates/controller-manager/src/controllers/volume_expansion.rs:201
↓ 1 callersFunctionneeds_shell_quoting
Check if a string contains any shell metacharacters that require quoting
crates/kubelet/src/runtime.rs:127
↓ 1 callersFunctionnonempty_string_map
Generate a non-empty small `HashMap<String,String>` (1..=3 entries).
crates/common/tests/fuzz_roundtrip_jsonproto_test.rs:80
↓ 1 callersMethodnormalize_image_name
Normalize image name to include default registry
crates/kubelet/src/runtime.rs:466
↓ 1 callersMethodnormalize_score
Optional: normalize scores across all nodes after scoring
crates/scheduler/src/framework.rs:218
↓ 1 callersFunctionobject_reference_strategy
()
crates/common/tests/fuzz_roundtrip_jsonproto_test.rs:494
↓ 1 callersMethodoffset_to_ip
Convert offset to IP address
crates/api-server/src/ip_allocator.rs:107
↓ 1 callersFunctiononInput
()
docs/guide/search.js:78
↓ 1 callersMethodoperation_matches
Check if operation matches webhook rule
crates/api-server/src/admission_webhook.rs:1590
↓ 1 callersMethodorphan_dependents
Orphan dependents by removing owner references. Finds all resources that have the deleted resource as an owner, then removes the owner reference to th
crates/controller-manager/src/controllers/garbage_collector.rs:654
↓ 1 callersFunctionparse_duration_to_seconds
(s: &str)
crates/kubectl/src/commands/create.rs:1354
↓ 1 callersFunctionparse_gv_path
Parse the group and version from an OpenAPI v3 path. Examples: "api/v1" -> ("", "v1") (core API) "apis/apps/v1" -> ("apps", "v1") "
crates/api-server/src/handlers/openapi.rs:283
↓ 1 callersFunctionparse_memory_value
Parse memory value string (e.g., "100Mi", "1Gi") to bytes
crates/kubelet/src/eviction.rs:478
↓ 1 callersFunctionparse_multiple_ports
(ports: &[&str])
crates/kubectl/tests/exec_attach_portforward_tests.rs:203
↓ 1 callersFunctionparse_set_requirement
(s: &str)
crates/api-server/src/handlers/watch.rs:1167
↓ 1 callersFunctionpatch_custom_resource
Patch a custom resource instance (JSON Patch, JSON Merge Patch, or Strategic Merge Patch)
crates/api-server/src/handlers/custom_resource.rs:557
↓ 1 callersFunctionpatch_custom_resource_status
Patch the status subresource of a custom resource
crates/api-server/src/handlers/custom_resource.rs:855
↓ 1 callersFunctionpercent_decode_str
Simple percent-decoding for URL query parameters
crates/api-server/src/handlers/pod_subresources.rs:27
↓ 1 callersFunctionpodColor
(phase?: string)
console/src/views/TopologyView.tsx:37
↓ 1 callersMethodpod_info
(&self)
crates/api-server/src/handlers/table.rs:320
↓ 1 callersMethodpod_matches_expression
Check if pod labels match a label selector expression
crates/controller-manager/src/controllers/network_policy.rs:428
↓ 1 callersFunctionpod_matches_quota_scopes
Check if a pod matches the scopes of a ResourceQuota. All scopes must match (AND logic).
crates/api-server/src/admission.rs:53
↓ 1 callersMethodpod_matches_selector
Check if a pod matches a label selector
crates/controller-manager/src/controllers/network_policy.rs:391
↓ 1 callersMethodpod_matches_selector
Check if a pod matches the PDB selector
crates/controller-manager/src/controllers/pod_disruption_budget.rs:291
↓ 1 callersMethodpod_matches_selector
Check if a pod matches the service selector
crates/controller-manager/src/controllers/endpoints.rs:352
↓ 1 callersFunctionpod_strategy
()
crates/common/tests/fuzz_roundtrip_jsonproto_test.rs:219
↓ 1 callersFunctionpod_template_hash
Compute the pod-template-hash exactly as the controller does so that the preseeded ReplicaSet is recognised as the "active" RS (matches template).
crates/controller-manager/tests/deployment_idempotency_test.rs:90
↓ 1 callersFunctionpod_tolerates_node_taints
Check whether a set of tolerations tolerates all NoSchedule and NoExecute taints on a node.
crates/controller-manager/src/controllers/daemonset.rs:16
↓ 1 callersMethodpod_toleration_for_taint
Check how a pod tolerates a specific taint
crates/controller-manager/src/controllers/taint_eviction.rs:251
↓ 1 callersFunctionport_forward_stream
Forward a local port to a pod port
crates/kubectl/src/websocket.rs:221
↓ 1 callersFunctionprint_bash_completion
()
crates/kubectl/src/commands/completion.rs:22
↓ 1 callersFunctionprint_fish_completion
()
crates/kubectl/src/commands/completion.rs:153
↓ 1 callersFunctionprint_powershell_completion
()
crates/kubectl/src/commands/completion.rs:213
← previousnext →1,301–1,400 of 6,481, ranked by callers