mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
replicaset fix typo
This commit is contained in:
parent
744455c69d
commit
2eab9cfb68
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user