Documentation ¶
Index ¶
- func DeploymentLabels(app *fleet.Bundle) map[string]string
- func IsPartitionUnavailable(status *fleet.PartitionStatus, targets []*Target) bool
- func IsUnavailable(target *fleet.BundleDeployment) bool
- func Limit(count int, val ...*intstr.IntOrString) (int, error)
- func MaxUnavailable(targets []*Target) (int, error)
- func MaxUnavailablePartitions(partitions []Partition, targets []*Target) (int, error)
- func Summary(targets []*Target) fleet.BundleSummary
- func Unavailable(targets []*Target) (count int)
- func UpToDate(target *Target) bool
- type Manager
- func (m *Manager) BundleForDeployment(bd *fleet.BundleDeployment) (string, string)
- func (m *Manager) BundlesForCluster(cluster *fleet.Cluster) (result []*fleet.Bundle, _ error)
- func (m *Manager) ClusterGroup(cluster *fleet.Cluster) (*fleet.ClusterGroup, error)
- func (m *Manager) Targets(fleetBundle *fleet.Bundle) (result []*Target, _ error)
- type Partition
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPartitionUnavailable ¶ added in v0.2.0
func IsPartitionUnavailable(status *fleet.PartitionStatus, targets []*Target) bool
func IsUnavailable ¶
func IsUnavailable(target *fleet.BundleDeployment) bool
func MaxUnavailable ¶
func MaxUnavailablePartitions ¶ added in v0.2.0
func Summary ¶ added in v0.2.0
func Summary(targets []*Target) fleet.BundleSummary
func Unavailable ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func New ¶
func New( clusters fleetcontrollers.ClusterCache, clusterGroups fleetcontrollers.ClusterGroupCache, bundles fleetcontrollers.BundleCache, contentStore manifest.Store, bundleDeployments fleetcontrollers.BundleDeploymentCache) *Manager
func (*Manager) BundleForDeployment ¶
func (m *Manager) BundleForDeployment(bd *fleet.BundleDeployment) (string, string)
func (*Manager) BundlesForCluster ¶
func (*Manager) ClusterGroup ¶
type Partition ¶ added in v0.2.0
type Partition struct { Status fleet.PartitionStatus Targets []*Target }
func Partitions ¶ added in v0.2.0
type Target ¶
type Target struct { Deployment *fleet.BundleDeployment ClusterGroup *fleet.ClusterGroup Cluster *fleet.Cluster Bundle *fleet.Bundle Target *fleet.BundleTarget Options fleet.BundleDeploymentOptions DeploymentID string }
func (*Target) AssignNewDeployment ¶
func (t *Target) AssignNewDeployment()
func (*Target) State ¶
func (t *Target) State() fleet.BundleState
Click to show internal directories.
Click to hide internal directories.