-
Notifications
You must be signed in to change notification settings - Fork 1
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
Schema and strict validation radixconfig #95
Conversation
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.
- go.mod is using go1.22, but Dockerfile nad github actions still reference go1.21.
- should we update golangci-lint to newer version?
- should we update goreleaser to newer version?
cmd/validateRadixConfig.go
Outdated
@@ -87,6 +168,7 @@ func init() { | |||
validateCmd.AddCommand(validateRadixConfigCmd) | |||
validateRadixConfigCmd.Flags().StringP(flagnames.ConfigFile, "f", "radixconfig.yaml", "Name of the radixconfig file. Defaults to radixconfig.yaml in current directory") | |||
validateRadixConfigCmd.Flags().BoolP(flagnames.Print, "p", false, "Print parsed config file") | |||
validateRadixConfigCmd.Flags().StringP(flagnames.Schema, "s", "https://raw.githubusercontent.com/equinor/radix-operator/release/json-schema/radixapplication.json", "Validate against schema") |
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.
Do we need a shorthand for schema? Most users will never use it, and the more shorthands we add, the more chance of a conflict with other flags later.
Also, add some info about what values this flag accepts: url (https://) or file (file://)?
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.
enig! la inn Validate against schema. http://, file:// or path is supported
, og installerte samme versjon som Radix-API, og på samme måte :)
…about local file and file://
Todo: