Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Sep 10, 2023
1 parent 355f7c3 commit 51b85a1
Show file tree
Hide file tree
Showing 12 changed files with 161 additions and 4,382 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ require (
k8s.io/kube-state-metrics/v2 v2.7.0
kmodules.xyz/apiversion v0.2.0
kmodules.xyz/authorizer v0.25.1
kmodules.xyz/client-go v0.25.32
kmodules.xyz/client-go v0.25.33
kmodules.xyz/custom-resources v0.25.1
kmodules.xyz/go-containerregistry v0.0.11
kmodules.xyz/monitoring-agent-api v0.25.1
kmodules.xyz/resource-metadata v0.17.17-0.20230907085249-39d8a97135dd
kmodules.xyz/resource-metadata v0.17.17
kmodules.xyz/resource-metrics v0.25.2
kmodules.xyz/sets v0.25.0
kubeops.dev/scanner v0.0.13-0.20230610152531-83d060ed8780
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2115,8 +2115,8 @@ kmodules.xyz/apiversion v0.2.0 h1:vAQYqZFm4xu4pbB1cAdHbFEPES6EQkcR4wc06xdTOWk=
kmodules.xyz/apiversion v0.2.0/go.mod h1:oPX8g8LvlPdPX3Yc5YvCzJHQnw3YF/X4/jdW0b1am80=
kmodules.xyz/authorizer v0.25.1 h1:W19AtlPD2A1+Q4UqDmNCJKfX9bKIgj+J6bQmkYwsHwY=
kmodules.xyz/authorizer v0.25.1/go.mod h1:hKAbHpRkbxZJjc+cMTUiyxQxp7amKUVDiN145IrpnhA=
kmodules.xyz/client-go v0.25.32 h1:nHS7Pjmw79d0KI7xSuIJvAl2ZEEDkCjnYuxweAdAtb8=
kmodules.xyz/client-go v0.25.32/go.mod h1:r/Va2Y6t1G8X1sPRjrQC6FWB3oh/i6rjssmlfJnbCmg=
kmodules.xyz/client-go v0.25.33 h1:i5E88wDXFbR3ljoHCuIdjLR6Uobcb0Xc06i3UXIXJ9s=
kmodules.xyz/client-go v0.25.33/go.mod h1:r/Va2Y6t1G8X1sPRjrQC6FWB3oh/i6rjssmlfJnbCmg=
kmodules.xyz/crd-schema-fuzz v0.25.0 h1:c5ZxNRqJak1bkGhECmyrKpzKGThFMB4088Kynyvngbc=
kmodules.xyz/custom-resources v0.25.1 h1:0qHPTxbT/q0afl2GCOnwPFaoxKziRIPXgVu77YwrCa4=
kmodules.xyz/custom-resources v0.25.1/go.mod h1:ULwzvLmOqZJcPSXKI7iLclYL5eYRlKx8Nbex28Ht19E=
Expand All @@ -2126,8 +2126,8 @@ kmodules.xyz/monitoring-agent-api v0.25.1 h1:E1H8U/vMfYQ8wevmJv6Lcj0Z4DF7cH3hZ2x
kmodules.xyz/monitoring-agent-api v0.25.1/go.mod h1:IphGzRWbuV00B3TLalcBs6+IlchSZVTwKDty+J3LLz4=
kmodules.xyz/offshoot-api v0.25.0 h1:Svq9da/+sg5afOjpgo9vx2J/Lu90Mo0aFxkdQmgKnGI=
kmodules.xyz/offshoot-api v0.25.0/go.mod h1:ysEBn7LJuT3+s8ynAQA/OG0BSsJugXa6KGtDLMRjlKo=
kmodules.xyz/resource-metadata v0.17.17-0.20230907085249-39d8a97135dd h1:BgjUYFrxdsf1uH8MFSsXHWxxIhRWQr3JEU8d33Rgrpc=
kmodules.xyz/resource-metadata v0.17.17-0.20230907085249-39d8a97135dd/go.mod h1:eUV4PXbaIQv40+nwy6ss0lJuVtuz6USKNsiOQIqLVZc=
kmodules.xyz/resource-metadata v0.17.17 h1:FHMOXew32MBCgFTmSjIdpUWgA0wE63HGKViOeIKSMTo=
kmodules.xyz/resource-metadata v0.17.17/go.mod h1:1MUXA2EdOiIjBuulR0IEsFjgf8AtSL2BZlXpvoUPJvs=
kmodules.xyz/resource-metrics v0.25.2 h1:BwCb6qyunvQBa0u8UUkw+wYG5/T4qtNtAKcHjSsk0JU=
kmodules.xyz/resource-metrics v0.25.2/go.mod h1:ZK/52NLuwMk+Jt0bmUtGQHtSxPLYYpsFILG7SJhYPg0=
kmodules.xyz/sets v0.25.0 h1:belY/3trp/M/CKc1TEteA40jb2uCIdwKHhjpvrIxG+8=
Expand Down
13 changes: 10 additions & 3 deletions vendor/kmodules.xyz/client-go/tools/clientcmd/rest_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

// https://github.com/kubernetes/client-go/issues/711#issuecomment-730112049
func GenerateKubeConfiguration(cfg *rest.Config, namespace string) ([]byte, error) {
func BuildKubeConfig(cfg *rest.Config, namespace string) (*clientcmdapi.Config, error) {
if err := rest.LoadTLSFiles(cfg); err != nil {
return nil, err
}
Expand Down Expand Up @@ -62,13 +62,20 @@ func GenerateKubeConfiguration(cfg *rest.Config, namespace string) ([]byte, erro
Extensions: nil,
}

clientConfig := clientcmdapi.Config{
return &clientcmdapi.Config{
Kind: "Config",
APIVersion: "v1",
Clusters: clusters,
Contexts: contexts,
CurrentContext: "default-context",
AuthInfos: authinfos,
}, nil
}

func BuildKubeConfigBytes(cfg *rest.Config, namespace string) ([]byte, error) {
clientConfig, err := BuildKubeConfig(cfg, namespace)
if err != nil {
return nil, err
}
return runtime.Encode(clientcmdlatest.Codec, &clientConfig)
return runtime.Encode(clientcmdlatest.Codec, clientConfig)
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ metadata:
labels:
k8s.io/group: discovery.k8s.io
k8s.io/kind: EndpointSlice
k8s.io/resource: endpointslice
k8s.io/resource: endpointslices
k8s.io/version: v1
name: discovery.k8s.io-v1-endpointslice
name: discovery.k8s.io-v1-endpointslices
spec:
resource:
group: discovery.k8s.io
kind: EndpointSlice
name: endpointslice
name: endpointslices
scope: Namespaced
version: v1
validation:
Expand Down
Loading

0 comments on commit 51b85a1

Please sign in to comment.