-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add External ID parameter to AWS converter #57
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution Ryan.
This looks great, but would you be willing to tweak the doc example and add an extra assert to the unit test?
assertThat("credential scope is mapped correctly", credential.getScope(), is(CredentialsScope.GLOBAL)); | ||
assertThat("credential accessKey is mapped correctly", credential.getAccessKey(), is(accessKey)); | ||
assertThat("credential secretKey is mapped correctly", credential.getSecretKey().getPlainText(), is(secretKey)); | ||
assertThat("credential iamRoleArn is mapped correctly", credential.getIamRoleArn(), is(iamRoleArn)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should you add a check that the external id check
is null
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jtnord can you elaborate or add an example? None of the other missing item validations are explicitely checking if that value is null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,17 @@ | |||
apiVersion: v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't referenced from the examples page (or elsewhere?
Could you update the existing Aws example with some sommebts for optionality of the fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand. Do you mean that I should add a reference within the examples README?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes these docs/ will not be visible I documentation unless you reference them somewhere.
https://github.com/jenkinsci/kubernetes-credentials-provider-plugin/blob/master/docs/examples/README.md#aws-credentials
@rdonahoe-placed do you plan to address the build failure (compilation issue)?
|
certain credential plugins, like the credential-binding plugin, require that the externalID be specified when using IAM Roles and the aws credential type.
This will add the ability to optionally add iamExternalId in the same way that iamRoleArn is added