configuration

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SidecarSetPatchPodMetadataWhiteListKey = "SidecarSet_PatchPodMetadata_WhiteList"
	PPSWatchCustomWorkloadWhiteList        = "PPS_Watch_Custom_Workload_WhiteList"
	WSWatchCustomWorkloadWhiteList         = "WorkloadSpread_Watch_Custom_Workload_WhiteList"
)
View Source
const (
	// kruise configmap name
	KruiseConfigurationName = "kruise-configuration"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomWorkload added in v1.5.0

type CustomWorkload struct {
	schema.GroupVersionKind `json:",inline"`
	SubResources            []schema.GroupVersionKind `json:"subResources,omitempty"`
	// ReplicasPath is the replicas field path of this type of workload, such as "spec.replicas"
	ReplicasPath string `json:"replicasPath,omitempty"`
}

type CustomWorkloadWhiteList added in v1.5.0

type CustomWorkloadWhiteList struct {
	Workloads []schema.GroupVersionKind `json:"workloads,omitempty"`
}

func GetPPSWatchCustomWorkloadWhiteList added in v1.5.0

func GetPPSWatchCustomWorkloadWhiteList(client client.Client) (*CustomWorkloadWhiteList, error)

func (*CustomWorkloadWhiteList) IsDefaultSupport added in v1.5.0

func (p *CustomWorkloadWhiteList) IsDefaultSupport(apiVersion, kind string) bool

func (*CustomWorkloadWhiteList) IsValid added in v1.5.0

func (*CustomWorkloadWhiteList) ValidateAPIVersionAndKind added in v1.5.0

func (p *CustomWorkloadWhiteList) ValidateAPIVersionAndKind(apiVersion, kind string) bool

type SidecarSetPatchMetadataWhiteList

type SidecarSetPatchMetadataWhiteList struct {
	Rules []SidecarSetPatchMetadataWhiteRule `json:"rules"`
}

func GetSidecarSetPatchMetadataWhiteList

func GetSidecarSetPatchMetadataWhiteList(client client.Client) (*SidecarSetPatchMetadataWhiteList, error)

type SidecarSetPatchMetadataWhiteRule

type SidecarSetPatchMetadataWhiteRule struct {
	// selector sidecarSet against labels
	// If selector is nil, assume that the rules should apply for every sidecarSets
	Selector *metav1.LabelSelector `json:"selector,omitempty"`
	// Support for regular expressions
	AllowedAnnotationKeyExprs []string `json:"allowedAnnotationKeyExprs"`
}

type WSCustomWorkloadWhiteList added in v1.5.0

type WSCustomWorkloadWhiteList struct {
	Workloads []CustomWorkload `json:"workloads,omitempty"`
}

func GetWSWatchCustomWorkloadWhiteList added in v1.5.0

func GetWSWatchCustomWorkloadWhiteList(client client.Reader) (WSCustomWorkloadWhiteList, error)

Jump to

Keyboard shortcuts

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