Documentation ¶
Index ¶
- Constants
- func NewConfigConnectorStatusReader(mapper meta.RESTMapper) engine.StatusReader
- func NewRolloutStatusReader(mapper meta.RESTMapper) engine.StatusReader
- func NewStatusPoller(f util.Factory) (*polling.StatusPoller, error)
- func NewStatusWatcher(f util.Factory) (watcher.StatusWatcher, error)
- type ConfigConnectorStatusReader
- func (c *ConfigConnectorStatusReader) Compute(u *unstructured.Unstructured) (*status.Result, error)
- func (c *ConfigConnectorStatusReader) ReadStatus(ctx context.Context, reader engine.ClusterReader, id object.ObjMetadata) (*event.ResourceStatus, error)
- func (c *ConfigConnectorStatusReader) ReadStatusForObject(_ context.Context, _ engine.ClusterReader, u *unstructured.Unstructured) (*event.ResourceStatus, error)
- func (c *ConfigConnectorStatusReader) Supports(gk schema.GroupKind) bool
- type RolloutStatusReader
- func (r *RolloutStatusReader) Compute(u *unstructured.Unstructured) (*status.Result, error)
- func (r *RolloutStatusReader) ReadStatus(ctx context.Context, reader engine.ClusterReader, id object.ObjMetadata) (*event.ResourceStatus, error)
- func (r *RolloutStatusReader) ReadStatusForObject(_ context.Context, _ engine.ClusterReader, u *unstructured.Unstructured) (*event.ResourceStatus, error)
- func (r *RolloutStatusReader) Supports(gk schema.GroupKind) bool
Constants ¶
View Source
const ( ArgoGroup = "argoproj.io" Rollout = "Rollout" Degraded = "Degraded" Failed = "Failed" Healthy = "Healthy" Paused = "Paused" Progressing = "Progressing" )
View Source
const (
ConditionReady = "Ready"
)
Variables ¶
This section is empty.
Functions ¶
func NewConfigConnectorStatusReader ¶
func NewConfigConnectorStatusReader(mapper meta.RESTMapper) engine.StatusReader
func NewRolloutStatusReader ¶
func NewRolloutStatusReader(mapper meta.RESTMapper) engine.StatusReader
func NewStatusPoller ¶
func NewStatusPoller(f util.Factory) (*polling.StatusPoller, error)
func NewStatusWatcher ¶
func NewStatusWatcher(f util.Factory) (watcher.StatusWatcher, error)
Types ¶
type ConfigConnectorStatusReader ¶
type ConfigConnectorStatusReader struct {
Mapper meta.RESTMapper
}
ConfigConnectorStatusReader can compute reconcile status for Config Connector resources. It leverages information in the `Reason` field of the `Ready` condition. TODO(mortent): Make more of the convencience functions and types from cli-utils exported so we can simplify this.
func (*ConfigConnectorStatusReader) Compute ¶
func (c *ConfigConnectorStatusReader) Compute(u *unstructured.Unstructured) (*status.Result, error)
func (*ConfigConnectorStatusReader) ReadStatus ¶
func (c *ConfigConnectorStatusReader) ReadStatus(ctx context.Context, reader engine.ClusterReader, id object.ObjMetadata) (*event.ResourceStatus, error)
func (*ConfigConnectorStatusReader) ReadStatusForObject ¶
func (c *ConfigConnectorStatusReader) ReadStatusForObject(_ context.Context, _ engine.ClusterReader, u *unstructured.Unstructured) (*event.ResourceStatus, error)
type RolloutStatusReader ¶
type RolloutStatusReader struct {
Mapper meta.RESTMapper
}
func (*RolloutStatusReader) Compute ¶
func (r *RolloutStatusReader) Compute(u *unstructured.Unstructured) (*status.Result, error)
func (*RolloutStatusReader) ReadStatus ¶
func (r *RolloutStatusReader) ReadStatus(ctx context.Context, reader engine.ClusterReader, id object.ObjMetadata) ( *event.ResourceStatus, error)
func (*RolloutStatusReader) ReadStatusForObject ¶
func (r *RolloutStatusReader) ReadStatusForObject(_ context.Context, _ engine.ClusterReader, u *unstructured.Unstructured) ( *event.ResourceStatus, error)
Click to show internal directories.
Click to hide internal directories.