Merge pull request #49619 from jianglingxia/jlx72616

Automatic merge from submit-queue (batch tested with PRs 49619, 49598, 47267, 49597, 49638)

replicaset fix typo

**What this PR does / why we need it**:
reopen #47821
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:
@NickrenREN 
**Release note**:

```release-note
   NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-07-28 05:08:01 -07:00 committed by GitHub
commit 07d7ac78a3

View File

@ -139,8 +139,7 @@ func NewReplicaSetCondition(condType extensions.ReplicaSetConditionType, status
// GetCondition returns a replicaset condition with the provided type if it exists.
func GetCondition(status extensions.ReplicaSetStatus, condType extensions.ReplicaSetConditionType) *extensions.ReplicaSetCondition {
for i := range status.Conditions {
c := status.Conditions[i]
for _, c := range status.Conditions {
if c.Type == condType {
return &c
}