type CompositePreflight struct {
// contains filtered or unexported fields
}
func NewCompositePreflight(checkers []declarative.Preflight) *CompositePreflight
func (c *CompositePreflight) Preflight(ctx context.Context, o declarative.DeclarativeObject) error
type ConfigConnectorContextChecker struct { }
func NewConfigConnectorContextChecker() *ConfigConnectorContextChecker
func (c *ConfigConnectorContextChecker) Preflight(ctx context.Context, o declarative.DeclarativeObject) error
type NameChecker struct {
// contains filtered or unexported fields
}
func NewNameChecker(client client.Client, allowedName string) *NameChecker
func (n *NameChecker) Preflight(ctx context.Context, o declarative.DeclarativeObject) error
type UpgradeChecker struct {
// contains filtered or unexported fields
}
func NewUpgradeChecker(client client.Client, repo manifest.Repository) *UpgradeChecker
NewUpgradeChecker provides an implementation of declarative.Preflight that does version comparison between the version of the existing KCC and and the version to deploy. If it's a major version change, it returns error and surface the error status on the DeclarativeObject.
func (u *UpgradeChecker) Preflight(ctx context.Context, o declarative.DeclarativeObject) error