mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 20:50:24 +00:00
Add a rollingupdate lib and command to kubectl
Also decouple conditions from client for testability.
This commit is contained in:
@@ -34,6 +34,8 @@ import (
|
||||
|
||||
var apiVersionToUse = "v1beta1"
|
||||
|
||||
const kubectlAnnotationPrefix = "kubectl.kubernetes.io/"
|
||||
|
||||
func GetKubeClient(config *client.Config, matchVersion bool) (*client.Client, error) {
|
||||
// TODO: get the namespace context when kubectl ns is completed
|
||||
c, err := client.New(config)
|
||||
|
Reference in New Issue
Block a user