Documentation
¶
Index ¶
- func GenerateDeveloperSelfSignedCertificate() ([]byte, []byte, error)
- type Bootstrap
- type Option
- func WithCommitMessageAppendix(commitMessageAppendix string) Option
- func WithComponents(components []string) Option
- func WithDefaultBranch(defaultBranch string) Option
- func WithDescription(description string) Option
- func WithDockerConfigPath(dockerConfigPath string) Option
- func WithFromFile(fromFile string) Option
- func WithGenerateDevCertificate(generate bool) Option
- func WithInterval(interval time.Duration) Option
- func WithKubeClient(kubeclient client.Client) Option
- func WithOwner(owner string) Option
- func WithPersonal(personal bool) Option
- func WithPrinter(printer *printer.Printer) Option
- func WithRESTClientGetter(restClientGetter genericclioptions.RESTClientGetter) Option
- func WithRegistry(registry string) Option
- func WithRepositoryName(repositoryName string) Option
- func WithRootFile(caFile string) Option
- func WithTarget(targetPath string) Option
- func WithTestURL(testURL string) Option
- func WithTimeout(timeout time.Duration) Option
- func WithToken(token string) Option
- func WithTransportType(transportType string) Option
- func WithVisibility(visibility string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDeveloperSelfSignedCertificate ¶ added in v0.1.0
GenerateDeveloperSelfSignedCertificate generates a certificate that is its own root and the signer key for it.
Types ¶
type Bootstrap ¶
type Bootstrap struct {
// contains filtered or unexported fields
}
Bootstrap runs the bootstrap of mpas. This means it creates a new management repository and the installs the bootstrap component in the cluster targeted by the kubeconfig.
func New ¶
func New(providerClient gitprovider.Client, opts ...Option) (*Bootstrap, error)
New returns a new Bootstrap. It accepts a gitprovider.Client and a list of options.
func (*Bootstrap) DeleteManagementRepository ¶
DeleteManagementRepository deletes the management repository.
type Option ¶
type Option func(*options)
Option is a function that sets an option on the bootstrap
func WithCommitMessageAppendix ¶
WithCommitMessageAppendix sets the commit message appendix to use for the bootstrap component
func WithComponents ¶
WithComponents sets the components to include in the management repository
func WithDefaultBranch ¶
WithDefaultBranch sets the default branch of the management repository
func WithDescription ¶
WithDescription sets the description of the management repository
func WithDockerConfigPath ¶
WithDockerConfigPath sets the docker config path to use for the bootstrap component
func WithFromFile ¶
WithFromFile sets the file from which to read the bootstrap component
func WithGenerateDevCertificate ¶ added in v0.1.0
WithGenerateDevCertificate if set, it will generate a self-signed certificate for all controllers.
func WithInterval ¶
WithInterval sets the interval to use for the bootstrap component
func WithKubeClient ¶
WithKubeClient sets the kubeclient to use for the bootstrap component
func WithPersonal ¶
WithPersonal sets the personal flag of the management repository
func WithPrinter ¶
WithPrinter sets the printer to use for printing messages
func WithRESTClientGetter ¶
func WithRESTClientGetter(restClientGetter genericclioptions.RESTClientGetter) Option
WithRESTClientGetter sets the RESTClientGetter to use for the bootstrap component
func WithRegistry ¶
WithRegistry sets the registry to use for the bootstrap component
func WithRepositoryName ¶
WithRepositoryName sets the repository name of the management repository
func WithRootFile ¶ added in v0.1.0
func WithTarget ¶
WithTarget sets the targetPath of the bootstrap component
func WithTestURL ¶
WithTestURL sets the testURL to use for the bootstrap component
func WithTimeout ¶
WithTimeout sets the timeout to use for the bootstrap component
func WithTransportType ¶
WithTransportType sets the transport type to use for git operations
func WithVisibility ¶
WithVisibility sets the visibility of the management repository