Documentation ¶
Index ¶
- Variables
- func Run(ctx context.Context, reconciler Reconciler, manifestsBase string, ...) error
- type GitOption
- type GitProviderBootstrapper
- type GitProviderOption
- func WithBootstrapTransportType(protocol string) GitProviderOption
- func WithProviderRepository(owner, repository string, personal bool) GitProviderOption
- func WithProviderRepositoryConfig(description, defaultBranch, visibility string) GitProviderOption
- func WithProviderTeamPermissions(teams map[string]string) GitProviderOption
- func WithReadWriteKeyPermissions(b bool) GitProviderOption
- func WithSSHHostname(hostname string) GitProviderOption
- func WithSyncTransportType(protocol string) GitProviderOption
- type Option
- type PlainGitBootstrapper
- func (b *PlainGitBootstrapper) ConfirmHealthy(ctx context.Context, install install.Options, timeout time.Duration) error
- func (b *PlainGitBootstrapper) ReconcileComponents(ctx context.Context, manifestsBase string, options install.Options) error
- func (b *PlainGitBootstrapper) ReconcileSourceSecret(ctx context.Context, options sourcesecret.Options) error
- func (b *PlainGitBootstrapper) ReconcileSyncConfig(ctx context.Context, options sync.Options, pollInterval, timeout time.Duration) error
- type PostGenerateSecretFunc
- type Reconciler
- type RepositoryReconciler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrReconciledWithWarning = errors.New("reconciled with warning")
)
Functions ¶
Types ¶
type GitOption ¶
type GitOption interface {
// contains filtered or unexported methods
}
func WithPostGenerateSecretFunc ¶
func WithPostGenerateSecretFunc(callback PostGenerateSecretFunc) GitOption
func WithRepositoryURL ¶
type GitProviderBootstrapper ¶
type GitProviderBootstrapper struct { *PlainGitBootstrapper // contains filtered or unexported fields }
func NewGitProviderBootstrapper ¶
func NewGitProviderBootstrapper(git git.Git, provider gitprovider.Client, kube client.Client, opts ...GitProviderOption) (*GitProviderBootstrapper, error)
func (*GitProviderBootstrapper) ReconcileRepository ¶
func (b *GitProviderBootstrapper) ReconcileRepository(ctx context.Context) error
ReconcileRepository reconciles an organization or user repository with the GitProviderBootstrapper configuration. On success, the URL in the embedded PlainGitBootstrapper is set to clone URL for the configured protocol.
When part of the reconciliation fails with a warning without aborting, an ErrReconciledWithWarning error is returned.
func (*GitProviderBootstrapper) ReconcileSyncConfig ¶
type GitProviderOption ¶
type GitProviderOption interface {
// contains filtered or unexported methods
}
func WithBootstrapTransportType ¶
func WithBootstrapTransportType(protocol string) GitProviderOption
func WithProviderRepository ¶
func WithProviderRepository(owner, repository string, personal bool) GitProviderOption
func WithProviderRepositoryConfig ¶
func WithProviderRepositoryConfig(description, defaultBranch, visibility string) GitProviderOption
func WithProviderTeamPermissions ¶
func WithProviderTeamPermissions(teams map[string]string) GitProviderOption
func WithReadWriteKeyPermissions ¶
func WithReadWriteKeyPermissions(b bool) GitProviderOption
func WithSSHHostname ¶
func WithSSHHostname(hostname string) GitProviderOption
func WithSyncTransportType ¶
func WithSyncTransportType(protocol string) GitProviderOption
type Option ¶
type Option interface { GitOption GitProviderOption }
func WithAuthor ¶
func WithBranch ¶
func WithKubeconfig ¶
func WithLogger ¶
type PlainGitBootstrapper ¶
type PlainGitBootstrapper struct {
// contains filtered or unexported fields
}
func NewPlainGitProvider ¶
func (*PlainGitBootstrapper) ConfirmHealthy ¶
func (*PlainGitBootstrapper) ReconcileComponents ¶
func (*PlainGitBootstrapper) ReconcileSourceSecret ¶
func (b *PlainGitBootstrapper) ReconcileSourceSecret(ctx context.Context, options sourcesecret.Options) error
func (*PlainGitBootstrapper) ReconcileSyncConfig ¶
type PostGenerateSecretFunc ¶
type Reconciler ¶
type Reconciler interface { // ReconcileComponents reconciles the components by generating the // manifests with the provided values, committing them to Git and // pushing to remote if there are any changes, and applying them // to the cluster. ReconcileComponents(ctx context.Context, manifestsBase string, options install.Options) error // ReconcileSourceSecret reconciles the source secret by generating // a new secret with the provided values if the secret does not // already exists on the cluster, or if any of the configuration // options changed. ReconcileSourceSecret(ctx context.Context, options sourcesecret.Options) error // ReconcileSyncConfig reconciles the sync configuration by generating // the sync manifests with the provided values, committing them to Git // and pushing to remote if there are any changes. ReconcileSyncConfig(ctx context.Context, options sync.Options, pollInterval, timeout time.Duration) error // ConfirmHealthy confirms that the components and extra components in // install.Options are healthy. ConfirmHealthy(ctx context.Context, options install.Options, timeout time.Duration) error }
type RepositoryReconciler ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.