Documentation ¶
Index ¶
- Constants
- func New() clusters.Addon
- type Addon
- func (a *Addon) CreateAppProject(ctx context.Context, proj *unstructured.Unstructured) error
- func (a *Addon) CreateApplication(ctx context.Context, app *unstructured.Unstructured) error
- func (a *Addon) Delete(ctx context.Context, cluster clusters.Cluster) error
- func (a *Addon) DeleteAppProject(ctx context.Context, proj string) error
- func (a *Addon) DeleteApplication(ctx context.Context, proj string) error
- func (a *Addon) Dependencies(_ context.Context, _ clusters.Cluster) []clusters.AddonName
- func (a *Addon) Deploy(ctx context.Context, cluster clusters.Cluster) error
- func (a *Addon) DumpDiagnostics(context.Context, clusters.Cluster) (map[string][]byte, error)
- func (a *Addon) Name() clusters.AddonName
- func (a *Addon) Ready(ctx context.Context, cluster clusters.Cluster) ([]runtime.Object, bool, error)
- type Builder
Constants ¶
View Source
const ( // AddonName indicates the unique name of this addon. AddonName clusters.AddonName = "argocd" // DefaultNamespace indicates the default namespace this addon will be deployed to. DefaultNamespace = "argocd" // DefaultServer is the default server value for Applications and AppProjects. DefaultServer = "https://kubernetes.default.svc" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addon ¶
type Addon struct {
// contains filtered or unexported fields
}
func (*Addon) CreateAppProject ¶
func (a *Addon) CreateAppProject(ctx context.Context, proj *unstructured.Unstructured) error
CreateAppProject takes an (unstructured) AppProject and creates it.
func (*Addon) CreateApplication ¶
func (a *Addon) CreateApplication(ctx context.Context, app *unstructured.Unstructured) error
CreateApplication takes an (unstructured) Application and creates it.
func (*Addon) DeleteAppProject ¶
DeleteAppProject takes an AppProject name and deletes it.
func (*Addon) DeleteApplication ¶
DeleteApplication takes an Application name and deletes it.
func (*Addon) Dependencies ¶
func (*Addon) DumpDiagnostics ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is a configuration tool to generate ArgoCD cluster addons.
func NewBuilder ¶
func NewBuilder() *Builder
NewBuilder provides a new Builder object for configuring ArgoCD cluster addons.
func (*Builder) Build ¶
Build generates a new kong cluster.Addon which can be loaded and deployed into a test Environment's cluster.Cluster.
func (*Builder) WithNamespace ¶
WithNamespace sets the addon namespace
func (*Builder) WithVersion ¶
WithVersion configures the specific version of ArgoCD to deploy.
Click to show internal directories.
Click to hide internal directories.