Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
ad886c5e
Commit
ad886c5e
authored
May 19, 2019
by
Morten Torkildsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(helm): Disable schema validation for manifests
Signed-off-by:
Morten Torkildsen
<
mortent@google.com
>
parent
9fb19967
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
client.go
pkg/kube/client.go
+4
-1
No files found.
pkg/kube/client.go
View file @
ad886c5e
...
...
@@ -157,13 +157,16 @@ func (c *Client) BuildUnstructured(namespace string, reader io.Reader) (Result,
}
// Validate reads Kubernetes manifests and validates the content.
//
// This function does not actually do schema validation of manifests. Adding
// validation now breaks existing clients of helm: https://github.com/helm/helm/issues/5750
func
(
c
*
Client
)
Validate
(
namespace
string
,
reader
io
.
Reader
)
error
{
_
,
err
:=
c
.
NewBuilder
()
.
Unstructured
()
.
ContinueOnError
()
.
NamespaceParam
(
namespace
)
.
DefaultNamespace
()
.
Schema
(
c
.
validator
())
.
// Schema(c.validator()). // No schema validation
Stream
(
reader
,
""
)
.
Flatten
()
.
Do
()
.
Infos
()
...
...
Write
Preview
Markdown
is supported
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