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

CCXDEV-14850: insights add storage spec #2200

Conversation

opokornyy
Copy link
Contributor

@opokornyy opokornyy commented Feb 12, 2025

This PR adds fields to the DataGather and InsightsDataGather CRDs, allowing users to specify the Persistent Volume spec for on-demand gathering jobs.

Copy link
Contributor

openshift-ci bot commented Feb 12, 2025

Hello @opokornyy! Some important instructions when contributing to openshift/api:
API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 12, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 12, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 12, 2025

@opokornyy: This pull request references CCXDEV-14850 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set.

In response to this:

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from bparees and deads2k February 12, 2025 13:58
@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 12, 2025

@opokornyy: This pull request references CCXDEV-14850 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set.

In response to this:

This PR adds fields to the DataGather and InsightsDataGather CRDs, allowing users to specify the Persistent Volume spec for on-demand gathering jobs.

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 openshift-eng/jira-lifecycle-plugin repository.

@opokornyy opokornyy force-pushed the CCXDEV-14850-dataGather-storageSpec branch from 85b9fa1 to fd752c0 Compare February 13, 2025 15:17
Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

One additional comment after looking over the most recent changes. Other than that I think this looks good.

@opokornyy opokornyy force-pushed the CCXDEV-14850-dataGather-storageSpec branch from fd752c0 to 6fece25 Compare February 17, 2025 09:48
@openshift-ci openshift-ci bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 17, 2025
@opokornyy
Copy link
Contributor Author

One additional comment after looking over the most recent changes. Other than that I think this looks good.

What should I do about the error in tests? It adds a new required field, but it is wrapped in an optional struct, so IMO it should be fine right?

ERROR: NoNewRequiredFields: crd/datagathers.insights.openshift.io version/v1alpha1 field/^.spec.storageSpec.persistentVolumeClaimName is new and may not be required

@everettraven
Copy link
Contributor

One additional comment after looking over the most recent changes. Other than that I think this looks good.

What should I do about the error in tests? It adds a new required field, but it is wrapped in an optional struct, so IMO it should be fine right?

ERROR: NoNewRequiredFields: crd/datagathers.insights.openshift.io version/v1alpha1 field/^.spec.storageSpec.persistentVolumeClaimName is new and may not be required

Looking at the failure, it looks like this check is safe to override. I don't have permissions to do this, so it'll be up to Joel to do that when he gives a review.

@opokornyy opokornyy force-pushed the CCXDEV-14850-dataGather-storageSpec branch 2 times, most recently from d0106ae to 0a44668 Compare February 18, 2025 07:12
@opokornyy opokornyy force-pushed the CCXDEV-14850-dataGather-storageSpec branch 6 times, most recently from 345e3b1 to 9faae6b Compare February 19, 2025 17:09
@opokornyy opokornyy force-pushed the CCXDEV-14850-dataGather-storageSpec branch from 5e680a5 to a8e3dca Compare February 28, 2025 10:49
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 28, 2025
Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

Apologies for missing it, but I had totally missed the validation changes to insights/v1alpha1/types_insights.go until now.

Aside from the one comment on the config/v1alpha1 changes those look good to me.

@opokornyy opokornyy force-pushed the CCXDEV-14850-dataGather-storageSpec branch 2 times, most recently from 0832c9f to b14ab02 Compare March 3, 2025 09:08
Signed-off-by: Ondrej Pokorny <[email protected]>
@opokornyy opokornyy force-pushed the CCXDEV-14850-dataGather-storageSpec branch from b14ab02 to 7644f6c Compare March 3, 2025 09:30
Signed-off-by: Ondrej Pokorny <[email protected]>
Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

A couple small things. Other than that, this looks good. Will give approval after they are addressed.

Copy link
Contributor

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

If you can please apply the suggestions and copy them over to the other version of the API too, then I think this is good to go, thanks

Signed-off-by: Ondrej Pokorny <[email protected]>
@opokornyy opokornyy force-pushed the CCXDEV-14850-dataGather-storageSpec branch from 8316b1e to c65ff8d Compare March 5, 2025 08:02
@JoelSpeed
Copy link
Contributor

/override ci/prow/verify-crd-schema

False positives. The required fields it's indicating are within an optional parent struct and therefore are not actually newly required

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 5, 2025
Copy link
Contributor

openshift-ci bot commented Mar 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: everettraven, JoelSpeed, opokornyy

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 5, 2025
Copy link
Contributor

openshift-ci bot commented Mar 5, 2025

@JoelSpeed: Overrode contexts on behalf of JoelSpeed: ci/prow/verify-crd-schema

In response to this:

/override ci/prow/verify-crd-schema

False positives. The required fields it's indicating are within an optional parent struct and therefore are not actually newly required

/lgtm

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
Contributor

openshift-ci bot commented Mar 5, 2025

@opokornyy: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 529099f into openshift:master Mar 5, 2025
12 checks passed
@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

Distgit: ose-cluster-config-api
This PR has been included in build ose-cluster-config-api-container-v4.19.0-202503051811.p0.g529099f.assembly.stream.el9.
All builds following this will include this PR.

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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants