Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pods ¶
func Pods(ar admissionv1.AdmissionReview) *admissionv1.AdmissionResponse
Pods mutate pods.
Types ¶
type ResGroup ¶
type ResGroup interface {
IsBelongResGroup(pod *v1.Pod, resGroupConfig wkconfig.ResGroupConfig) bool
}
ResGroup interface for resource group
func GetResGroup ¶
func GetResGroup(resourceGroup wkconfig.ResGroupConfig) ResGroup
GetResGroup return the interface besed on resourceGroup.Object.Key
func NewAnnotationResGroup ¶
func NewAnnotationResGroup() ResGroup
NewAnnotationResGroup create a new structure
func NewNamespaceResGroup ¶
func NewNamespaceResGroup() ResGroup
NewNamespaceResGroup create a new structure
Click to show internal directories.
Click to hide internal directories.