Auto-build

This commit is contained in:
2023-03-24 21:42:19 -05:00
parent 96e606af5b
commit 910efe258e
3 changed files with 192 additions and 3 deletions

View File

@@ -15,13 +15,11 @@ import (
func PodsMutation() Hook {
return Hook{
Create: podMutationCreate(),
Update: podMutationCreate(),
// default allow
Delete: func(r *admission.AdmissionRequest, cfg *config.Config) (*Result, error) {
return &Result{Allowed: true}, nil
},
Update: func(r *admission.AdmissionRequest, cfg *config.Config) (*Result, error) {
return &Result{Allowed: true}, nil
},
Connect: func(r *admission.AdmissionRequest, cfg *config.Config) (*Result, error) {
return &Result{Allowed: true}, nil
},