Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Update to k8s client 0.23.5
Browse files Browse the repository at this point in the history
Update ReadinessProbe
Include all auth plugins
Update vendor
Load all auth plugins in factory
  • Loading branch information
Gyorgy Nadaban committed Apr 1, 2022
1 parent ffcc953 commit ad4506f
Show file tree
Hide file tree
Showing 743 changed files with 78,319 additions and 20,423 deletions.
12 changes: 6 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ require (
github.com/pkg/errors v0.9.1
github.com/serialx/hashring v0.0.0-20190422032157-8b2912629002
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
google.golang.org/grpc v1.39.0
k8s.io/api v0.22.4
k8s.io/apimachinery v0.22.4
k8s.io/cli-runtime v0.22.4
k8s.io/client-go v0.22.4
k8s.io/api v0.23.5
k8s.io/apimachinery v0.23.5
k8s.io/cli-runtime v0.23.5
k8s.io/client-go v0.23.5
)

replace github.com/jaguilar/vt100 => github.com/tonistiigi/vt100 v0.0.0-20190402012908-ad4c4a574305
Expand Down
231 changes: 187 additions & 44 deletions go.sum

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions integration/common/kubeclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import (
corev1 "k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

// Load all auth plugins
_ "k8s.io/client-go/plugin/pkg/client/auth"
)

// GetKubeClientset retrieves the clientset and namespace
Expand Down
4 changes: 3 additions & 1 deletion pkg/driver/kubernetes/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import (
"github.com/vmware-tanzu/buildkit-cli-for-kubectl/pkg/driver/kubernetes/podchooser"
"github.com/vmware-tanzu/buildkit-cli-for-kubectl/version"
"k8s.io/client-go/kubernetes"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // register GCP auth provider

// Load all auth plugins
_ "k8s.io/client-go/plugin/pkg/client/auth"
)

const prioritySupported = 40
Expand Down
2 changes: 1 addition & 1 deletion pkg/driver/kubernetes/manifest/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func NewDeployment(opt *DeploymentOpt) (*appsv1.Deployment, error) {
Privileged: &privileged,
},
ReadinessProbe: &corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
Exec: &corev1.ExecAction{
Command: []string{"buildctl", "debug", "workers"},
},
Expand Down
3 changes: 2 additions & 1 deletion vendor/cloud.google.com/go/compute/metadata/metadata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions vendor/github.com/Azure/go-autorest/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad4506f

Please sign in to comment.