util

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateNamespaceList

func PopulateNamespaceList(kubeClient kubernetes.Interface, namespaceSelector config.NamespaceSelector) ([]string, error)

Types

type ReplicaStatusGetter added in v0.3.0

type ReplicaStatusGetter struct {
	// contains filtered or unexported fields
}

struct for the ReplicaStatusGetter object

func NewReplicaStatusGetter added in v0.3.0

func NewReplicaStatusGetter(kubeClient kubernetes.Interface) *ReplicaStatusGetter

Initializes a ReplicaStatusGetter

func (*ReplicaStatusGetter) GetAvailableReplicas added in v0.3.0

func (rsg *ReplicaStatusGetter) GetAvailableReplicas() int

Gets the current value of replicas

func (*ReplicaStatusGetter) GetEndpointStatuses added in v0.3.0

func (rsg *ReplicaStatusGetter) GetEndpointStatuses(ingress networkingV1.Ingress) *ReplicaStatusGetter

Gets replicaStatuses using the DiscoveryV1 api

func (*ReplicaStatusGetter) GetRatio added in v0.3.0

func (rsg *ReplicaStatusGetter) GetRatio() float64

Gets the current ratio of availableReplicas to replicas math.Round only works with float64

func (*ReplicaStatusGetter) GetReplicas added in v0.3.0

func (rsg *ReplicaStatusGetter) GetReplicas() int

Gets the current value of replicas

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL