Last active
January 5, 2022 15:00
-
-
Save timebertt/aedcc54163b8d9dd5bd135a93fcb812c to your computer and use it in GitHub Desktop.
Example client-go usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ( | |
ctx context.Context | |
c kubernetes.Interface // "k8s.io/client-go/kubernetes" | |
deployment *appsv1.Deployment // "k8s.io/api/apps/v1" | |
) | |
updatedDeployment, err := c.AppsV1().Deployments("default").Update(ctx, deployment, metav1.UpdateOptions{}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment