Documentation ¶
Index ¶
- Constants
- func NewNotEnoughCapableClustersInRegionError(region string, capabilities []string, required, available int) error
- type BrokenChartError
- type ChartError
- type ChartFetchFailureError
- type Controller
- type DuplicateCapabilityRequirementError
- type FailedAPICallError
- type InvalidReleaseOwnerRefsError
- type NoRegionsSpecifiedError
- type NotEnoughCapableClustersInRegionError
- type NotEnoughClustersInRegionError
- type Scheduler
- func (c *Scheduler) Clusters() []string
- func (c *Scheduler) CreateCapacityTarget(totalReplicaCount int32) error
- func (c *Scheduler) CreateInstallationTarget() error
- func (c *Scheduler) CreateTrafficTarget() error
- func (c *Scheduler) HasClusters() bool
- func (c *Scheduler) SetClusters(clusters []string)
- func (c *Scheduler) UpdateRelease() (*shipper.Release, error)
- type WrongChartDeploymentsError
Constants ¶
const (
AgentName = "schedule-controller"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BrokenChartError ¶
type BrokenChartError struct { ChartError // contains filtered or unexported fields }
func NewBrokenChartError ¶
func NewBrokenChartError(chartName, chartVersion, chartRepo string, err error) BrokenChartError
func (BrokenChartError) Error ¶
func (e BrokenChartError) Error() string
type ChartError ¶
type ChartError struct {
// contains filtered or unexported fields
}
type ChartFetchFailureError ¶
type ChartFetchFailureError struct { ChartError // contains filtered or unexported fields }
func NewChartFetchFailureError ¶
func NewChartFetchFailureError(chartName, chartVersion, chartRepo string, err error) ChartFetchFailureError
func (ChartFetchFailureError) Error ¶
func (e ChartFetchFailureError) Error() string
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a Kubernetes controller that knows how to schedule Releases.
func NewController ¶
func NewController( shipperclientset shipperclient.Interface, shipperInformerFactory shipperinformers.SharedInformerFactory, chartFetchFunc chart.FetchFunc, recorder record.EventRecorder, ) *Controller
NewController returns a new Schedule controller.
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh <-chan struct{})
type DuplicateCapabilityRequirementError ¶
type DuplicateCapabilityRequirementError struct {
// contains filtered or unexported fields
}
func NewDuplicateCapabilityRequirementError ¶
func NewDuplicateCapabilityRequirementError(capability string) DuplicateCapabilityRequirementError
func (DuplicateCapabilityRequirementError) Error ¶
func (e DuplicateCapabilityRequirementError) Error() string
type FailedAPICallError ¶
type FailedAPICallError struct {
// contains filtered or unexported fields
}
func NewFailedAPICallError ¶
func NewFailedAPICallError(call string, err error) FailedAPICallError
func (FailedAPICallError) Error ¶
func (e FailedAPICallError) Error() string
type InvalidReleaseOwnerRefsError ¶
type InvalidReleaseOwnerRefsError struct {
// contains filtered or unexported fields
}
func NewInvalidReleaseOwnerRefsError ¶
func NewInvalidReleaseOwnerRefsError(count int) InvalidReleaseOwnerRefsError
func (InvalidReleaseOwnerRefsError) Error ¶
func (e InvalidReleaseOwnerRefsError) Error() string
type NoRegionsSpecifiedError ¶
type NoRegionsSpecifiedError struct{}
func NewNoRegionsSpecifiedError ¶
func NewNoRegionsSpecifiedError() NoRegionsSpecifiedError
func (NoRegionsSpecifiedError) Error ¶
func (e NoRegionsSpecifiedError) Error() string
type NotEnoughCapableClustersInRegionError ¶
type NotEnoughCapableClustersInRegionError struct {
// contains filtered or unexported fields
}
func (NotEnoughCapableClustersInRegionError) Error ¶
func (e NotEnoughCapableClustersInRegionError) Error() string
type NotEnoughClustersInRegionError ¶
type NotEnoughClustersInRegionError struct {
// contains filtered or unexported fields
}
func NewNotEnoughClustersInRegionError ¶
func NewNotEnoughClustersInRegionError(region string, required, available int) NotEnoughClustersInRegionError
func (NotEnoughClustersInRegionError) Error ¶
func (e NotEnoughClustersInRegionError) Error() string
type Scheduler ¶
Scheduler is an object that knows how to schedule releases.
func NewScheduler ¶
func NewScheduler( release *shipper.Release, shipperclientset clientset.Interface, clusterLister listers.ClusterLister, installationTargetLister listers.InstallationTargetLister, capacityTargetLister listers.CapacityTargetLister, trafficTargetLister listers.TrafficTargetLister, chartFetchFunc shipperchart.FetchFunc, recorder record.EventRecorder, ) *Scheduler
NewScheduler returns a new Scheduler instance that knows how to schedule a particular Release.
func (*Scheduler) CreateCapacityTarget ¶
CreateCapacityTarget creates a new CapacityTarget object for Scheduler's Release property. Returns an error if the object couldn't be created.
func (*Scheduler) CreateInstallationTarget ¶
CreateInstallationTarget creates a new InstallationTarget object for Scheduler's Release property. Returns an error if the object couldn't be created.
func (*Scheduler) CreateTrafficTarget ¶
CreateTrafficTarget creates a new TrafficTarget object for Scheduler's Release property. Returns an error if the object couldn't be created.
func (*Scheduler) HasClusters ¶
func (*Scheduler) SetClusters ¶
type WrongChartDeploymentsError ¶
type WrongChartDeploymentsError struct { ChartError // contains filtered or unexported fields }
func NewWrongChartDeploymentsError ¶
func NewWrongChartDeploymentsError(chartName, chartVersion, chartRepo string, deploymentCount int) WrongChartDeploymentsError
func (WrongChartDeploymentsError) Error ¶
func (e WrongChartDeploymentsError) Error() string