Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update Kubernetes v1.18.3 dependencies (#1529)
Signed-off-by: 1gtm <1gtm@appscode.com>
  • Loading branch information
1gtm committed Aug 8, 2020
1 parent 3e85fce commit 6a43e6c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -63,7 +63,7 @@ require (
k8s.io/client-go v12.0.0+incompatible
k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6
k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89
kmodules.xyz/client-go v0.0.0-20200807031423-96aa0172979c
kmodules.xyz/client-go v0.0.0-20200807163543-64a96054c515
kmodules.xyz/crd-schema-fuzz v0.0.0-20200521005638-2433a187de95
kmodules.xyz/monitoring-agent-api v0.0.0-20200525002655-2aa50cb10ce9
kmodules.xyz/webhook-runtime v0.0.0-20200522123600-ca70a7e28ed0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -1264,8 +1264,8 @@ kmodules.xyz/client-go v0.0.0-20200521065424-173e32c78a20/go.mod h1:sY/eoe4ktxZE
kmodules.xyz/client-go v0.0.0-20200522120609-c6430d66212f/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY=
kmodules.xyz/client-go v0.0.0-20200524205059-e986bc44c91b h1:2ylkWuybCgj1FzQ62BdonjACgXQ2jm3FEf0crrnKTns=
kmodules.xyz/client-go v0.0.0-20200524205059-e986bc44c91b/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY=
kmodules.xyz/client-go v0.0.0-20200807031423-96aa0172979c h1:L2S0IoDmESgIs72MKfY2Sb3xjOw1oOrrzgrtzNKcSBg=
kmodules.xyz/client-go v0.0.0-20200807031423-96aa0172979c/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY=
kmodules.xyz/client-go v0.0.0-20200807163543-64a96054c515 h1:ABNbxlL5xFFRCEGOhQ6xXSIE13dPXyfX2Ht0Madp5jE=
kmodules.xyz/client-go v0.0.0-20200807163543-64a96054c515/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY=
kmodules.xyz/crd-schema-fuzz v0.0.0-20200521005638-2433a187de95 h1:v0S/+ftzL6Xrs9XevgchAOJyPKlRQXPiZf87xotj3X4=
kmodules.xyz/crd-schema-fuzz v0.0.0-20200521005638-2433a187de95/go.mod h1:jpu8xFsDKd6kAWUAKk8oTu/GQGBWqhrcaDeOJdaCJnk=
kmodules.xyz/monitoring-agent-api v0.0.0-20200525002655-2aa50cb10ce9 h1:YO0dKXGLCSNXH5Mp43bqFW5psaA4WPiQyB/fIzzm1KQ=
Expand Down
17 changes: 17 additions & 0 deletions vendor/kmodules.xyz/client-go/core/v1/kubernetes.go
Expand Up @@ -300,6 +300,23 @@ func IsOwnedBy(dependent metav1.Object, owner metav1.Object) (owned bool, contro
return false, false
}

func IsOwnerOfGroupKind(ctrl *metav1.OwnerReference, group, kind string) (bool, error) {
if ctrl == nil {
return false, nil
}
gv, err := schema.ParseGroupVersion(ctrl.APIVersion)
if err != nil {
return false, err
}
if gv.Group != group {
return false, nil
}
if ctrl.Kind != kind {
return false, nil
}
return true, nil
}

func UpsertToleration(tolerations []core.Toleration, upsert core.Toleration) []core.Toleration {
for i, toleration := range tolerations {
if toleration.Key == upsert.Key {
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Expand Up @@ -1150,7 +1150,7 @@ k8s.io/utils/net
k8s.io/utils/path
k8s.io/utils/pointer
k8s.io/utils/trace
# kmodules.xyz/client-go v0.0.0-20200807031423-96aa0172979c
# kmodules.xyz/client-go v0.0.0-20200807163543-64a96054c515
kmodules.xyz/client-go
kmodules.xyz/client-go/admissionregistration/v1beta1
kmodules.xyz/client-go/apiextensions
Expand Down

0 comments on commit 6a43e6c

Please sign in to comment.