Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FluxCRDs = []string{ strings.ToLower(helmv2.HelmReleaseKind), strings.ToLower(kustomizev1.KustomizationKind), strings.ToLower(sourcev1.BucketKind), strings.ToLower(sourcev1.GitRepositoryKind), strings.ToLower(sourcev1.HelmChartKind), strings.ToLower(sourcev1.HelmRepositoryKind), }
FluxCRDs are CRDs which prepare is checking if they are present in the cluster or not.
Functions ¶
This section is empty.
Types ¶
type KubeConfig ¶
type KubeConfig struct {
Client client.Client
Interval time.Duration
Timeout time.Duration
Namespace string
}
KubeConfig defines configurable properties of the kube waiter.
type KubeWaiter ¶
type KubeWaiter struct {
KubeConfig
StatusPoller poller.Poller
}
KubeWaiter is a kubernetes waiter.
func NewKubeWaiter ¶
func NewKubeWaiter(cfg KubeConfig) *KubeWaiter
NewKubeWaiter creates a new KubeWaiter.
func (*KubeWaiter) Wait ¶
func (w *KubeWaiter) Wait(components ...string) error
Wait waits for some components to be status Ready.
type PrepConfig ¶
type PrepConfig struct {
// BaseURL is given even one would like to download manifests from a fork
// or a test repo.
BaseURL string
Location string
Version string
KubeContext string
KubeConfig string
FluxNamespace string
IgnorePreflightErrors bool
DryRun bool
Keep bool
K8sClient client.Client
}
PrepConfig defines configuration options for prepare.
type Preparer ¶
type Preparer struct {
PrepConfig
Applier *Applier
Fetcher *Fetcher
Runner runner.Runner
}
Preparer will prepare an environment.
func NewPreparer ¶
func NewPreparer(cfg PrepConfig) (*Preparer, error)
NewPreparer creates a preparer with set dependencies ready to be used.
func (*Preparer) PreFlightCheck ¶
PreFlightCheck checks whether prepare can run or not.
Click to show internal directories.
Click to hide internal directories.