Skip to content

Fix for Improve DPA additionalPrinterColumns #1659#1668

Closed
hariprakash619 wants to merge 35 commits into
openshift:masterfrom
hariprakash619:master
Closed

Fix for Improve DPA additionalPrinterColumns #1659#1668
hariprakash619 wants to merge 35 commits into
openshift:masterfrom
hariprakash619:master

Conversation

@hariprakash619
Copy link
Copy Markdown
Contributor

@hariprakash619 hariprakash619 commented Mar 15, 2025

Why the changes were made

Fix OADP-1659

Notes:
Replaced
// +kubebuilder:printcolumn:name="Reconciled",type="string",JSONPath=".status.conditions[0].status",description="DataProtectionApplication Reconciled status"
with
// +kubebuilder:printcolumn:name="Reconciled",type="string",JSONPath=".status.conditions[?(@.type=='Reconciled')].status",description="DataProtectionApplication Reconciled status"

Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
@openshift-ci openshift-ci Bot requested review from mrnold and sseago March 15, 2025 05:52
@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 15, 2025
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Mar 15, 2025

Hi @hariprakash619. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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-sigs/prow repository.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks @hariprakash619

This needs to be also changed in YAML files. Those files are generated, you can regenerate them with make bundle command

After running it, you can confirm everything is right by running make test command (our CI also runs it)

Could you update PR after running make bundle command?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hello @mateusoliveira43 ,
Thank you for the guidance. I am updated the PR after running make bundle which updated the corresponding .yaml file.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

make bundle command should have also updated bundle/manifests/oadp.openshift.io_dataprotectionapplications.yaml file (and the changes to config/crd/bases/oadp.openshift.io_dataprotectionapplications.yaml should have been minimal). In which OS are you?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

macOS, Apple M2, version : Sonoma 15.3.1 (24D70).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I am on Linux

@shubham-pampattiwar @kaovilai can you kelp here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@hariprakash619 Once you made changes to the go file, Did you run ?: (in the given sequence)

  • make generate
  • make manifests
  • make bundle

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hello @shubham-pampattiwar ,
I created a new folder and set up the git clone again and tried to run the above commands without the newly added changes(JSONPath=".status.conditions[?(@.type=='Reconciled')].status").
I am facing few errors as per the terminal log.
terminal_log.txt

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you might have to increase your resources for your system's docker runtime. Error 137 implies OOM.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you!

@openshift-merge-robot openshift-merge-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Mar 17, 2025
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Mar 19, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: hariprakash619

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

Details 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

@kaovilai
Copy link
Copy Markdown
Member

Tried to help, ended up pushing wrong branch so now this PR has no changes and I guess considered no longer a PR branch I can push to as a maintainer.
image

Reopened under #1674

@kaovilai kaovilai closed this Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve DPA additionalPrinterColumns

5 participants