Unverified Commit 322e6f7d authored by Robert Brennan's avatar Robert Brennan Committed by GitHub
Browse files

fix kinds (#752)

parent c92819ca
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment