manifest

package
v0.117.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeoutCheckpointManifestStartReconcile            = "manifest deployer: start reconcile"
	TimeoutCheckpointManifestBeforeReadinessCheck      = "manifest deployer: before readiness check"
	TimeoutCheckpointManifestBeforeReadingExportValues = "manifest deployer: before reading export values"
	TimeoutCheckpointManifestDefaultReadinessChecks    = "manifest deployer: default readiness checks"
	TimeoutCheckpointManifestCustomReadinessChecks     = "manifest deployer: custom readiness checks"
	TimeoutCheckpointManifestStartDelete               = "manifest deployer: start delete"
)
View Source
const (
	Type lsv1alpha1.DeployItemType = "landscaper.gardener.cloud/kubernetes-manifest"
	Name string                    = "manifest.deployer.landscaper.gardener.cloud"
)

Variables

View Source
var Scheme = runtime.NewScheme()

Functions

func AddDeployerToManager

func AddDeployerToManager(lsUncachedClient, lsCachedClient, hostUncachedClient, hostCachedClient client.Client,
	finishedObjectCache *utils.FinishedObjectCache,
	logger logging.Logger, lsMgr, hostMgr manager.Manager, config manifestv1alpha2.Configuration,
	callerName string) error

AddDeployerToManager adds a new helm deployers to a controller manager.

func NewDeployItemBuilder

func NewDeployItemBuilder() *utils.DeployItemBuilder

NewDeployItemBuilder creates a new deployitem builder for manifest deployitems

func NewDeployer

func NewDeployer(lsUncachedClient, lsCachedClient, hostUncachedClient, hostCachedClient client.Client,
	log logging.Logger,
	config manifestv1alpha2.Configuration) (deployerlib.Deployer, error)

NewDeployer creates a new deployer that reconciles deploy items of type helm.

Types

type Manifest

type Manifest struct {
	Configuration *manifestv1alpha2.Configuration

	DeployItem            *lsv1alpha1.DeployItem
	Target                *lsv1alpha1.ResolvedTarget
	ProviderConfiguration *manifestv1alpha2.ProviderConfiguration
	ProviderStatus        *manifestv1alpha2.ProviderStatus

	TargetKubeClient client.Client
	TargetRestConfig *rest.Config
	TargetClientSet  kubernetes.Interface
	// contains filtered or unexported fields
}

Manifest is the internal representation of a DeployItem of Type Manifest

func New

func New(lsUncachedClient client.Client, hostUncachedClient client.Client,
	configuration *manifestv1alpha2.Configuration,
	item *lsv1alpha1.DeployItem,
	rt *lsv1alpha1.ResolvedTarget) (*Manifest, error)

New creates a new internal manifest item

func (*Manifest) CheckResourcesReady

func (m *Manifest) CheckResourcesReady(ctx context.Context, client client.Client) error

CheckResourcesReady checks if the managed resources are Ready/Healthy.

func (*Manifest) Delete

func (m *Manifest) Delete(ctx context.Context) error

func (*Manifest) Reconcile

func (m *Manifest) Reconcile(ctx context.Context) error

func (*Manifest) TargetClient

func (*Manifest) Writer

func (m *Manifest) Writer() *read_write_layer.Writer

Jump to

Keyboard shortcuts

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