cli-utils
cli-utils copied to clipboard
This repo contains binaries that built from libraries in cli-runtime.
We are looking to use this library to understand the status of various k8s objects. I noticed that this library reports status as `Current` when a Job is in progress....
TL;DR - When a resource doesn't yet have a `status` field does kstatus report `unknown` ? When creating a resource which is defined by a CRD which has no `status`...
I was trying to compute status of a pod and to my surprise it came back as `Current` when it really had failed. Given that this code has been here...
We often bump into race condition where resource status [won't be read](https://github.com/kubernetes/client-go/blob/5a0a4247921dd9e72d158aaa6c1ee124aba1da80/rest/request.go#L614) because context is [reaching the deadline](https://cs.opensource.google/go/x/time/+/refs/tags/v0.5.0:rate/rate.go;l=275). This results in `Unknown` status being returned. This PRs treats this edge...
This commit adds a conditions function for the HorizontalPodAutoscaler kind. It follows the definition documented [here](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#appendix-horizontal-pod-autoscaler-status-conditions).
Hi 👋 This change is intended for Kpt. We use `kpt live apply` in our CI/CD pipelines, but we don't need it saving statuses for all resources into the inventory....
The waiting for reconciliation feature can be undesirable in a lot of real-world uses of cli-utils. Imagine waiting for a DaemonSet across **many** nodes to reconcile (where some of the...
The collector protects `ResourceStatuses` with a mutex for updates, but then passes the whole object to a notify callback: https://github.com/kubernetes-sigs/cli-utils/blob/8609e42fe8677bfc3a8ae13583b4b31540f1f0a3/pkg/kstatus/polling/collector/collector.go#L91-L93 Since the callback runs in a goroutine without any synchronization,...
Adding the Inventory to the TaskContext should massively simplify updating the status of objects and pushing inventory updates to the server.
Kubernetes imposes a constraint that a role must exist before the binding uses it, when the applier is not a cluster admin. See https://github.com/kubernetes/kubernetes/issues/110989#issuecomment-1281076750. The `graph` package should create an...