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

Trim down CRD descriptions #1735

Merged
merged 2 commits into from
Jan 21, 2023

Conversation

tenzen-y
Copy link
Member

Signed-off-by: Yuki Iwai [email protected]

Trim down CRD descriptions to avoid the following apply errors:

The CustomResourceDefinition "pytorchjobs.kubeflow.org" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged):
Fixes #

Checklist:

  • Docs included if any changes are user facing

@coveralls
Copy link

coveralls commented Jan 21, 2023

Pull Request Test Coverage Report for Build 3975627580

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.1%) to 39.364%

Files with Coverage Reduction New Missed Lines %
pkg/controller.v1/mpi/mpijob_controller.go 2 77.18%
Totals Coverage Status
Change from base Build 3971260810: 0.1%
Covered Lines: 2672
Relevant Lines: 6788

💛 - Coveralls

@tenzen-y tenzen-y mentioned this pull request Jan 21, 2023
1 task
@tenzen-y tenzen-y force-pushed the trim-down-crd-description branch 2 times, most recently from f35e5a2 to e8376d6 Compare January 21, 2023 16:22
Trim down CRD descriptions to avoid the following apply errors:

```
The CustomResourceDefinition "pytorchjobs.kubeflow.org" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
```
@tenzen-y
Copy link
Member Author

/assign @johnugeorge

Makefile Outdated
@@ -1,7 +1,7 @@
# Image URL to use all building/pushing image targets
IMG ?= kubeflow/training-operator:latest
# CRD generation options
CRD_OPTIONS ?= "crd:generateEmbeddedObjectMeta=true"
CRD_OPTIONS ?= "crd:generateEmbeddedObjectMeta=true,maxDescLen=300"
Copy link
Member Author

Choose a reason for hiding this comment

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

@johnugeorge I tried to set 300 characters. How about generated CRD descriptions?

Copy link
Member

Choose a reason for hiding this comment

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

I see that there are some minor unintended line breaks. https://github.com/kubeflow/training-operator/pull/1735/files#diff-f68a63b0953eb712985f398c6c8ae96093830f251ec4ced3865cbe46d41550b3L934 This doesn't seem to be a major concern. Good to go

Copy link
Member Author

Choose a reason for hiding this comment

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

I increased it to 400 characters. The unintended line breaks that you pointed out are resolved.

Signed-off-by: Yuki Iwai <[email protected]>
@johnugeorge
Copy link
Member

/lgtm
/approve

@google-oss-prow google-oss-prow bot added the lgtm label Jan 21, 2023
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnugeorge, tenzen-y

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

@google-oss-prow google-oss-prow bot merged commit ed33bd9 into kubeflow:master Jan 21, 2023
@tenzen-y tenzen-y deleted the trim-down-crd-description branch January 21, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants