resrcinfo

package
v0.0.0-...-8c08a9e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDeployableResourceInfos

func BuildDeployableResourceInfos(
	ctx context.Context,
	releaseName string,
	releaseNamespace string,
	standaloneCRDs []*resrc.StandaloneCRD,
	hookResources []*resrc.HookResource,
	generalResources []*resrc.GeneralResource,
	prevReleaseGeneralResources []*resrc.GeneralResource,
	kubeClient kubeclnt.KubeClienter,
	mapper meta.ResettableRESTMapper,
	parallelism int,
) (
	releaseNamespaceInfo *DeployableReleaseNamespaceInfo,
	standaloneCRDsInfos []*DeployableStandaloneCRDInfo,
	hookResourcesInfos []*DeployableHookResourceInfo,
	generalResourcesInfos []*DeployableGeneralResourceInfo,
	prevReleaseGeneralResourceInfos []*DeployablePrevReleaseGeneralResourceInfo,
	err error,
)

Types

type DeployableGeneralResourceInfo

type DeployableGeneralResourceInfo struct {
	*resrcid.ResourceID
	// contains filtered or unexported fields
}

func NewDeployableGeneralResourceInfo

func NewDeployableGeneralResourceInfo(ctx context.Context, res *resrc.GeneralResource, releaseNamespace string, kubeClient kubeclnt.KubeClienter, mapper meta.ResettableRESTMapper) (*DeployableGeneralResourceInfo, error)

func (*DeployableGeneralResourceInfo) DryApplyResource

func (i *DeployableGeneralResourceInfo) DryApplyResource() *resrc.RemoteResource

func (*DeployableGeneralResourceInfo) ForceReplicas

func (i *DeployableGeneralResourceInfo) ForceReplicas() (replicas int, set bool)

func (*DeployableGeneralResourceInfo) LiveResource

func (*DeployableGeneralResourceInfo) LiveUID

func (i *DeployableGeneralResourceInfo) LiveUID() (uid types.UID, found bool)

func (*DeployableGeneralResourceInfo) Resource

func (*DeployableGeneralResourceInfo) ShouldApply

func (i *DeployableGeneralResourceInfo) ShouldApply() bool

func (*DeployableGeneralResourceInfo) ShouldCleanup

func (i *DeployableGeneralResourceInfo) ShouldCleanup(releaseName string, releaseNamespace string) bool

func (*DeployableGeneralResourceInfo) ShouldCleanupOnFailed

func (i *DeployableGeneralResourceInfo) ShouldCleanupOnFailed(prevRelFailed bool, releaseName string, releaseNamespace string) bool

func (*DeployableGeneralResourceInfo) ShouldCreate

func (i *DeployableGeneralResourceInfo) ShouldCreate() bool

func (*DeployableGeneralResourceInfo) ShouldKeepOnDelete

func (i *DeployableGeneralResourceInfo) ShouldKeepOnDelete(releaseName string, releaseNamespace string) bool

func (*DeployableGeneralResourceInfo) ShouldRecreate

func (i *DeployableGeneralResourceInfo) ShouldRecreate() bool

func (*DeployableGeneralResourceInfo) ShouldTrackReadiness

func (i *DeployableGeneralResourceInfo) ShouldTrackReadiness(prevRelFailed bool) bool

func (*DeployableGeneralResourceInfo) ShouldUpdate

func (i *DeployableGeneralResourceInfo) ShouldUpdate() bool

type DeployableHookResourceInfo

type DeployableHookResourceInfo struct {
	*resrcid.ResourceID
	// contains filtered or unexported fields
}

func NewDeployableHookResourceInfo

func NewDeployableHookResourceInfo(ctx context.Context, res *resrc.HookResource, releaseNamespace string, kubeClient kubeclnt.KubeClienter, mapper meta.ResettableRESTMapper) (*DeployableHookResourceInfo, error)

func (*DeployableHookResourceInfo) DryApplyResource

func (i *DeployableHookResourceInfo) DryApplyResource() *resrc.RemoteResource

func (*DeployableHookResourceInfo) ForceReplicas

func (i *DeployableHookResourceInfo) ForceReplicas() (replicas int, set bool)

func (*DeployableHookResourceInfo) LiveResource

func (i *DeployableHookResourceInfo) LiveResource() *resrc.RemoteResource

func (*DeployableHookResourceInfo) LiveUID

func (i *DeployableHookResourceInfo) LiveUID() (uid types.UID, found bool)

func (*DeployableHookResourceInfo) Resource

func (*DeployableHookResourceInfo) ShouldApply

func (i *DeployableHookResourceInfo) ShouldApply() bool

func (*DeployableHookResourceInfo) ShouldCleanup

func (i *DeployableHookResourceInfo) ShouldCleanup(releaseName string, releaseNamespace string) bool

func (*DeployableHookResourceInfo) ShouldCleanupOnFailed

