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

🌱 Make kustomize apply function not dependent on ginkgo #1892

Conversation

mquhuy
Copy link
Member

@mquhuy mquhuy commented Aug 15, 2024

The goal is to make this function usable for other packages, which may not use ginkgo

Signed-off-by: Huy Mai <huy.mai@est.tech>
@metal3-io-bot metal3-io-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 15, 2024
@mquhuy
Copy link
Member Author

mquhuy commented Aug 15, 2024

/cc @kashifest @tuminoid

I would like to merge this before 0.7 release, so that this function could be used in deploy-cli.

@tuminoid
Copy link
Member

/cc @kashifest @tuminoid

I would like to merge this before 0.7 release, so that this function could be used in deploy-cli.

You're suggesting using code from e2e tests in deploy, which is non-test code? If that is what you're after, then this code should live somewhere else.

Copy link
Member

@kashifest kashifest left a comment

Choose a reason for hiding this comment

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

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kashifest

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 15, 2024
@tuminoid
Copy link
Member

/hold

@metal3-io-bot metal3-io-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 15, 2024
@mquhuy
Copy link
Member Author

mquhuy commented Aug 15, 2024

/cc @kashifest @tuminoid
I would like to merge this before 0.7 release, so that this function could be used in deploy-cli.

You're suggesting using code from e2e tests in deploy, which is non-test code? If that is what you're after, then this code should live somewhere else.

Agreed. But currently we don't have anywhere more suitable for this code. I don't think it's a blocker though, we can decide on having common package which can be imported by both test and non-test later.

@tuminoid
Copy link
Member

/cc @kashifest @tuminoid
I would like to merge this before 0.7 release, so that this function could be used in deploy-cli.

You're suggesting using code from e2e tests in deploy, which is non-test code? If that is what you're after, then this code should live somewhere else.

Agreed. But currently we don't have anywhere more suitable for this code. I don't think it's a blocker though, we can decide on having common package which can be imported by both test and non-test later.

This change is fine by itself as it just removes Ginkgo calls, but do not use it in deploy-cli without relocating it elsewhere first. We should not be importing test code into prod code.

Copy link
Member

@tuminoid tuminoid left a comment

Choose a reason for hiding this comment

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

/lgtm
/unhold

@metal3-io-bot metal3-io-bot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Aug 15, 2024
@metal3-io-bot metal3-io-bot merged commit 49e40eb into metal3-io:main Aug 15, 2024
17 checks passed
@metal3-io-bot metal3-io-bot deleted the mquhuy/kustomize-apply-not-dependent-on-ginkgo branch August 15, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants