Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Polaris
Commits
322e6f7d
Unverified
Commit
322e6f7d
authored
3 years ago
by
Robert Brennan
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix kinds (#752)
parent
c92819ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/validator/schema.go
+2
-2
pkg/validator/schema.go
with
2 additions
and
2 deletions
+2
-2
pkg/validator/schema.go
+
2
-
2
View file @
322e6f7d
...
...
@@ -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
==
"Daemon
s
et"
)
||
(
kind
==
"Stateful
s
et"
)
||
(
kind
==
"Job"
)
||
(
kind
==
"ReplicationController"
)
{
}
else
if
(
kind
==
"Deployment"
)
||
(
kind
==
"Daemon
S
et"
)
||
(
kind
==
"Stateful
S
et"
)
||
(
kind
==
"Job"
)
||
(
kind
==
"ReplicationController"
)
{
prefix
=
"/spec/template/spec"
}
else
{
logrus
.
Warningf
(
"Mutation for this this resource (%s) is not supported"
,
kind
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help