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 API version for operator.yaml #1016

Merged
merged 3 commits into from
Nov 1, 2019
Merged

Add API version for operator.yaml #1016

merged 3 commits into from
Nov 1, 2019

Conversation

alenkacz
Copy link
Contributor

What this PR does / why we need it:
This adds api version field to the operator.yaml. While working on this PR I made the following decisions (which could still be changed/discussed):

  • api version is optional field
  • we default to the current api version
  • we share api version with the server side
  • we throw an error when other API version than supported is provided

If we have more API versions we'll need to add more robust handling.

Fixes #1012

@gerred
Copy link
Member

gerred commented Oct 31, 2019

wdyt about promoting operator.yaml to v1beta1 @alenkacz ? we're a little more stable in that sense than alpha I think.

@alenkacz
Copy link
Contributor Author

@gerred updated

@gerred
Copy link
Member

gerred commented Oct 31, 2019

lgtm other than the tests :D

@@ -26,10 +26,10 @@ const (
operatorFileName = "operator.yaml"
templateFileNameRegex = "templates/.*.yaml"
paramsFileName = "params.yaml"
ServerAPIVersion = "kudo.dev/v1alpha1"
PackageAPIVersion = "kudo.dev/v1beta1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will be again unified when these two versions align in the next PR

@alenkacz alenkacz merged commit e73cb5b into master Nov 1, 2019
@alenkacz alenkacz deleted the av/operator-gvk branch November 1, 2019 09:04
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.

Add GVK to operator.yaml
2 participants