Documentation ¶
Index ¶
Constants ¶
View Source
const ( Version = "v1" Resource = "workloadclusters" Group = "ecs.yun.pingan.com" CREATE = "CREATE" UPDATE = "UPDATE" DELETE = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
func AdmitClusterOperator ¶
func AdmitClusterOperator(ar v1beta1.AdmissionReview) *v1beta1.AdmissionResponse
AdmitClusterOperator is check all args.
func AdmitPods ¶
func AdmitPods(ar v1beta1.AdmissionReview) *v1beta1.AdmissionResponse
only allow pods to pull images from specific registry.
func MutatePods ¶
func MutatePods(ar v1beta1.AdmissionReview) *v1beta1.AdmissionResponse
func ToAdmissionResponse ¶
func ToAdmissionResponse(err error) *v1beta1.AdmissionResponse
ToAdmissionResponse is a helper function to create an AdmissionResponse with an embedded error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.