A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/knative/serving@v0.14.3/pkg/resources below:

resources package - github.com/knative/serving/pkg/resources - Go Packages

Package resources contains various utilities for dealing with Kubernetes resources.

This section is empty.

This section is empty.

GetScaleResource returns the current scale resource for the PA. TODO(markusthoemmes): We shouldn't need to pass namespace here.

NewNotRunningPodsCounter creates a NotRunningPodCounter that counts pods for a namespace/serviceNam. The values returned by TerminatingCount() and PendingCount() will vary over time.

NotReadyAddressCount returns the total number of addresses ready for the given endpoint.

ReadyAddressCount returns the total number of addresses ready for the given endpoint.

ScaleResourceArguments returns GroupResource and the resource name.

type EndpointsCounter interface {
	ReadyCount() (int, error)
	NotReadyCount() (int, error)
}

EndpointsCounter provides a count of currently ready and notReady pods. This information is used by UniScaler implementations to make scaling decisions. The interface prevents the UniScaler from needing to know how counts are performed. The int return value represents the number of pods that are ready to handle incoming requests. The error value is returned if the EndpointsCounter is unable to calculate a value.

NewScopedEndpointsCounter creates a EndpointsCounter that uses a count of endpoints for a namespace/serviceName as the value of ready pods. The values returned by ReadyCount() will vary over time. lister is used to retrieve endpoints for counting with the scope of namespace/serviceName.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4