package
1.18.3
Repository: https://github.com/agoda-com/samsahai.git
Documentation: pkg.go.dev

# Functions

EqualIgnoreHash returns true if two given podTemplateSpec are equal, ignoring the diff in value of Labels[pod-template-hash] We ignore pod-template-hash because: 1.
FindNewReplicaSet returns the new RS this given deployment targets (the one with the same pod template).
GetNewReplicaSet returns a replica set that matches the intent of the given deployment; get ReplicaSetList from client interface.
IsRollingUpdate returns true if the strategy type is a rolling update.
ListReplicaSets returns a slice of RSes the given deployment targets.
MaxUnavailable returns the maximum unavailable pods a rolling deployment can take.
ResolveFenceposts resolves both maxSurge and maxUnavailable.
RsListFromClient returns an rsListFunc that wraps the given client.

# Type aliases

ReplicaSetsByCreationTimestamp sorts a list of ReplicaSet by creation timestamp, using their names as a tie breaker.
RsListFunc returns the ReplicaSet from the ReplicaSet namespace and the List metav1.ListOptions.