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
↓ 3 callers
Function
deployment_stub
(name: &str)
crates/api-server/tests/decoder_strict_fields_test.rs:137
↓ 3 callers
Function
describe_namespace
(namespace: &Namespace)
crates/kubectl/src/commands/describe.rs:361
↓ 3 callers
Function
describe_pod
(pod: &Pod)
crates/kubectl/src/commands/describe.rs:110
↓ 3 callers
Function
describe_service
(service: &Service)
crates/kubectl/src/commands/describe.rs:194
↓ 3 callers
Function
detect_cloud_provider
Detect cloud provider from environment
crates/cloud-providers/src/lib.rs:107
↓ 3 callers
Function
detect_container_resource_change
Detect if container resource requests/limits changed between old and new pod specs. Used to trigger in-place pod resize (KEP-1287).
crates/api-server/src/handlers/pod.rs:1578
↓ 3 callers
Function
encode
(s: &str)
crates/kubectl/src/commands/get.rs:412
↓ 3 callers
Method
enqueue_all
Enqueue all existing APIService keys for reconciliation.
crates/controller-manager/src/controllers/apiservice.rs:98
↓ 3 callers
Function
enrich_updated_crd
Enrich a CRD raw JSON value being stored on update with derived metadata and status fields. Specifically: - Sets `metadata.uid`/`metadata.name` from
crates/api-server/src/handlers/crd.rs:908
↓ 3 callers
Function
ensure_crypto_provider
()
crates/common/src/tls.rs:15
↓ 3 callers
Method
ensure_image
Pull an image if necessary based on the pull policy
crates/kubelet/src/runtime.rs:385
↓ 3 callers
Function
execute
Print the list of flags inherited by all commands. Equivalent to: kubectl options
crates/kubectl/src/commands/options.rs:7
↓ 3 callers
Method
execute
Execute a request with flow control Returns a permit that must be held while the request is processed
crates/api-server/src/flow_control.rs:97
↓ 3 callers
Function
execute_delete_all
Execute --all: delete all resources of the given type in the namespace.
crates/kubectl/src/commands/delete.rs:311
↓ 3 callers
Method
execute_instant_query
Execute an instant query and return the first value
crates/api-server/src/prometheus_client.rs:295
↓ 3 callers
Method
execute_network
Execute a network configuration (chain of plugins)
crates/kubelet/src/cni/plugin.rs:238
↓ 3 callers
Function
execute_subject
Update subjects in a RoleBinding or ClusterRoleBinding. Usage: `kubectl set subject clusterrolebinding/admin --user=admin --group=devs`
crates/kubectl/src/commands/set.rs:649
↓ 3 callers
Function
execute_with_selector
( client: &ApiClient, resource_type: &str, selector: &str, namespace: &str, opts: &DeleteO
crates/kubectl/src/commands/delete.rs:268
↓ 3 callers
Function
extract_api_version
Extract API version from resource
crates/common/src/server_side_apply.rs:359
↓ 3 callers
Function
extract_json_path
Helper to extract a value from a JSON object using a simple JSONPath
crates/api-server/src/handlers/custom_resource.rs:1692
↓ 3 callers
Function
extract_managed_fields
Extract current managed fields from a resource
crates/common/src/server_side_apply.rs:176
↓ 3 callers
Function
extract_resource_details
(msg: &str)
crates/common/src/error.rs:175
↓ 3 callers
Method
extract_resource_name_label
Extract the Prometheus label name used for resource names Different exporters use different label conventions: - kube-state-metrics: pod, service, de
crates/api-server/src/prometheus_client.rs:267
↓ 3 callers
Function
extract_tar_to_local
(dest_path: &str, tar_data: &[u8])
crates/kubectl/src/commands/cp.rs:462
↓ 3 callers
Function
filter_namespaced
( resources: &'a [(&'a str, bool)], namespaced: Option<bool>, )
crates/kubectl/tests/info_commands_tests.rs:171
↓ 3 callers
Function
find_all_duplicate_json_keys
Find ALL duplicate JSON keys at any nesting level of a JSON object string. Returns dotted paths (e.g., "spec.replicas") for each duplicate found.
crates/api-server/src/handlers/validation.rs:20
↓ 3 callers
Method
find_load_balancer
Find existing load balancer by tags
crates/cloud-providers/src/aws.rs:123
↓ 3 callers
Function
format_warning_header
Build the RFC 7234 `Warning` header value for an unknown-field warning. Upstream k8s (`apimachinery/pkg/util/warning/warning.go`) uses warn-code `299
crates/api-server/src/handlers/validation.rs:502
↓ 3 callers
Method
get_all_resources
Get all resources from storage
crates/controller-manager/src/controllers/garbage_collector.rs:178
↓ 3 callers
Function
get_api_group_names
Helper to get all API group names and their preferred versions
crates/api-server/src/handlers/discovery.rs:734
↓ 3 callers
Method
get_effective_container_ip
Get the effective IP for a container, resolving through pause containers when the app container uses NetworkMode=container:pause.
crates/kubelet/src/runtime.rs:6397
↓ 3 callers
Function
get_mut_value
Get a mutable reference to a value at the specified path
crates/api-server/src/patch.rs:570
↓ 3 callers
Method
get_network_config
Get network configuration by name or use default
crates/kubelet/src/cni/runtime.rs:273
↓ 3 callers
Method
get_user
Get the user for a given context
crates/kubectl/src/kubeconfig.rs:166
↓ 3 callers
Function
get_value
Get a value at the specified JSON pointer path
crates/api-server/src/patch.rs:538
↓ 3 callers
Function
http_method_to_verb
Map an HTTP method to the Kubernetes authorization verb used for proxy subresources. K8s ref: staging/src/k8s.io/apiserver/pkg/endpoints/request/requ
crates/api-server/src/handlers/proxy.rs:33
↓ 3 callers
Method
id
Get channel ID
crates/api-server/src/spdy.rs:59
↓ 3 callers
Function
init_basic_tracing
Initialize basic tracing without OpenTelemetry
crates/common/src/tracing.rs:255
↓ 3 callers
Function
init_stdout_tracing
(config: &TracingConfig)
crates/common/src/tracing.rs:249
↓ 3 callers
Method
into_server_config
Create rustls server config
crates/common/src/tls.rs:104
↓ 3 callers
Method
is_owned_by
Check if a pod is owned by this RC (has a controller ownerReference pointing to it)
crates/controller-manager/src/controllers/replicationcontroller.rs:469
↓ 3 callers
Method
is_pod_ready
Check if a pod is ready by examining its conditions
crates/controller-manager/src/controllers/replicaset.rs:518
↓ 3 callers
Method
is_pod_running
Check if a pod's containers are running
crates/kubelet/src/runtime.rs:5162
↓ 3 callers
Method
key
Get the key
crates/common/src/label_selector.rs:391
↓ 3 callers
Function
make_mutating_config
(name: &str, url: &str, rule: Rwo)
crates/api-server/src/admission_webhook.rs:3548
↓ 3 callers
Function
make_pod
(name: &str, labels: HashMap<String, String>)
crates/controller-manager/src/controllers/replicaset.rs:767
↓ 3 callers
Function
make_pod
Build a minimal pod in `ns-a` with the given phase. The pod carries no resources so it is BestEffort QoS — quota calculations only count it toward `po
crates/controller-manager/tests/resource_quota_idempotency_test.rs:33
↓ 3 callers
Function
make_pod_with_deadline
(name: &str, namespace: &str, active_deadline: Option<i64>)
crates/controller-manager/src/controllers/resource_quota.rs:867
↓ 3 callers
Function
make_quota
ResourceQuota in `ns-a` with `hard: { pods: 10 }`. We pre-seed `status.used = { pods: "0" }` so the controller's idempotency guard (`if quota.status !
crates/controller-manager/tests/resource_quota_idempotency_test.rs:58
↓ 3 callers
Function
make_replicaset
(name: &str, labels: HashMap<String, String>, replicas: i32)
crates/controller-manager/src/controllers/replicaset.rs:741
↓ 3 callers
Function
make_scheduled_pod
Helper: create a pod with given name, priority, and resource requests, scheduled on a node
crates/scheduler/src/advanced.rs:1325
↓ 3 callers
Function
make_test_daemonset
Helper to create a minimal DaemonSet for testing
crates/controller-manager/src/controllers/daemonset.rs:1573
↓ 3 callers
Function
make_test_node
Helper to create a minimal Node for testing
crates/controller-manager/src/controllers/daemonset.rs:1688
↓ 3 callers
Function
make_test_pod
(name: &str)
crates/api-server/src/handlers/finalizers.rs:738
↓ 3 callers
Function
mark_pod_ready
Helper to mark a pod as Ready in storage
crates/controller-manager/tests/statefulset_controller_test.rs:286
↓ 3 callers
Function
parseCpuMillis
(q?: string)
console/src/views/TopologyView.tsx:83
↓ 3 callers
Function
parseMemMi
(q?: string)
console/src/views/TopologyView.tsx:89
↓ 3 callers
Function
parse_cpu_string
Parse CPU string (e.g., "500m", "1", "2000m") to millicores
crates/controller-manager/src/controllers/vpa.rs:691
↓ 3 callers
Function
parse_int_or_percent
Parse a value that can be either an absolute integer or a percentage string (e.g. "25%" or "1"). For percentages, the result is ceil(pct/100 * total).
crates/controller-manager/src/controllers/deployment.rs:15
↓ 3 callers
Function
parse_key_value
(s: &str)
crates/kubectl/src/commands/create.rs:1310
↓ 3 callers
Function
parse_memory_quantity
Parse a Kubernetes memory quantity string (e.g., "128Mi", "1Gi", "1000000") into bytes.
crates/kubelet/src/runtime.rs:8090
↓ 3 callers
Function
parse_memory_string
Parse memory string (e.g., "128Mi", "1Gi") to bytes
crates/controller-manager/src/controllers/vpa.rs:700
↓ 3 callers
Function
parse_property_path
Test parsing of nested property paths
crates/kubectl/tests/command_tests.rs:210
↓ 3 callers
Function
parse_scale_uri
Extract group, version, and resource type from a scale subresource URI. e.g. "/apis/apps/v1/namespaces/default/deployments/foo/scale" -> ("apps", "v1"
crates/api-server/src/handlers/scale.rs:59
↓ 3 callers
Function
parse_subresource
(resource: &str)
crates/kubectl/tests/auth_tests.rs:63
↓ 3 callers
Function
pod_uri
()
crates/api-server/tests/decoder_strict_fields_test.rs:120
↓ 3 callers
Function
print_pvcs
(pvcs: &[PersistentVolumeClaim], no_headers: bool, _show_labels: bool)
crates/kubectl/src/commands/get.rs:1485
↓ 3 callers
Function
print_pvs
(pvs: &[PersistentVolume], no_headers: bool, _show_labels: bool)
crates/kubectl/src/commands/get.rs:1452
↓ 3 callers
Function
read_length
(der: &[u8], pos: usize)
crates/api-server/src/handlers/health.rs:383
↓ 3 callers
Method
reconcile_all
Reconcile all pods and create events for lifecycle changes
crates/controller-manager/src/controllers/events.rs:96
↓ 3 callers
Method
reconcile_claim
(&self, claim: &mut ResourceClaim)
crates/controller-manager/src/controllers/resourceclaim.rs:162
↓ 3 callers
Function
resource_version_to_mod_revision
Parse resourceVersion string to mod_revision
crates/storage/src/concurrency.rs:41
↓ 3 callers
Function
rollout_pause
( client: &ApiClient, resource_type: &str, name: &str, namespace: &str, )
crates/kubectl/src/commands/rollout.rs:356
↓ 3 callers
Function
rollout_undo
( client: &ApiClient, resource_type: &str, name: &str, namespace: &str, to_revision: Optio
crates/kubectl/src/commands/rollout.rs:224
↓ 3 callers
Function
send_raw
Send a raw JSON byte body so we can exercise duplicate keys that would otherwise be normalized away by `serde_json::to_vec`.
crates/api-server/tests/decoder_strict_fields_test.rs:67
↓ 3 callers
Function
service_unavailable_response
(message: &str)
crates/api-server/src/handlers/generic.rs:549
↓ 3 callers
Method
set_desired_replicas_annotation
Set the desired-replicas and max-replicas annotations on a ReplicaSet. K8s ref: pkg/controller/deployment/util/deployment_util.go — SetReplicasAnnotat
crates/controller-manager/src/controllers/deployment.rs:1503
↓ 3 callers
Method
set_resource_provider
(&mut self, resource: String, provider_name: String)
crates/common/src/encryption.rs:285
↓ 3 callers
Function
set_unschedulable
Set the unschedulable field on a node.
crates/kubectl/src/commands/drain.rs:20
↓ 3 callers
Function
setup
()
crates/controller-manager/tests/resource_quota_idempotency_test.rs:26
↓ 3 callers
Function
simulate_kubelet_cleanup
Simulate kubelet behavior: remove from storage any pods the controller has marked for deletion. StatefulSet reconcile only sets a deletionTimestamp (g
crates/controller-manager/tests/statefulset_controller_test.rs:23
↓ 3 callers
Function
small_string_map
Generate a small `HashMap<String,String>` (<=3 entries) for labels / data fields.
crates/common/tests/fuzz_roundtrip_jsonproto_test.rs:75
↓ 3 callers
Function
split_path
Split a path into parent path and final key
crates/api-server/src/patch.rs:626
↓ 3 callers
Method
start
Start watching.
console/src/engine/watch.ts:35
↓ 3 callers
Function
start_mock_mutating_server
Start a mock mutating webhook server that adds a label
crates/api-server/tests/admission_webhook_e2e_test.rs:124
↓ 3 callers
Method
stop_pod_with_grace_period
Stop all containers for a pod with a specific grace period in seconds. Stops the pause container last to keep the network namespace alive.
crates/kubelet/src/runtime.rs:4974
↓ 3 callers
Function
strategic_merge_arrays
Strategic merge for arrays If array items have a 'name' field, merge by name. Otherwise, replace the array.
crates/api-server/src/patch.rs:469
↓ 3 callers
Method
subscribe_from
Subscribe to watch events and replay any historical events since the given resourceVersion. Returns (historical_events, live_receiver). The caller sho
crates/api-server/src/watch_cache.rs:206
↓ 3 callers
Method
teardown_network
Teardown network for a container (DEL operation)
crates/kubelet/src/cni/runtime.rs:142
↓ 3 callers
Method
teardown_pod_network
Teardown CNI networking for a pod Removes CNI configuration and deletes the network namespace
crates/kubelet/src/runtime.rs:349
↓ 3 callers
Method
update_crd_status
( &self, crd_name: &str, established: bool, names_accepted: bool, )
crates/controller-manager/src/controllers/crd.rs:383
↓ 3 callers
Method
update_hpa_status_with_error
Update HPA status with error condition
crates/controller-manager/src/controllers/hpa.rs:627
↓ 3 callers
Method
update_pod_with_retry
Re-read the pod, apply `mutate`, and write it back. On a resource-version conflict, re-read and reapply once. NotFound is a no-op (the pod is already
crates/controller-manager/src/controllers/statefulset.rs:26
↓ 3 callers
Method
update_raw
(&self, key: &str, value: &Value)
crates/controller-manager/tests/garbage_collector_idempotency_test.rs:80
↓ 3 callers
Function
update_response
(resource_name: &str)
crates/api-server/src/openapi.rs:753
↓ 3 callers
Function
warning_headers
(headers: &[(String, String)])
crates/api-server/tests/decoder_strict_fields_test.rs:108
↓ 3 callers
Method
with_data
(mut self, data: Value)
crates/common/src/resources/controllerrevision.rs:36
↓ 3 callers
Method
with_owner_reference
(mut self, owner: OwnerReference)
crates/common/src/types.rs:116
↓ 3 callers
Method
with_sample_rate
Set the sampling rate
crates/common/src/tracing.rs:98
↓ 3 callers
Method
with_spec
(mut self, spec: IngressClassSpec)
crates/common/src/resources/ingressclass.rs:31
← previous
next →
601–700 of 6,481, ranked by callers