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 Initial Experiment Step #165

Merged
merged 2 commits into from
Sep 27, 2019
Merged

Add Initial Experiment Step #165

merged 2 commits into from
Sep 27, 2019

Conversation

dthomson25
Copy link
Member

No description provided.

@dthomson25
Copy link
Member Author

Initial PR to resolve #92

@codecov
Copy link

codecov bot commented Sep 24, 2019

Codecov Report

Merging #165 into master will increase coverage by 0.7%.
The diff coverage is 89.26%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #165     +/-   ##
=========================================
+ Coverage   82.13%   82.83%   +0.7%     
=========================================
  Files          26       27      +1     
  Lines        2418     2587    +169     
=========================================
+ Hits         1986     2143    +157     
- Misses        312      316      +4     
- Partials      120      128      +8
Impacted Files Coverage Δ
utils/replicaset/canary.go 67.91% <100%> (+2.31%) ⬆️
utils/conditions/experiments.go 96.49% <100%> (+0.06%) ⬆️
experiments/replicaset.go 73.87% <100%> (-0.47%) ⬇️
utils/conditions/conditions.go 89.07% <100%> (+0.9%) ⬆️
rollout/replicaset.go 75% <100%> (ø) ⬆️
rollout/controller.go 66.4% <100%> (+0.27%) ⬆️
rollout/bluegreen.go 78.94% <100%> (ø) ⬆️
utils/experiment/experiment.go 100% <100%> (ø) ⬆️
experiments/controller.go 65.04% <57.14%> (+4.85%) ⬆️
rollout/sync.go 77.6% <77.77%> (+0.27%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b9c5957...23f51ec. Read the comment docs.

Copy link
Member

@jessesuen jessesuen left a comment

Choose a reason for hiding this comment

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

Minor comments about struct names.

@@ -144,6 +144,48 @@ type CanaryStrategy struct {
MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty"`
}

// RolloutCanaryExperimentStep defines a template that is used to create a experiment for a step
type RolloutCanaryExperimentStep struct {
Copy link
Member

Choose a reason for hiding this comment

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

I can imagine a future where ExperimentStep is not just being done as part of Canary, but BlueGreen. May want to name this just RolloutExperimentStep to not box ourselves.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

}

//RolloutExperimentAdditionalMetadata extra labels to add to the template
type RolloutExperimentAdditionalMetadata struct {
Copy link
Member

Choose a reason for hiding this comment

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

How about: PodTemplateMetadata. I would make clear that this metadata will go into the labels/annotations of the actual pod

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@dthomson25 dthomson25 merged commit 6cf4f21 into master Sep 27, 2019
@dthomson25 dthomson25 deleted the add-exp-step branch September 27, 2019 22:26
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