Created
December 3, 2018 09:43
-
-
Save fiunchinho/e99adce57a2d676e1d39fa3653a7e78a to your computer and use it in GitHub Desktop.
object using the client-go library directly
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
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