Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompositePreflight ¶
type CompositePreflight struct {
// contains filtered or unexported fields
}
func NewCompositePreflight ¶
func NewCompositePreflight(checkers []declarative.Preflight) *CompositePreflight
func (*CompositePreflight) Preflight ¶
func (c *CompositePreflight) Preflight(ctx context.Context, o declarative.DeclarativeObject) error
type ConfigConnectorContextChecker ¶
type ConfigConnectorContextChecker struct { }
func NewConfigConnectorContextChecker ¶
func NewConfigConnectorContextChecker() *ConfigConnectorContextChecker
func (*ConfigConnectorContextChecker) Preflight ¶
func (c *ConfigConnectorContextChecker) Preflight(ctx context.Context, o declarative.DeclarativeObject) error
type NameChecker ¶
type NameChecker struct {
// contains filtered or unexported fields
}
func NewNameChecker ¶
func NewNameChecker(client client.Client, allowedName string) *NameChecker
func (*NameChecker) Preflight ¶
func (n *NameChecker) Preflight(ctx context.Context, o declarative.DeclarativeObject) error
type UpgradeChecker ¶
type UpgradeChecker struct {
// contains filtered or unexported fields
}
func NewUpgradeChecker ¶
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 (*UpgradeChecker) Preflight ¶
func (u *UpgradeChecker) Preflight(ctx context.Context, o declarative.DeclarativeObject) error
Click to show internal directories.
Click to hide internal directories.