Skip to content

Commit

Permalink
Include test strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisantoshgudimetla committed Jun 6, 2022
1 parent 6474174 commit 3ece3d9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions keps/sig-apps/1591-daemonset-surge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
- [Design Details](#design-details)
- [Implications to drain](#implications-to-drain)
- [Test Plan](#test-plan)
- [Prerequisite testing updates](#prerequisite-testing-updates)
- [Unit tests](#unit-tests)
- [Integration tests](#integration-tests)
- [e2e tests](#e2e-tests)
- [Graduation Criteria](#graduation-criteria)
- [Production Readiness Review Questionnaire](#production-readiness-review-questionnaire)
- [Feature Enablement and Rollback](#feature-enablement-and-rollback)
Expand Down Expand Up @@ -141,6 +145,28 @@ pod). If the old pod delays deletion, then the new pod has a chance to accept ha
* Testing should set up conflicting rules like HostPort and verify that surge fails and the correct daemonset condition is set and events are generated.
* A test should cover a pod going unready during rollout and verifying it is immediately replaced.


#### Prerequisite testing updates
[x] I/we understand the owners of the involved components may require updates to existing tests to make this code solid enough prior to committing the changes necessary to implement this enhancement.

##### Unit tests


`k8s.io/kubernetes/pkg/apis/apps/validation` `06/06/2022`: `90.6% of statements`
`k8s.io/kubernetes/pkg/apis/apps/validation/validation.go:387`: `06/06/2022`: `100.0% of statements`
`k8s.io/kubernetes/pkg/controller/daemon`: `06/06/2022`: `70.7% of statements`
`k8s.io/kubernetes/pkg/registry/apps/daemonset`: `06/06/2022`: `31.1% of statements`
`k8s.io/kubernetes/pkg/registry/apps/daemonset/strategy.go:129`: `06/06/2022`: `100.0% of statements`

##### Integration tests

We've enough coverage in the unit and e2e tests. No new integration tests are added

##### e2e tests

An e2e test which exercises maxSurge when surge is used as update strategy is added for daemonsets.


### Graduation Criteria

This will be added as a alpha field enhancement to DaemonSets with a backward compatible default. After sufficient exposure this field would be promoted to beta, and then to GA in successive releases. The feature gate for this field will be `DaemonSetUpdateSurge`.
Expand Down

0 comments on commit 3ece3d9

Please sign in to comment.