-
Notifications
You must be signed in to change notification settings - Fork 120
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
kyma alpha create module using config file #1694
kyma alpha create module using config file #1694
Conversation
Skipping CI for Draft Pull Request. |
d5de549
to
925c20a
Compare
0626dc7
to
677ce5f
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.
return fmt.Errorf("%w, module name length cannot exceed 255 characters", ErrNameValidation) | ||
} | ||
matched, _ := regexp.MatchString(moduleNamePattern, cv.config.Name) | ||
if !matched { |
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.
Please give a valid example of the module name here, it's not easy to understand based on the regex, e.g: kyma-project.io/module-name
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.
👍
return nil, nil, err | ||
} | ||
|
||
defaultCRPath, err := resolveFilePath(moduleConfig.DefaultCRPath, cmd.opts.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.
This DefaultCRPath should be optional, right? I got error without offer default CR 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.
👍
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
I have tested the |
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
0ae9600
/retest-required |
/retest |
1 similar comment
/retest |
/retest-required |
Description
This PR delivers simplified syntax for
kyma alpha create module
for non-kubebuilder projects.The syntax for kubebuilder projects stays the same for now.
See #1684 for details
Changes proposed in this pull request:
Related issue(s)
See also #1684