func (i *DeployableHookResourceInfo) ShouldCleanupOnFailed(prevRelFailed bool, releaseName string, releaseNamespace string) bool

func (*DeployableHookResourceInfo) ShouldCreate

func (i *DeployableHookResourceInfo) ShouldCreate() bool

func (*DeployableHookResourceInfo) ShouldKeepOnDelete

func (i *DeployableHookResourceInfo) ShouldKeepOnDelete(releaseName string, releaseNamespace string) bool

func (*DeployableHookResourceInfo) ShouldRecreate

func (i *DeployableHookResourceInfo) ShouldRecreate() bool

func (*DeployableHookResourceInfo) ShouldTrackReadiness

func (i *DeployableHookResourceInfo) ShouldTrackReadiness(prevRelFailed bool) bool

func (*DeployableHookResourceInfo) ShouldUpdate

func (i *DeployableHookResourceInfo) ShouldUpdate() bool

type DeployablePrevReleaseGeneralResourceInfo

type DeployablePrevReleaseGeneralResourceInfo struct {
	*resrcid.ResourceID
	// contains filtered or unexported fields
}

func NewDeployablePrevReleaseGeneralResourceInfo

func NewDeployablePrevReleaseGeneralResourceInfo(ctx context.Context, res *resrc.GeneralResource, releaseNamespace string, kubeClient kubeclnt.KubeClienter, mapper meta.ResettableRESTMapper) (*DeployablePrevReleaseGeneralResourceInfo, error)

func (*DeployablePrevReleaseGeneralResourceInfo) LiveResource

func (*DeployablePrevReleaseGeneralResourceInfo) Resource

func (*DeployablePrevReleaseGeneralResourceInfo) ShouldDelete

func (i *DeployablePrevReleaseGeneralResourceInfo) ShouldDelete(curReleaseExistingResourcesUIDs []types.UID, releaseName string, releaseNamespace string) bool

func (*DeployablePrevReleaseGeneralResourceInfo) ShouldKeepOnDelete

func (i *DeployablePrevReleaseGeneralResourceInfo) ShouldKeepOnDelete(releaseName string, releaseNamespace string) bool

type DeployableReleaseNamespaceInfo

type DeployableReleaseNamespaceInfo struct {
	*resrcid.ResourceID
	// contains filtered or unexported fields
}

func (*DeployableReleaseNamespaceInfo) DryApplyResource

func (i *DeployableReleaseNamespaceInfo) DryApplyResource() *resrc.RemoteResource

func (*DeployableReleaseNamespaceInfo) LiveResource

func (*DeployableReleaseNamespaceInfo) Resource

func (*DeployableReleaseNamespaceInfo) ShouldApply

func (i *DeployableReleaseNamespaceInfo) ShouldApply() bool

func (*DeployableReleaseNamespaceInfo) ShouldCreate

func (i *DeployableReleaseNamespaceInfo) ShouldCreate() bool

func (*DeployableReleaseNamespaceInfo) ShouldKeepOnDelete

func (i *DeployableReleaseNamespaceInfo) ShouldKeepOnDelete(releaseName string, releaseNamespace string) bool

func (*DeployableReleaseNamespaceInfo) ShouldUpdate

func (i *DeployableReleaseNamespaceInfo) ShouldUpdate() bool

type DeployableStandaloneCRDInfo

type DeployableStandaloneCRDInfo struct {
	*resrcid.ResourceID
	// contains filtered or unexported fields
}

func NewDeployableStandaloneCRDInfo

func NewDeployableStandaloneCRDInfo(ctx context.Context, res *resrc.StandaloneCRD, releaseNamespace string, kubeClient kubeclnt.KubeClienter, mapper meta.ResettableRESTMapper) (*DeployableStandaloneCRDInfo, error)

func (*DeployableStandaloneCRDInfo) DryApplyResource

func (i *DeployableStandaloneCRDInfo) DryApplyResource() *resrc.RemoteResource

func (*DeployableStandaloneCRDInfo) LiveResource

func (*DeployableStandaloneCRDInfo) LiveUID

func (i *DeployableStandaloneCRDInfo) LiveUID() (uid types.UID, found bool)

func (*DeployableStandaloneCRDInfo) Resource

func (*DeployableStandaloneCRDInfo) ShouldApply

func (i *DeployableStandaloneCRDInfo) ShouldApply() bool

func (*DeployableStandaloneCRDInfo) ShouldCreate

func (i *DeployableStandaloneCRDInfo) ShouldCreate() bool

func (*DeployableStandaloneCRDInfo) ShouldUpdate

func (i *DeployableStandaloneCRDInfo) ShouldUpdate() bool

type UpToDateStatus

type UpToDateStatus string
const (
	UpToDateStatusUnknown UpToDateStatus = "unknown"
	UpToDateStatusYes     UpToDateStatus = "yes"
	UpToDateStatusNo      UpToDateStatus = "no"
)

Jump to

Keyboard shortcuts

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