-
Notifications
You must be signed in to change notification settings - Fork 111
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
DATA-815 - Add PackageConfig to RDK #1804
Conversation
AdamMagaluk
commented
Jan 24, 2023
•
edited
Loading
edited
- proto conversions + rdk config validation
- config is not used by any RDK system expect parsing the packages are valid.
- proto conversions + rdk config validation
|
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.
Looks great.
@@ -744,3 +756,35 @@ type Updateable interface { | |||
// Update updates the resource | |||
Update(context.Context, *Config) error | |||
} | |||
|
|||
var packageNameRegEx = regexp.MustCompile(`^[A-Za-z0-9_-]+$`) |
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.
Note: Will update app to follow the same regex, as it's currently the same except doesn't support hyphens. Have an open ticket for determining the best regex, so updated there.
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.
Sg. I wanted to add something to be prescriptive for now. We can always update over the next few weeks as we finish implementation.
- proto conversions + rdk config validation - config is not used by any RDK system expect parsing the packages are valid.