-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Add JSON schema for Vald Helm Chart #365
Conversation
Best reviewed: commit by commit
Optimal code review plan (2 warnings)
|
555dabd
to
0c3a7f0
Compare
eae576b
to
5c33872
Compare
} | ||
|
||
func genJSONSchema(path string) error { | ||
f, err := os.Open(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golangci] reported by reviewdog 🐶
G304: Potential file inclusion via variable (gosec)
} | ||
|
||
func main() { | ||
if len(os.Args) < 2 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golangci] reported by reviewdog 🐶
mnd: Magic number: 2, in detected (gomnd)
l := ls[0] | ||
switch l.Type { | ||
case objectType: | ||
if len(ls) <= 1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golangci] reported by reviewdog 🐶
mnd: Magic number: 1, in detected (gomnd)
dec7557
to
5ffad08
Compare
aliases map[string]Schema | ||
) | ||
|
||
type SchemaBase struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golangci] reported by reviewdog 🐶
struct of size 192 bytes could be of size 176 bytes (maligned)
1dfe372
to
18d782c
Compare
/rebase |
[REBASE] Rebase triggered by kpango for branch: documentation/helm-chart/add-json-schema |
[REBASE] Failed to rebase. |
Signed-off-by: Rintaro Okamura <[email protected]>
Signed-off-by: Rintaro Okamura <[email protected]>
Signed-off-by: Rintaro Okamura <[email protected]>
Signed-off-by: Rintaro Okamura <[email protected]>
Signed-off-by: Rintaro Okamura <[email protected]>
Signed-off-by: Rintaro Okamura <[email protected]>
Signed-off-by: Rintaro Okamura <[email protected]>
Signed-off-by: Rintaro Okamura <[email protected]>
Signed-off-by: Rintaro Okamura <[email protected]>
Signed-off-by: Rintaro Okamura <[email protected]>
18d782c
to
63fbabe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Rintaro Okamura [email protected]
Description:
Add JSON schema file to Vald Helm Chart.
To achieve this, hack script is added in this PR.
operator sdk version is downgraded because Docker image of v0.17.1 is not uploaded yet. 😭
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: