Skip to content

Commit 2aa47f7

Browse files
authored
Update Kubernetes v1.18.9 dependencies (#65)
/cherry-pick Signed-off-by: 1gtm <1gtm@appscode.com>
1 parent 82b3843 commit 2aa47f7

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ require (
1616
k8s.io/client-go v0.18.9
1717
k8s.io/component-base v0.18.9
1818
k8s.io/kubectl v0.18.9
19-
kmodules.xyz/client-go v0.0.0-20201013083546-b17c1e15f1a3
19+
kmodules.xyz/client-go v0.0.0-20201021051118-03dac1aea508
2020
kmodules.xyz/custom-resources v0.0.0-20201008012351-6d8090f759d4 // indirect
2121
kmodules.xyz/objectstore-api v0.0.0-20200922210707-59bab27e5d41
2222
kmodules.xyz/offshoot-api v0.0.0-20200922211229-36acc531abab

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,8 @@ kmodules.xyz/client-go v0.0.0-20200922200830-63d86b6e5b63 h1:luKlEul8LMhyyftoZN3
988988
kmodules.xyz/client-go v0.0.0-20200922200830-63d86b6e5b63/go.mod h1:JZN34jqk6ZlR+QOnBPpnUVBab4rmfamqxfSvLaulBMY=
989989
kmodules.xyz/client-go v0.0.0-20200929030759-cce6a3c623c1 h1:wig8NVgxE5ynY6dsGduWpkF8utYHU1RjepncNbaStNw=
990990
kmodules.xyz/client-go v0.0.0-20200929030759-cce6a3c623c1/go.mod h1:pnRh7gtJ6ErPJQBkQeRlpD95KRtxhD4eGrYagZEU8RM=
991-
kmodules.xyz/client-go v0.0.0-20201013083546-b17c1e15f1a3 h1:vP8h3s+JdqXQHhhmvoTgKZOtpraF4X1NxA/y4OFTn+I=
992-
kmodules.xyz/client-go v0.0.0-20201013083546-b17c1e15f1a3/go.mod h1:pnRh7gtJ6ErPJQBkQeRlpD95KRtxhD4eGrYagZEU8RM=
991+
kmodules.xyz/client-go v0.0.0-20201021051118-03dac1aea508 h1:LjidyEzvw1rSlwRQLWNfElleLJ6vr9Uu5tn5H6JO+QA=
992+
kmodules.xyz/client-go v0.0.0-20201021051118-03dac1aea508/go.mod h1:pnRh7gtJ6ErPJQBkQeRlpD95KRtxhD4eGrYagZEU8RM=
993993
kmodules.xyz/constants v0.0.0-20200506032633-a21e58ceec72/go.mod h1:DbiFk1bJ1KEO94t1SlAn7tzc+Zz95rSXgyUKa2nzPmY=
994994
kmodules.xyz/crd-schema-fuzz v0.0.0-20200922204806-c1426cd7fcf4/go.mod h1:WrO3fryNyFCgqqyWnwI89lnzWA7kN072Ehya7ELGfzE=
995995
kmodules.xyz/custom-resources v0.0.0-20200922210108-70f2815a43bb h1:SwMPMh6A196yoe8kAH+guTNS8rsTfB2dRbFNh6g0Znk=

vendor/kmodules.xyz/client-go/api/v1/conditions.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,11 @@ func SetCondition(conditions []Condition, newCondition Condition) []Condition {
117117
// The desired conditions is not in the condition list or is not in its desired state.
118118
// Update it if present in the condition list, or append the new condition if it does not present.
119119
newCondition.LastTransitionTime = metav1.Now()
120-
if idx != -1 {
121-
conditions[idx] = newCondition
122-
} else {
120+
if idx == -1 {
123121
conditions = append(conditions, newCondition)
122+
} else if newCondition.ObservedGeneration >= curCond.ObservedGeneration {
123+
// only update if the new condition is based on observed generation at least as updated as the current condition
124+
conditions[idx] = newCondition
124125
}
125126
return conditions
126127
}

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ k8s.io/utils/integer
548548
k8s.io/utils/io
549549
k8s.io/utils/pointer
550550
k8s.io/utils/trace
551-
# kmodules.xyz/client-go v0.0.0-20201013083546-b17c1e15f1a3
551+
# kmodules.xyz/client-go v0.0.0-20201021051118-03dac1aea508
552552
kmodules.xyz/client-go
553553
kmodules.xyz/client-go/api/v1
554554
kmodules.xyz/client-go/apiextensions

0 commit comments

Comments
 (0)