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

remove status field from generated yaml #1739

Closed
wants to merge 3 commits into from

Conversation

shubhindia
Copy link
Contributor

@shubhindia shubhindia commented Oct 17, 2023

/kind feature

What type of PR is this?

Whenever the k8s yamls are generated, since status field is part of APIs, it is being added in the generated yamls, which is fine but should not be there since the objects are not applied yet.

What this PR does / why we need it:

This just adds a simple hack to remove the status field from generated yamls

Which issue(s) this PR fixes:

Fixes #975

Signed-off-by: shubhindia <shubhindia123@gmail.com>
@k8s-ci-robot
Copy link
Contributor

@shubhindia: The label(s) kind/fix cannot be applied, because the repository doesn't have them.

In response to this:

/kind fix

What type of PR is this?

Whenever the k8s yamls are generated, since status field is part of APIs, it is being added in the generated yamls, which is fine but should not be there since the objects are not applied yet.

What this PR does / why we need it:

This just adds a simple hack to remove the status field from generated yamls

Which issue(s) this PR fixes:

Fixes #975

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 17, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: shubhindia
Once this PR has been reviewed and has the lgtm label, please assign ahmedgrati for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@k8s-ci-robot
Copy link
Contributor

Welcome @shubhindia!

It looks like this is your first PR to kubernetes/kompose 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/kompose has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 17, 2023
Signed-off-by: shubhindia <shubhindia123@gmail.com>
Copy link
Contributor

@AhmedGrati AhmedGrati left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @shubhindia. I think removing the status should be okay, as it is not really needed. However, You should change the manifests in the e2e tests accordingly in order for the e2e tests to pass successfully. wdyt @cdrage?

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 24, 2023
@shubhindia shubhindia force-pushed the fix/drop-status-field branch 2 times, most recently from f1aa3f8 to 0a4dab5 Compare October 24, 2023 13:04
Signed-off-by: shubhindia <shubhindia123@gmail.com>
@cdrage
Copy link
Member

cdrage commented Oct 24, 2023

Thanks for the PR @shubhindia. I think removing the status should be okay, as it is not really needed. However, You should change the manifests in the e2e tests accordingly in order for the e2e tests to pass successfully. wdyt @cdrage?

Yup! Fix the tests please and we can merge this in. I agree that we do not need status in the output.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 28, 2023
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@AhmedGrati
Copy link
Contributor

ping @shubhindia

@shubhindia
Copy link
Contributor Author

Acknowledged @AhmedGrati . Will push the changes by Monday.

@shubhindia shubhindia closed this Oct 29, 2023
@shubhindia shubhindia deleted the fix/drop-status-field branch October 29, 2023 06:40
@shubhindia
Copy link
Contributor Author

closed in favour of #1746

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove status field in the generated yaml
4 participants