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

Refactor canary change detection and status #240

Merged
merged 10 commits into from
Jul 22, 2019
Merged

Refactor canary change detection and status #240

merged 10 commits into from
Jul 22, 2019

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Jul 10, 2019

Breaking changes: due to the status sub-resource changes, when upgrading Flagger the canaries status phase will be reset to Initialized

Use the pod template spec hash to track changes (breaking)
Add Promoted status condition with the following reasons: Initialized, Progressing, Succeeded, Failed
Usage: `kubectl wait canary/app --for=condition=promoted`
Fix: #184
Fix HPA reconciliation min replicas diff
Save the primary spec hash and check if it matches the canary spec. If the canary hash is identical with the primary one skip promotion.
@stefanprodan stefanprodan merged commit d2cbd40 into master Jul 22, 2019
@stefanprodan stefanprodan deleted the refactor branch July 22, 2019 11:33
@stefanprodan stefanprodan mentioned this pull request Jul 26, 2019
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.

Increase scope of canary deployment revision check Support status conditions
1 participant