package replicaset
import "k8s.io/kubernetes/federation/pkg/federation-controller/replicaset"
Index ¶
- Constants
- func AnalysePods(replicaSet *v1beta1.ReplicaSet, allPods []util.FederatedObject, currentTime time.Time) (map[string]PodAnalysisResult, error)
- type PodAnalysisResult
- type ReplicaSetController
Constants ¶
const ( FedReplicaSetPreferencesAnnotation = "federation.kubernetes.io/replica-set-preferences" UserAgentName = "Federation-replicaset-Controller" )
Functions ¶
func AnalysePods ¶
func AnalysePods(replicaSet *v1beta1.ReplicaSet, allPods []util.FederatedObject, currentTime time.Time) (map[string]PodAnalysisResult, error)
A function that calculates how many pods from the list are in one of the meaningful (from the replica set perspective) states. This function is a temporary workaround against the current lack of ownerRef in pods.
Types ¶
type PodAnalysisResult ¶
type PodAnalysisResult struct { // Total number of pods created. Total int // Number of pods that are running and ready. RunningAndReady int // Number of pods that have been in unschedulable state for UnshedulableThreshold seconds. Unschedulable int }
type ReplicaSetController ¶
type ReplicaSetController struct {
// contains filtered or unexported fields
}
func NewReplicaSetController ¶
func NewReplicaSetController(federationClient fedclientset.Interface) *ReplicaSetController
NewclusterController returns a new cluster controller
func (*ReplicaSetController) Run ¶
func (frsc *ReplicaSetController) Run(workers int, stopCh <-chan struct{})
Source Files ¶
pod_helper.go replicasetcontroller.go
Directories ¶
Path | Synopsis |
---|---|
federation/pkg/federation-controller/replicaset/planner |
- Version
- v1.4.0-beta.5
- Published
- Sep 15, 2016
- Platform
- js/wasm
- Imports
- 28 packages
- Last checked
- 38 minutes ago –
Tools for package owners.