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 (p *CustomWorkloadWhiteList) IsValid(gk metav1.GroupKind) bool
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)
Click to show internal directories.
Click to hide internal directories.