Skip to content

Instantly share code, notes, and snippets.

@fiunchinho
Created December 3, 2018 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiunchinho/e99adce57a2d676e1d39fa3653a7e78a to your computer and use it in GitHub Desktop.
Save fiunchinho/e99adce57a2d676e1d39fa3653a7e78a to your computer and use it in GitHub Desktop.
object using the client-go library directly
func (s *IamRoleAnnotator) submitChangesToKubernetesAPI(deployment *appsv1beta1.Deployment) (*appsv1beta1.Deployment, error) {
s.logger.Infof("Sending changes to k8s API")
return s.client.AppsV1beta1().Deployments(deployment.Namespace).Update(deployment)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment