-
-
Notifications
You must be signed in to change notification settings - Fork 3
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 storage
module
#131
Conversation
b76f9d3
to
28bfdfc
Compare
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.
Do you have a (draft) PR with code showing how do you "call" this module (the PR checks are expected to fail of course) to help in the review (while reviewing as "consumer")
Opened jenkins-infra/azure#557 |
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 is really a nice job!
I've provided a few suggestion, with one blocker.
Additionally, how do you feel about renaming the module to underline its intent?
I would expect azure-jenkinsinfra-storage
to create the file storage for me while it only sets up an Azure SP and its permissions to write to this filestorage.
WDYT about azure-jenkinsinfra-storage-serviceprincipal-writer
?
type = string | ||
} | ||
|
||
variable "storage_service_principal_ids" { |
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.
See my comment in https://github.com/jenkins-infra/azure/pull/557/files#r1431730896 which underline the poor naming I did on the controller module.
WDYT about the following name in this case to make it easier to understand?
variable "storage_service_principal_ids" { | |
variable "storage_active_directory_application_owners" { |
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've removed "application" from this variable name as it's for the owner of the service principal too, not only the app.
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.
LGTM 👍
Merging to continue, will do another PR if names need more adjustments. |
This PR uses jenkins-infra/shared-tools#131 to allow trusted.ci.jenkins.io to manipulate the File Share content of updates.jenkins.io Ref: - jenkins-infra/helpdesk#3414 (comment)
This PR adds a module to create a service principal to manipulate Azure File Shares.
Ref:
blobxfer
byazcopy
helpdesk#3414 (comment)