policy

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterLabelSelectorInTopology added in v1.3.0

func GetClusterLabelSelectorInTopology(topology *v1alpha1.TopologyPolicySpec) map[string]string

GetClusterLabelSelectorInTopology get cluster label selector in topology policy spec

func GetPlacementsFromTopologyPolicies added in v1.3.1

func GetPlacementsFromTopologyPolicies(ctx context.Context, cli client.Client, appNs string, policies []v1beta1.AppPolicy, allowCrossNamespace bool) ([]v1alpha1.PlacementDecision, error)

GetPlacementsFromTopologyPolicies get placements from topology policies with provided client

func ParseApplyOncePolicy

func ParseApplyOncePolicy(app *v1beta1.Application) (*v1alpha1.ApplyOncePolicySpec, error)

ParseApplyOncePolicy parse apply-once policy

func ParseGarbageCollectPolicy

func ParseGarbageCollectPolicy(app *v1beta1.Application) (*v1alpha1.GarbageCollectPolicySpec, error)

ParseGarbageCollectPolicy parse garbage-collect policy

func ParseOverridePolicyRelatedDefinitions added in v1.3.0

func ParseOverridePolicyRelatedDefinitions(ctx context.Context, cli client.Client, app *v1beta1.Application, policy v1beta1.AppPolicy) (compDefs []*v1beta1.ComponentDefinition, traitDefs []*v1beta1.TraitDefinition, err error)

ParseOverridePolicyRelatedDefinitions get definitions inside override policy

func ParseSharedResourcePolicy added in v1.5.0

func ParseSharedResourcePolicy(app *v1beta1.Application) (*v1alpha1.SharedResourcePolicySpec, error)

ParseSharedResourcePolicy parse shared-resource policy

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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