Skip to content

Commit

Permalink
Update Kubernetes v1.18.9 dependencies (#37)
Browse files Browse the repository at this point in the history
Signed-off-by: 1gtm <1gtm@appscode.com>
  • Loading branch information
1gtm committed Oct 21, 2020
1 parent e1893db commit 29324c0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -12,7 +12,7 @@ require (
k8s.io/client-go v0.18.9
k8s.io/component-base v0.18.9
k8s.io/kubectl v0.18.9
kmodules.xyz/client-go v0.0.0-20201013083546-b17c1e15f1a3
kmodules.xyz/client-go v0.0.0-20201021051118-03dac1aea508
kmodules.xyz/custom-resources v0.0.0-20201008012351-6d8090f759d4
kubevault.dev/operator v0.4.0-beta.0.0.20201010072813-60cfdc6820a6
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -1552,8 +1552,8 @@ kmodules.xyz/client-go v0.0.0-20200922200830-63d86b6e5b63/go.mod h1:JZN34jqk6ZlR
kmodules.xyz/client-go v0.0.0-20201007024140-3223988adf40/go.mod h1:pnRh7gtJ6ErPJQBkQeRlpD95KRtxhD4eGrYagZEU8RM=
kmodules.xyz/client-go v0.0.0-20201008164401-74d81f261ec5 h1:mGySTT2dC8u2FQDUFbDLcOt7GM+IkXqlH2xzATyddKg=
kmodules.xyz/client-go v0.0.0-20201008164401-74d81f261ec5/go.mod h1:pnRh7gtJ6ErPJQBkQeRlpD95KRtxhD4eGrYagZEU8RM=
kmodules.xyz/client-go v0.0.0-20201013083546-b17c1e15f1a3 h1:vP8h3s+JdqXQHhhmvoTgKZOtpraF4X1NxA/y4OFTn+I=
kmodules.xyz/client-go v0.0.0-20201013083546-b17c1e15f1a3/go.mod h1:pnRh7gtJ6ErPJQBkQeRlpD95KRtxhD4eGrYagZEU8RM=
kmodules.xyz/client-go v0.0.0-20201021051118-03dac1aea508 h1:LjidyEzvw1rSlwRQLWNfElleLJ6vr9Uu5tn5H6JO+QA=
kmodules.xyz/client-go v0.0.0-20201021051118-03dac1aea508/go.mod h1:pnRh7gtJ6ErPJQBkQeRlpD95KRtxhD4eGrYagZEU8RM=
kmodules.xyz/constants v0.0.0-20200506032633-a21e58ceec72/go.mod h1:DbiFk1bJ1KEO94t1SlAn7tzc+Zz95rSXgyUKa2nzPmY=
kmodules.xyz/crd-schema-fuzz v0.0.0-20200922204806-c1426cd7fcf4/go.mod h1:WrO3fryNyFCgqqyWnwI89lnzWA7kN072Ehya7ELGfzE=
kmodules.xyz/custom-resources v0.0.0-20201008012351-6d8090f759d4 h1:eftT0CrrAYK1uniwsVhheYao4mwGk+eFT9eftRX9BMo=
Expand Down
7 changes: 4 additions & 3 deletions vendor/kmodules.xyz/client-go/api/v1/conditions.go
Expand Up @@ -117,10 +117,11 @@ func SetCondition(conditions []Condition, newCondition Condition) []Condition {
// The desired conditions is not in the condition list or is not in its desired state.
// Update it if present in the condition list, or append the new condition if it does not present.
newCondition.LastTransitionTime = metav1.Now()
if idx != -1 {
conditions[idx] = newCondition
} else {
if idx == -1 {
conditions = append(conditions, newCondition)
} else if newCondition.ObservedGeneration >= curCond.ObservedGeneration {
// only update if the new condition is based on observed generation at least as updated as the current condition
conditions[idx] = newCondition
}
return conditions
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Expand Up @@ -433,7 +433,7 @@ k8s.io/kubectl/pkg/validation
k8s.io/utils/exec
k8s.io/utils/integer
k8s.io/utils/pointer
# kmodules.xyz/client-go v0.0.0-20201013083546-b17c1e15f1a3
# kmodules.xyz/client-go v0.0.0-20201021051118-03dac1aea508
## explicit
kmodules.xyz/client-go
kmodules.xyz/client-go/api/v1
Expand Down

0 comments on commit 29324c0

Please sign in to comment.