Skip to content

Commit

Permalink
fix kinds (FairwindsOps#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren committed Apr 25, 2022
1 parent c92819c commit 322e6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/validator/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ func getJSONSchemaPrefix(kind string) (prefix string) {
prefix = "/spec/jobTemplate/spec/template/spec"
} else if kind == "Pod" {
prefix = "/spec"
} else if (kind == "Deployment") || (kind == "Daemonset") ||
(kind == "Statefulset") || (kind == "Job") || (kind == "ReplicationController") {
} else if (kind == "Deployment") || (kind == "DaemonSet") ||
(kind == "StatefulSet") || (kind == "Job") || (kind == "ReplicationController") {
prefix = "/spec/template/spec"
} else {
logrus.Warningf("Mutation for this this resource (%s) is not supported", kind)
Expand Down

0 comments on commit 322e6f7

Please sign in to comment.