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

Rename spec.canaryAnalysis to spec.analysis #463

Merged
merged 7 commits into from
Feb 28, 2020
Merged

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Feb 28, 2020

Changes:

  • add analysis field to Canary API
  • deprecate canaryAnalysis filed (to be removed in the next API version)
  • maintain backwards compatibility with v1alpha3 by using spec.canaryAnalysis if spec.analysis is nil
  • set analysis threshold default value to 1
  • crd: rename spec.canaryAnalysis to spec.analysis
  • crd: required fields spec.analysis.interval and spec.analysis.threshold
  • e2e: update tests to v1beta1 and rename spec.canaryAnalysis to spec.analysis

Upgrade from v1alpha3 to v1beta1:

  • apply v1beta1 CRDs
  • upgrade Flagger
  • replace apiVersion: flagger.app/v1alpha3 with apiVersion: flagger.app/v1beta1
  • replace spec.canaryAnalysis with spec.analysis
  • apply all canary definitions on the cluster

Followup #457

  • update docs and tutorials to v1beta1
  • add upgrade guide to docs

- add analysis field to Canary spec
- deprecate canaryAnalysis filed (to be removed in the next API version)
- maintain backwards compatibility with v1alpha3 by using spec.canaryAnalysis if spec.analysis is nil
- set analysis threshold default value to 1
- rename spec.canaryAnalysis to spec.analysis
- required fields: spec.analysis.interval and spec.analysis.threshold
- set Canary API version to flagger.app/v1beta1
- rename canaryAnalysis to analysis
@@ -1,5 +1,25 @@
package controller

import (
"fmt"
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: shoud we execute goimports?

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, I've added goimports to CI so PRs will fail from now on if imports are not properly formatted.

Thanks for the suggestion

@stefanprodan stefanprodan merged commit 793e998 into master Feb 28, 2020
@stefanprodan stefanprodan deleted the analysis-v1beta1 branch February 28, 2020 11:18
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.

2 participants