Documentation ¶
Index ¶
- func BuildDeployableResourceInfos(ctx context.Context, releaseName string, releaseNamespace string, ...) (releaseNamespaceInfo *DeployableReleaseNamespaceInfo, ...)
- type DeployableGeneralResourceInfo
- func (i *DeployableGeneralResourceInfo) DryApplyResource() *resrc.RemoteResource
- func (i *DeployableGeneralResourceInfo) ForceReplicas() (replicas int, set bool)
- func (i *DeployableGeneralResourceInfo) LiveResource() *resrc.RemoteResource
- func (i *DeployableGeneralResourceInfo) LiveUID() (uid types.UID, found bool)
- func (i *DeployableGeneralResourceInfo) Resource() *resrc.GeneralResource
- func (i *DeployableGeneralResourceInfo) ShouldApply() bool
- func (i *DeployableGeneralResourceInfo) ShouldCleanup(releaseName string, releaseNamespace string) bool
- func (i *DeployableGeneralResourceInfo) ShouldCleanupOnFailed(prevRelFailed bool, releaseName string, releaseNamespace string) bool
- func (i *DeployableGeneralResourceInfo) ShouldCreate() bool
- func (i *DeployableGeneralResourceInfo) ShouldKeepOnDelete(releaseName string, releaseNamespace string) bool
- func (i *DeployableGeneralResourceInfo) ShouldRecreate() bool
- func (i *DeployableGeneralResourceInfo) ShouldTrackReadiness(prevRelFailed bool) bool
- func (i *DeployableGeneralResourceInfo) ShouldUpdate() bool
- type DeployableHookResourceInfo
- func (i *DeployableHookResourceInfo) DryApplyResource() *resrc.RemoteResource
- func (i *DeployableHookResourceInfo) ForceReplicas() (replicas int, set bool)
- func (i *DeployableHookResourceInfo) LiveResource() *resrc.RemoteResource
- func (i *DeployableHookResourceInfo) LiveUID() (uid types.UID, found bool)
- func (i *DeployableHookResourceInfo) Resource() *resrc.HookResource
- func (i *DeployableHookResourceInfo) ShouldApply() bool
- func (i *DeployableHookResourceInfo) ShouldCleanup(releaseName string, releaseNamespace string) bool
- func (i *DeployableHookResourceInfo) ShouldCleanupOnFailed(prevRelFailed bool, releaseName string, releaseNamespace string) bool
- func (i *DeployableHookResourceInfo) ShouldCreate() bool
- func (i *DeployableHookResourceInfo) ShouldKeepOnDelete(releaseName string, releaseNamespace string) bool
- func (i *DeployableHookResourceInfo) ShouldRecreate() bool
- func (i *DeployableHookResourceInfo) ShouldTrackReadiness(prevRelFailed bool) bool
- func (i *DeployableHookResourceInfo) ShouldUpdate() bool
- type DeployablePrevReleaseGeneralResourceInfo
- func (i *DeployablePrevReleaseGeneralResourceInfo) LiveResource() *resrc.RemoteResource
- func (i *DeployablePrevReleaseGeneralResourceInfo) Resource() *resrc.GeneralResource
- func (i *DeployablePrevReleaseGeneralResourceInfo) ShouldDelete(curReleaseExistingResourcesUIDs []types.UID, releaseName string, ...) bool
- func (i *DeployablePrevReleaseGeneralResourceInfo) ShouldKeepOnDelete(releaseName string, releaseNamespace string) bool
- type DeployableReleaseNamespaceInfo
- func (i *DeployableReleaseNamespaceInfo) DryApplyResource() *resrc.RemoteResource
- func (i *DeployableReleaseNamespaceInfo) LiveResource() *resrc.RemoteResource
- func (i *DeployableReleaseNamespaceInfo) Resource() *resrc.ReleaseNamespace
- func (i *DeployableReleaseNamespaceInfo) ShouldApply() bool
- func (i *DeployableReleaseNamespaceInfo) ShouldCreate() bool
- func (i *DeployableReleaseNamespaceInfo) ShouldKeepOnDelete(releaseName string, releaseNamespace string) bool
- func (i *DeployableReleaseNamespaceInfo) ShouldUpdate() bool
- type DeployableStandaloneCRDInfo
- func (i *DeployableStandaloneCRDInfo) DryApplyResource() *resrc.RemoteResource
- func (i *DeployableStandaloneCRDInfo) LiveResource() *resrc.RemoteResource
- func (i *DeployableStandaloneCRDInfo) LiveUID() (uid types.UID, found bool)
- func (i *DeployableStandaloneCRDInfo) Resource() *resrc.StandaloneCRD
- func (i *DeployableStandaloneCRDInfo) ShouldApply() bool
- func (i *DeployableStandaloneCRDInfo) ShouldCreate() bool
- func (i *DeployableStandaloneCRDInfo) ShouldUpdate() bool
- type UpToDateStatus
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 (i *DeployableGeneralResourceInfo) LiveResource() *resrc.RemoteResource
func (*DeployableGeneralResourceInfo) LiveUID ¶
func (i *DeployableGeneralResourceInfo) LiveUID() (uid types.UID, found bool)
func (*DeployableGeneralResourceInfo) Resource ¶
func (i *DeployableGeneralResourceInfo) Resource() *resrc.GeneralResource
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 (i *DeployableHookResourceInfo) Resource() *resrc.HookResource
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 (i *DeployablePrevReleaseGeneralResourceInfo) LiveResource() *resrc.RemoteResource
func (*DeployablePrevReleaseGeneralResourceInfo) Resource ¶
func (i *DeployablePrevReleaseGeneralResourceInfo) Resource() *resrc.GeneralResource
func (*DeployablePrevReleaseGeneralResourceInfo) ShouldDelete ¶
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 NewDeployableReleaseNamespaceInfo ¶
func NewDeployableReleaseNamespaceInfo(ctx context.Context, res *resrc.ReleaseNamespace, kubeClient kubeclnt.KubeClienter, mapper meta.ResettableRESTMapper) (*DeployableReleaseNamespaceInfo, error)
func (*DeployableReleaseNamespaceInfo) DryApplyResource ¶
func (i *DeployableReleaseNamespaceInfo) DryApplyResource() *resrc.RemoteResource
func (*DeployableReleaseNamespaceInfo) LiveResource ¶
func (i *DeployableReleaseNamespaceInfo) LiveResource() *resrc.RemoteResource
func (*DeployableReleaseNamespaceInfo) Resource ¶
func (i *DeployableReleaseNamespaceInfo) Resource() *resrc.ReleaseNamespace
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 (i *DeployableStandaloneCRDInfo) LiveResource() *resrc.RemoteResource
func (*DeployableStandaloneCRDInfo) LiveUID ¶
func (i *DeployableStandaloneCRDInfo) LiveUID() (uid types.UID, found bool)
func (*DeployableStandaloneCRDInfo) Resource ¶
func (i *DeployableStandaloneCRDInfo) Resource() *resrc.StandaloneCRD
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" )
Click to show internal directories.
Click to hide internal directories.