Documentation ¶
Index ¶
- Constants
- func DeploymentLocator(ctx model.SessionContext, ref model.Ref, store model.LocatorStatusStore, ...) error
- func DeploymentModificator(engine template.Engine) model.Modificator
- func DeploymentRegistrar(engine template.Engine) model.ModificatorRegistrar
- func ServiceLocator(ctx model.SessionContext, ref model.Ref, store model.LocatorStatusStore, ...) error
- func ServiceModificator(ctx model.SessionContext, ref model.Ref, store model.LocatorStatusStore, ...)
- func ServiceRegistrar() (client.Object, model.Modificator)
- type AssumeOperatorInstalled
- type ClusterVerifier
- type InstallationVerifier
Constants ¶
View Source
const (
// DeploymentKind is the k8s Kind for a Deployment.
DeploymentKind = "Deployment"
)
View Source
const (
// ServiceKind is the k8s Kind for a Service.
ServiceKind = "Service"
)
Variables ¶
This section is empty.
Functions ¶
func DeploymentLocator ¶
func DeploymentLocator(ctx model.SessionContext, ref model.Ref, store model.LocatorStatusStore, report model.LocatorStatusReporter) error
DeploymentLocator attempts to locate a Deployment kind based on Ref name.
func DeploymentModificator ¶ added in v0.4.0
func DeploymentModificator(engine template.Engine) model.Modificator
DeploymentModificator attempts to clone the located Deployment.
func DeploymentRegistrar ¶ added in v0.4.0
func DeploymentRegistrar(engine template.Engine) model.ModificatorRegistrar
func ServiceLocator ¶ added in v0.0.3
func ServiceLocator(ctx model.SessionContext, ref model.Ref, store model.LocatorStatusStore, report model.LocatorStatusReporter) error
ServiceLocator attempts to locate the Services for the target Deployment/DeploymentConfig.
func ServiceModificator ¶ added in v0.5.0
func ServiceModificator(ctx model.SessionContext, ref model.Ref, store model.LocatorStatusStore, report model.ModificatorStatusReporter)
ServiceModificator will set a located service to modification status true.
func ServiceRegistrar ¶ added in v0.5.0
func ServiceRegistrar() (client.Object, model.Modificator)
Types ¶
type AssumeOperatorInstalled ¶ added in v0.5.3
type AssumeOperatorInstalled struct{}
AssumeOperatorInstalled is used for testing where we simply assume CRD is always installed. This is in particular useful as test double where cluster is not involved at all.
func (AssumeOperatorInstalled) CheckCRD ¶ added in v0.5.3
func (AssumeOperatorInstalled) CheckCRD() (bool, error)
type ClusterVerifier ¶ added in v0.5.3
type ClusterVerifier struct {
// contains filtered or unexported fields
}
func (*ClusterVerifier) CheckCRD ¶ added in v0.5.3
func (v *ClusterVerifier) CheckCRD() (bool, error)
type InstallationVerifier ¶ added in v0.5.3
Click to show internal directories.
Click to hide internal directories.