overridepolicy

package
v0.0.0-...-8ed77bd Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OverridePolicy

type OverridePolicy struct {
	ObjectMeta types.ObjectMeta `json:"objectMeta"`
	TypeMeta   types.TypeMeta   `json:"typeMeta"`
	// Override specificed data
	ResourceSelectors []v1alpha1.ResourceSelector `json:"resourceSelectors"`
	OverrideRules     []v1alpha1.RuleWithCluster  `json:"overrideRules"`
}

type OverridePolicyCell

type OverridePolicyCell v1alpha1.OverridePolicy

func (OverridePolicyCell) GetProperty

type OverridePolicyDetail

type OverridePolicyDetail struct {
	// Extends list item structure.
	OverridePolicy `json:",inline"`

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

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

func GetOverridePolicyDetail

func GetOverridePolicyDetail(client karmadaclientset.Interface, namespace, name string) (*OverridePolicyDetail, error)

GetOverridePolicyDetail gets Overridepolicy details.

type OverridePolicyList

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

	// Unordered list of OverridePolicys.
	OverridePolicys []OverridePolicy `json:"overridepolicys"`

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

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

func GetOverridePolicyList

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

GetOverridePolicyList 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