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

Package type validation #2875

Merged
merged 2 commits into from
Sep 19, 2023
Merged

Conversation

danail-branekov
Copy link
Member

Is there a related GitHub Issue?

#2797

What is this change about?

Error when package type does not match app type

  • Check that the package type matches the app type when creating the
    package via the API
  • Do not error on package type and app lifecycle type mismatch when
    creating the CFPackage with kubectl. This is to ensure that kubectl
    users can create CFPackages that reference apps that do not yet exist
  • Do not allow changing the package type
  • Fail the CFBuild if CFPackage type and CFApp lifecycle type mismatch.
    This way kubectl users would in the end get the mismatch error.

Does this PR introduce a breaking change?

No

Acceptance Steps

See story

Tag your pair, your PM, and/or team

@georgethebeatle

Copy link
Member

@julian-hj julian-hj left a comment

Choose a reason for hiding this comment

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

LGTM

danail-branekov and others added 2 commits September 19, 2023 11:34
to match the one on CF for VMs

Co-authored-by: Danail Branekov <[email protected]>
* Check that the package type matches the app type when creating the
  package via the API
* Do not error on package type and app lifecycle type mismatch when
  creating the CFPackage with kubectl. This is to ensure that kubectl
  users can create CFPackages that reference apps that do not yet exist
* Do not allow changing the package type
* Fail the CFBuild if CFPackage type and CFApp lifecycle type mismatch.
  This way kubectl users would in the end get the mismatch error.

fixes #2797

Co-authored-by: Danail Branekov <[email protected]>
Co-authored-by: Georgi Sabev <[email protected]>
Co-authored-by: Danail Branekov <[email protected]>
@danail-branekov danail-branekov force-pushed the issues/2797-package-type-validation-2 branch from bc0ec92 to e9a8881 Compare September 19, 2023 08:34
@danail-branekov danail-branekov merged commit 2fef88f into main Sep 19, 2023
7 checks passed
@danail-branekov danail-branekov deleted the issues/2797-package-type-validation-2 branch September 19, 2023 10:51
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.

3 participants