manifests

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: MPL-2.0 Imports: 24 Imported by: 1

Documentation

Overview

Package manifests provides support for syncing Talos bootstrap manifests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(ctx context.Context, objects []Manifest, config *rest.Config, dryRun bool, resultCh chan<- SyncResult) error

Sync applies the manifests to the cluster providing the results.

func SyncWithLog added in v0.1.1

func SyncWithLog(ctx context.Context, objects []Manifest, config *rest.Config, dryRun bool, logFunc func(string, ...any)) error

SyncWithLog applies the manifests to the cluster logging the results via logFunc.

func WaitForRollout added in v0.1.1

func WaitForRollout(ctx context.Context, config *rest.Config, objects []Manifest, resultCh chan<- RolloutProgress) error

WaitForRollout waits for the manifest rollout to be complete.

Types

type Manifest

type Manifest = *unstructured.Unstructured

Manifest is a generic Kubernetes object.

func GetBootstrapManifests

func GetBootstrapManifests(ctx context.Context, st state.State, filter func(Manifest) bool) ([]Manifest, error)

GetBootstrapManifests fetches the bootstrap manifests from the cluster.

type RolloutProgress added in v0.1.1

type RolloutProgress struct {
	Object Manifest
	Path   string
}

RolloutProgress indicates the current manifest rollout progress.

type SyncResult added in v0.1.1

type SyncResult struct {
	Path    string
	Object  Manifest
	Diff    string
	Skipped bool
}

SyncResult describes the result of a single manifest sync.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL