Skip to content

Instantly share code, notes, and snippets.

@fiunchinho
Created December 3, 2018 09:44
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/f53e16bc8c9cdfffed8a9275bd288447 to your computer and use it in GitHub Desktop.
Save fiunchinho/f53e16bc8c9cdfffed8a9275bd288447 to your computer and use it in GitHub Desktop.
Dependency injection
func NewIamRoleAnnotator(k8sCli kubernetes.Interface, awsAccountID string, logger Logger) *IamRoleAnnotator {
return &IamRoleAnnotator{
client: k8sCli,
awsAccountID: awsAccountID,
logger: logger,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment