Documentation ¶
Index ¶
Constants ¶
View Source
const ( SidecarSetPatchPodMetadataWhiteListKey = "SidecarSet_PatchPodMetadata_WhiteList" PPSWatchCustomWorkloadWhiteList = "PPS_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 PPSWatchWatchCustomWorkloadWhiteList ¶ added in v1.4.0
type PPSWatchWatchCustomWorkloadWhiteList struct {
Workloads []schema.GroupVersionKind `json:"workloads,omitempty"`
}
func GetPPSWatchWatchCustomWorkloadWhiteList ¶ added in v1.4.0
func GetPPSWatchWatchCustomWorkloadWhiteList(client client.Client) (*PPSWatchWatchCustomWorkloadWhiteList, error)
func (*PPSWatchWatchCustomWorkloadWhiteList) IsDefaultSupport ¶ added in v1.4.0
func (p *PPSWatchWatchCustomWorkloadWhiteList) IsDefaultSupport(apiVersion, kind string) bool
func (*PPSWatchWatchCustomWorkloadWhiteList) IsValid ¶ added in v1.4.0
func (p *PPSWatchWatchCustomWorkloadWhiteList) IsValid(gk metav1.GroupKind) bool
func (*PPSWatchWatchCustomWorkloadWhiteList) ValidateAPIVersionAndKind ¶ added in v1.4.0
func (p *PPSWatchWatchCustomWorkloadWhiteList) 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"` }
Click to show internal directories.
Click to hide internal directories.