Documentation
¶
Index ¶
- Constants
- Variables
- func GetSetID(bundleID, labelPrefix, labelSuffix string) string
- func Template(bundleID string, manifest *manifest.Manifest, ...) ([]runtime.Object, error)
- type DeployedBundle
- type Helm
- func (h *Helm) Delete(bundleID, releaseName string) error
- func (h *Helm) Deploy(bundleID string, manifest *manifest.Manifest, ...) (*Resources, error)
- func (h *Helm) EnsureInstalled(bundleID, resourcesID string) (bool, error)
- func (h *Helm) ListDeployments() ([]DeployedBundle, error)
- func (h *Helm) Resources(bundleID, resourcesID string) (*Resources, error)
- type Resources
Constants ¶
View Source
const (
BundleIDAnnotation = "fleet.cattle.io/bundle-id"
CommitAnnotation = "fleet.cattle.io/commit"
AgentNamespaceAnnotation = "fleet.cattle.io/agent-namespace"
ServiceAccountNameAnnotation = "fleet.cattle.io/service-account"
DefaultServiceAccount = "fleet-default"
)
Variables ¶
View Source
var (
ErrNoRelease = errors.New("failed to find release")
ErrNoResourceID = errors.New("no resource ID available")
DefaultKey = "values.yaml"
)
Functions ¶
Types ¶
type DeployedBundle ¶ added in v0.4.0
type DeployedBundle struct {
// BundleID is the bundle.Name
BundleID string
// ReleaseName is actually in the form "namespace/release name"
ReleaseName string
}
type Helm ¶ added in v0.4.0
type Helm struct {
// contains filtered or unexported fields
}
func NewHelm ¶
func NewHelm(namespace, defaultNamespace, labelPrefix, labelSuffix string, getter genericclioptions.RESTClientGetter,
serviceAccountCache corecontrollers.ServiceAccountCache, configmapCache corecontrollers.ConfigMapCache, secretCache corecontrollers.SecretCache) (*Helm, error)
func (*Helm) Delete ¶ added in v0.4.0
func (h *Helm) Delete(bundleID, releaseName string) error
Delete the release for the given bundleID. releaseName is a key in the format "namespace/name". If releaseName is empty, search for a matching release.
func (*Helm) Deploy ¶ added in v0.4.0
func (h *Helm) Deploy(bundleID string, manifest *manifest.Manifest, options fleet.BundleDeploymentOptions) (*Resources, error)
func (*Helm) EnsureInstalled ¶ added in v0.4.0
func (h *Helm) EnsureInstalled(bundleID, resourcesID string) (bool, error)
func (*Helm) ListDeployments ¶ added in v0.4.0
func (h *Helm) ListDeployments() ([]DeployedBundle, error)
ListDeployments returns a list of bundles by listing all helm relases via helm's storage driver (secrets)
Click to show internal directories.
Click to hide internal directories.