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

Remove type field from stable blueprints #1011

Merged
merged 2 commits into from
Jun 14, 2021
Merged

Remove type field from stable blueprints #1011

merged 2 commits into from
Jun 14, 2021

Conversation

viveksinghggits
Copy link
Contributor

@viveksinghggits viveksinghggits commented May 27, 2021

Change Overview

Since we are upgrading the CRDs to v1 from v1beta1, and we
don't actually specify type field in our types.go we wont
have types field in the CR schema. And because of that if
we create a blueprint with types in it, the validation would
failed.

I see there would be a problem when these applications are being
called from k10, because it looks like k10 needs type for delete
action.

I still am looking into if we really need that or we can change that.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)

Issues

  • #XXX

Test Plan

Changed blueprint to remove type field from it and ran mysql integration test.

» make integration-test

the logs can be found here

I have tested the change with k10 as well, I created a blueprint without type field and then did backup and restore of application. And have tested e2e as well. The logs of e2e can be found here.https://gist.github.com/fdd0fe3032f2736e8e88376150389c48

Since we are upgrading the CRDs to `v1` from `v1beta1`, and we
don't actually specify `type` field in our `types.go` we wont
have `types` field in the CR schema. And because of that if
we create a blueprint with `types` in it, the validation would
failed.

I see there would be a problem when these applications are being
called from k10, because it looks like k10 needs type for `delete`
action.

I still am looking into if we really need that or we can change that.
@PrasadG193
Copy link
Contributor

@viveksinghggits we would still need Kind field, right?

@viveksinghggits
Copy link
Contributor Author

@viveksinghggits we would still need Kind field, right?

yes, we would need that. Did I remove that somewhere.

@mergify mergify bot merged commit 2de353a into master Jun 14, 2021
@mergify mergify bot deleted the rem-unnec-type-bp branch June 14, 2021 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants