envbinding

package
v1.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvBindingPolicy

func GetEnvBindingPolicy(app *v1beta1.Application, policyName string) (*v1alpha1.EnvBindingSpec, error)

GetEnvBindingPolicy extract env-binding policy with given policy name, if policy name is empty, the first env-binding policy will be used

func GetEnvBindingPolicyStatus

func GetEnvBindingPolicyStatus(app *v1beta1.Application, policyName string) (*v1alpha1.EnvBindingStatus, error)

GetEnvBindingPolicyStatus extract env-binding policy status with given policy name, if policy name is empty, the first env-binding policy will be used

func MergeComponent

MergeComponent merge two component, it will first merge their properties and then merge their traits

func MergeRawExtension

func MergeRawExtension(base *runtime.RawExtension, patch *runtime.RawExtension) (*runtime.RawExtension, error)

MergeRawExtension merge two raw extension

func PatchApplication

func PatchApplication(base *v1beta1.Application, patch *v1alpha1.EnvPatch, selector *v1alpha1.EnvSelector) (*v1beta1.Application, error)

PatchApplication patch base application with patch and selector

func PatchApplicationByEnvBindingEnv

func PatchApplicationByEnvBindingEnv(app *v1beta1.Application, policyName string, envName string) (*v1beta1.Application, error)

PatchApplicationByEnvBindingEnv get patched application directly through policyName and envName

func ReadPlacementDecisions

func ReadPlacementDecisions(app *v1beta1.Application, policyName string, envName string) ([]v1alpha1.PlacementDecision, bool, error)

ReadPlacementDecisions read placement decisions from application status, return (decisions, if decision is made, error)

func WriteClustersToResourceTracker

func WriteClustersToResourceTracker(ctx context.Context, c client.Client, app *v1beta1.Application, clusters ...string) error

WriteClustersToResourceTracker records cluster into application root resource tracker

func WritePlacementDecisions

func WritePlacementDecisions(app *v1beta1.Application, policyName string, envName string, decisions []v1alpha1.PlacementDecision) error

WritePlacementDecisions write placement decisions into application status

Types

This section is empty.

Jump to

Keyboard shortcuts

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