propagationpolicy

package
v0.0.0-...-5648666 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PropagationPolicy

type PropagationPolicy struct {
	ObjectMeta types.ObjectMeta `json:"objectMeta"`
	TypeMeta   types.TypeMeta   `json:"typeMeta"`
	// propagation specificed data
	SchedulerName   string                    `json:"schedulerName"`
	ClusterAffinity *v1alpha1.ClusterAffinity `json:"clusterAffinity"`
	Deployments     []string                  `json:"deployments"`
}

type PropagationPolicyCell

type PropagationPolicyCell v1alpha1.PropagationPolicy

PropagationPolicyCell is a wrapper around PropagationPolicy type

func (PropagationPolicyCell) GetProperty

GetProperty returns the given property of the PropagationPolicy.

type PropagationPolicyDetail

type PropagationPolicyDetail struct {
	// Extends list item structure.
	PropagationPolicy `json:",inline"`

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

PropagationPolicyDetail is a presentation layer view of Karmada PropagationPolicy resource. This means it is PropagationPolicy plus additional augmented data we can get from other sources.

func GetPropagationPolicyDetail

func GetPropagationPolicyDetail(client karmadaclientset.Interface, namespace, name string) (*PropagationPolicyDetail, error)

GetPropagationPolicyDetail gets propagationpolicy details.

type PropagationPolicyList

type PropagationPolicyList struct {
	ListMeta types.ListMeta `json:"listMeta"`

	// Unordered list of PropagationPolicys.
	PropagationPolicys []PropagationPolicy `json:"propagationpolicys"`

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

PropagationPolicyList contains a list of propagation in the karmada control-plance.

func GetPropagationPolicyList

func GetPropagationPolicyList(client karmadaclientset.Interface, k8sClient kubernetes.Interface, nsQuery *common.NamespaceQuery, dsQuery *dataselect.DataSelectQuery) (*PropagationPolicyList, error)

GetPropagationPolicyList returns a list of all propagations in the karmada control-plance.

Jump to

Keyboard shortcuts

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