Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureRequirements ¶
func EnsureRequirements() error
func NewCmdAgentBootstrap ¶
func NewCmdAgentBootstrap(f *cmdutils.Factory, ensureRequirements func() error, af APIFactory, kwf KubectlWrapperFactory, fwf FluxWrapperFactory, cf CmdFactory) *cobra.Command
Types ¶
type API ¶
type API interface { GetDefaultBranch() (string, error) GetAgentByName(name string) (*gitlab.Agent, error) RegisterAgent(name string) (*gitlab.Agent, error) ConfigureAgent(agent *gitlab.Agent, branch string) error ConfigureEnvironment(agentID int, name string, kubernetesNamespace string, fluxResourcePath string) error CreateAgentToken(agentID int) (*gitlab.AgentToken, error) SyncFile(f file, branch string) error GetKASAddress() (string, error) }
type Cmd ¶
type FluxWrapper ¶
type FluxWrapper interface {
// contains filtered or unexported methods
}
func NewLocalFluxWrapper ¶
func NewLocalFluxWrapper( cmd Cmd, binary string, manifestPath string, helmRepositoryName string, helmRepositoryNamespace string, helmRepositoryFilepath string, helmReleaseName string, helmReleaseNamespace string, helmReleaseFilepath string, helmReleaseTargetNamespace string, helmReleaseValues []string, helmReleaseValuesFrom []string, fluxSourceType string, fluxSourceNamespace string, fluxSourceName string, ) FluxWrapper
type FluxWrapperFactory ¶
type KubectlWrapper ¶
type KubectlWrapper interface {
// contains filtered or unexported methods
}
func NewLocalKubectlWrapper ¶
func NewLocalKubectlWrapper(cmd Cmd, binary string, gitlabAgentNamespace string, gitlabAgentTokenSecretName string) KubectlWrapper
type KubectlWrapperFactory ¶
type KubectlWrapperFactory func(Cmd, string, string, string) KubectlWrapper
Click to show internal directories.
Click to hide internal directories.