Documentation
¶
Overview ¶
Package argo is the backend that installs through Argo CD: one Application per component, pointing at the component's published chart, synced automatically. kubepkg keeps deciding versions, order, requirements and revisions; Argo CD does the applying and shows the releases next to everything else it manages.
Index ¶
- Variables
- func ApplicationName(c backend.Component) string
- type Backend
- func (b *Backend) Apply(ctx context.Context, c backend.Component) (backend.State, error)
- func (b *Backend) Name() string
- func (b *Backend) Render(c backend.Component, values map[string]any) (*unstructured.Unstructured, error)
- func (b *Backend) Rollback(context.Context, backend.Component, int) (backend.State, error)
- func (b *Backend) Status(ctx context.Context, c backend.Component) (backend.State, error)
- func (b *Backend) Uninstall(ctx context.Context, c backend.Component) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRollbackUnsupported = errors.New("the argo backend cannot roll back to an earlier revision")
ErrRollbackUnsupported is returned by Rollback: packages applied through Argo CD are recovered by a forward fix.
Functions ¶
func ApplicationName ¶
ApplicationName is unique per release: Applications share one namespace.
Types ¶
type Backend ¶
type Backend struct {
Client client.Client
// Secrets reads the platform values Secret, which Argo CD cannot use
// itself; its values are passed on inline.
Secrets kubernetes.Interface
// Namespace is where Argo CD watches Applications. Default argocd.
Namespace string
// Project is the AppProject the Applications belong to. Default default.
Project string
// Server is the destination cluster. Default the cluster Argo CD runs in.
Server string
}
Backend writes Argo CD Applications.
func (*Backend) Render ¶
func (b *Backend) Render(c backend.Component, values map[string]any) (*unstructured.Unstructured, error)
Render builds the Application for a component with its final values. Exported for the render command.
Click to show internal directories.
Click to hide internal directories.