Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmeister committed Aug 15, 2023
1 parent 13f5e32 commit 241b1ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ func (s *Service) Run(stop <-chan os.Signal) error {
}

func (s *Service) Mutate(ar admission.AdmissionReview) *admission.AdmissionResponse {
// Info.Printf("mutating\n")
// pt := admission.PatchTypeJSONPatch
// return &admission.AdmissionResponse{Allowed: true, PatchType: &pt, Patch: []byte(fmt.Sprintf(`[{"op":"replace","path":"","value":%s}]`, strings.ReplaceAll(string(ar.Request.Object.Raw), "${VAR}", "var-value")))}

Info.Printf("mutating pod")
podResource := metav1.GroupVersionResource{Group: "", Version: "v1", Resource: "pods"}
if ar.Request.Resource != podResource {
Expand Down

0 comments on commit 241b1ba

Please sign in to comment.