virtualdeployment

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: UPL-1.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVDActiveStatus

GetVDActiveStatus returns the current status of the VD

func IsVdActiveCp

func IsVdActiveCp(vd *sdk.VirtualDeployment) bool

IsVdActiveCp tests whether given virtual deployment is active. virtual deployment is active when its VirtualDeploymentActive condition equals true.

func IsVdActiveK8s

func IsVdActiveK8s(vd *servicemeshapi.VirtualDeployment) bool

IsVdActiveK8s tests whether given virtual deployment is active. virtual deployment is active when its VirtualDeploymentActive condition equals true.

func NewVirtualDeploymentResourceManager

func NewVirtualDeploymentResourceManager(client client.Client, serviceMeshClient services.ServiceMeshClient,
	log loggerutil.OSOKLogger, referenceResolver references.Resolver) manager.CustomResourceHandler

Types

type ResourceManager

type ResourceManager struct {
	// contains filtered or unexported fields
}

func (*ResourceManager) BuildSdk

func (m *ResourceManager) BuildSdk(object client.Object, details *manager.ResourceDetails) error

func (*ResourceManager) ChangeCompartment

func (m *ResourceManager) ChangeCompartment(ctx context.Context, object client.Object, details *manager.ResourceDetails) error

func (*ResourceManager) CreateResource

func (m *ResourceManager) CreateResource(ctx context.Context, object client.Object, details *manager.ResourceDetails) (bool, error)

func (*ResourceManager) DeleteResource

func (m *ResourceManager) DeleteResource(ctx context.Context, object client.Object) error

func (*ResourceManager) Finalize

func (m *ResourceManager) Finalize(ctx context.Context, object client.Object) error

func (*ResourceManager) GetConditionStatus

func (m *ResourceManager) GetConditionStatus(details *manager.ResourceDetails) metav1.ConditionStatus

func (*ResourceManager) GetFinalizer

func (m *ResourceManager) GetFinalizer() string

func (*ResourceManager) GetLifecycleState

func (m *ResourceManager) GetLifecycleState(details *manager.ResourceDetails) string

func (*ResourceManager) GetMessage

func (m *ResourceManager) GetMessage(details *manager.ResourceDetails) string

func (*ResourceManager) GetResource

func (m *ResourceManager) GetResource(ctx context.Context, object client.Object, details *manager.ResourceDetails) error

func (*ResourceManager) GetServiceMeshStatus

func (m *ResourceManager) GetServiceMeshStatus(object client.Object) (*servicemeshapi.ServiceMeshStatus, error)

func (*ResourceManager) GetTimeUpdated

func (m *ResourceManager) GetTimeUpdated(details *manager.ResourceDetails) *common.SDKTime

func (*ResourceManager) HasCompartmentIdChanged

func (m *ResourceManager) HasCompartmentIdChanged(object client.Object, details *manager.ResourceDetails) (bool, error)

func (*ResourceManager) ResolveDependencies

func (m *ResourceManager) ResolveDependencies(ctx context.Context, object client.Object, details *manager.ResourceDetails) error

func (*ResourceManager) UpdateResource

func (m *ResourceManager) UpdateResource(ctx context.Context, object client.Object, details *manager.ResourceDetails) error

func (*ResourceManager) UpdateStatus

func (m *ResourceManager) UpdateStatus(object client.Object, details *manager.ResourceDetails) (bool, error)

func (*ResourceManager) VerifyEntityType

func (m *ResourceManager) VerifyEntityType(object runtime.Object) (client.Object, error)

func (*ResourceManager) VerifyResourceStatus

func (m *ResourceManager) VerifyResourceStatus(details *manager.ResourceDetails) (bool, error)

type VirtualDeploymentValidator

type VirtualDeploymentValidator struct {
	// contains filtered or unexported fields
}

func (*VirtualDeploymentValidator) GetEntityType

func (v *VirtualDeploymentValidator) GetEntityType() client.Object

func (*VirtualDeploymentValidator) GetStatus

func (*VirtualDeploymentValidator) ResolveRef

func (v *VirtualDeploymentValidator) ResolveRef(object client.Object) (bool, string)

func (*VirtualDeploymentValidator) ValidateObject

func (v *VirtualDeploymentValidator) ValidateObject(object client.Object) error

func (*VirtualDeploymentValidator) ValidateOnCreate

func (v *VirtualDeploymentValidator) ValidateOnCreate(context context.Context, object client.Object) (bool, string)

func (*VirtualDeploymentValidator) ValidateOnUpdate

func (v *VirtualDeploymentValidator) ValidateOnUpdate(context context.Context, object client.Object, oldObject client.Object) (bool, string)

Jump to

Keyboard shortcuts

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