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

add disableInheritance for Spaces and SpaceRequests #386

Conversation

mmulholla
Copy link
Contributor

@mmulholla mmulholla commented Nov 7, 2023

Description

Add disableInheritance flag to Space and SpaceRequest
see: https://issues.redhat.com/browse/ASC-428

Checks

  1. Did you run make generate target? yes/no

  2. Did make generate change anything in other projects (host-operator, member-operator)? yes

  3. In case of new CRD, did you the following? no

  4. In case other projects are changed, please provides PR links.

Copy link
Contributor

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

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

The PR looks good but please create separate PR for the host operator repo just to update the CRD.
This is how we usually introduce API changes:

  • Change the API and generate the CRDs in the corresponding operator repos locally.
  • Create an API PR and PRs for the corresponding operators repos with the updated CRDs.
  • Get all of those PRs merged.
  • Now you can create PRs which actually use the new API.
    See an example of the first step here: Create webhook secret #385

@mmulholla
Copy link
Contributor Author

PR codeready-toolchain/host-operator#927 created with just results from make generate.

@mmulholla
Copy link
Contributor Author

also one for member-operator: codeready-toolchain/member-operator#500

@alexeykazakov alexeykazakov self-requested a review November 8, 2023 19:58
Copy link
Contributor

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

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

Are you sure there is no changes in api/v1alpha1/zz_generated.deepcopy.go when you do make generate?

Copy link
Contributor

@mfrancisc mfrancisc left a comment

Choose a reason for hiding this comment

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

Looks good 👍

As Alexey mentioned you should have changes to api/v1alpha1/zz_generated.openapi.go , I just double checked locally.

@mmulholla mmulholla force-pushed the addDisableInheritanceForSpaces branch 2 times, most recently from 440bb36 to ea1ae26 Compare November 9, 2023 18:30
Copy link

sonarcloud bot commented Nov 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mmulholla
Copy link
Contributor Author

I have added the file. Thx for the heads-up.

Copy link
Contributor

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

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

Looks good now. Thanks!

@mmulholla
Copy link
Contributor Author

Are you sure there is no changes in api/v1alpha1/zz_generated.deepcopy.go when you do make generate?

Sure

@alexeykazakov alexeykazakov merged commit 430f79b into codeready-toolchain:master Nov 10, 2023
4 checks passed
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.

4 participants