Skip to content

Change deprecated v1beta1 CRD to v1#1258

Closed
bitodt wants to merge 4 commits into
kubeflow:masterfrom
bitodt:master
Closed

Change deprecated v1beta1 CRD to v1#1258
bitodt wants to merge 4 commits into
kubeflow:masterfrom
bitodt:master

Conversation

@bitodt

@bitodt bitodt commented May 13, 2021

Copy link
Copy Markdown

As per helm3's warning:
apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition

@google-cla

google-cla Bot commented May 13, 2021

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@bitodt

bitodt commented May 13, 2021

Copy link
Copy Markdown
Author

@googlebot I signed it!

@bitodt bitodt changed the title change deprecated v1beta1 CRD to v1 Change deprecated v1beta1 CRD to v1 May 13, 2021

@liyinan926 liyinan926 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. Can we bump the chart verson?

@liyinan926

Copy link
Copy Markdown
Collaborator

@orfeas0 could you please bump up the chart version in this PR? Thanks!

@bitodt

bitodt commented May 19, 2021

Copy link
Copy Markdown
Author

@orfeas0 could you please bump up the chart version in this PR? Thanks!

Bumped version, but not appVersion. Is this ok?

Comment thread charts/spark-operator-chart/Chart.yaml Outdated
@liyinan926

Copy link
Copy Markdown
Collaborator

Can you resolve the conflict?

@liyinan926

Copy link
Copy Markdown
Collaborator

Looks like the chart integration test failed with the following message:

Error: failed to install CRD crds/sparkoperator.k8s.io_scheduledsparkapplications.yaml: CustomResourceDefinition.apiextensions.k8s.io "scheduledsparkapplications.sparkoperator.k8s.io" is invalid: [spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required, metadata.annotations[api-approved.kubernetes.io]: Required value: protected groups must have approval annotation "api-approved.kubernetes.io", see https://github.com/kubernetes/enhancements/pull/1111]

@bitodt

bitodt commented Jun 2, 2021

Copy link
Copy Markdown
Author

I don't get the test fail, is it because I'm missing permissions?
What's the process?

@sharkymcdongles

sharkymcdongles commented Jun 8, 2021

Copy link
Copy Markdown

I don't get the test fail, is it because I'm missing permissions?
What's the process?

@orfeas0 @liyinan926

Seems you need to have a PR in kubernetes GitHub then once you have approval you add this annotation:

metadata:
  annotations:
    "api-approved.kubernetes.io": "https://github.com/kubernetes/kubernetes/pull/PRNUMBER"

I think this is only due to the fact the sparkoperator team used a protected internal URL spec for the CRD spec with:

sparkoperator.k8s.io

If it was just:

sparkoperator.spark.io

then you'd need no such annotation.

So I suppose best idea is to submit a PR or an issue on kubernetes repo and ask them how to proceed. I'll be rooting for you because I need this, but I am not part of the project so not my place to make such a request externally.

@zevisert

Copy link
Copy Markdown
Contributor

I think this is superceded by #1298 and can be closed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants