Skip to content
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

Merged

Conversation

Tomasz-Smelcerz-SAP
Copy link
Member

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

@kyma-bot kyma-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 30, 2023
@kyma-bot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kyma-bot kyma-bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jun 30, 2023
@Tomasz-Smelcerz-SAP Tomasz-Smelcerz-SAP force-pushed the feature/create-module-from-file branch from d5de549 to 925c20a Compare June 30, 2023 11:10
@Tomasz-Smelcerz-SAP Tomasz-Smelcerz-SAP force-pushed the feature/create-module-from-file branch from 0626dc7 to 677ce5f Compare July 5, 2023 07:25
Copy link
Contributor

@mmitoraj mmitoraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added my comments. Could you also point me to those descriptions?
Screenshot 2023-07-05 at 15 31 59
I couldn't find all of those, as probably you don't update them in your PR.

@Tomasz-Smelcerz-SAP Tomasz-Smelcerz-SAP marked this pull request as ready for review July 5, 2023 18:36
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 5, 2023
return fmt.Errorf("%w, module name length cannot exceed 255 characters", ErrNameValidation)
}
matched, _ := regexp.MatchString(moduleNamePattern, cv.config.Name)
if !matched {
Copy link
Contributor

@ruanxin ruanxin Jul 7, 2023

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

Copy link
Member Author

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)
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Tomasz-Smelcerz-SAP and others added 6 commits July 12, 2023 06:58
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>
@Tomasz-Smelcerz-SAP Tomasz-Smelcerz-SAP linked an issue Jul 18, 2023 that may be closed by this pull request
5 tasks
@Tomasz-Smelcerz-SAP Tomasz-Smelcerz-SAP added the area/cli Related to all activities around CLI label Jul 19, 2023
@medmes
Copy link
Member

medmes commented Jul 24, 2023

I have tested the template-operator module built with the config-file on k3d cluster and it works as intended.
At the moment I'll approve this PR and later I'll add the the docs for the steps to reproduce the module template creation.

medmes
medmes previously approved these changes Jul 24, 2023
@kyma-bot kyma-bot added the lgtm Looks good to me! label Jul 24, 2023
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
@kyma-bot kyma-bot removed the lgtm Looks good to me! label Jul 25, 2023
medmes
medmes previously approved these changes Jul 25, 2023
@kyma-bot kyma-bot added the lgtm Looks good to me! label Jul 25, 2023
mmitoraj
mmitoraj previously approved these changes Jul 25, 2023
@Tomasz-Smelcerz-SAP Tomasz-Smelcerz-SAP dismissed stale reviews from mmitoraj and medmes via 0ae9600 July 25, 2023 13:38
@kyma-bot kyma-bot removed the lgtm Looks good to me! label Jul 25, 2023
@medmes medmes self-requested a review July 25, 2023 13:56
@medmes
Copy link
Member

medmes commented Jul 25, 2023

/retest-required

@medmes
Copy link
Member

medmes commented Jul 25, 2023

/retest

1 similar comment
@medmes
Copy link
Member

medmes commented Jul 25, 2023

/retest

@kyma-bot kyma-bot added the lgtm Looks good to me! label Jul 26, 2023
@medmes
Copy link
Member

medmes commented Jul 26, 2023

/retest-required

@kyma-bot kyma-bot merged commit 74d6713 into kyma-project:main Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to all activities around CLI lgtm Looks good to me! size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Module command rework
5 participants