Skip to content
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

Merged
merged 4 commits into from
Dec 20, 2023
Merged

feat: add storage module #131

merged 4 commits into from
Dec 20, 2023

Conversation

lemeurherve
Copy link
Member

This PR adds a module to create a service principal to manipulate Azure File Shares.

Ref:

@lemeurherve lemeurherve force-pushed the helpdesk3414-sp-for-file-shares branch from b76f9d3 to 28bfdfc Compare December 19, 2023 10:40
Copy link
Contributor

@dduportal dduportal left a 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")

@lemeurherve
Copy link
Member Author

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

Copy link
Contributor

@dduportal dduportal left a 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" {
Copy link
Contributor

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?

Suggested change
variable "storage_service_principal_ids" {
variable "storage_active_directory_application_owners" {

Copy link
Member Author

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.

terraform/modules/azure-jenkinsinfra-storage/variables.tf Outdated Show resolved Hide resolved
terraform/modules/azure-jenkinsinfra-storage/variables.tf Outdated Show resolved Hide resolved
Copy link
Contributor

@smerle33 smerle33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@lemeurherve
Copy link
Member Author

Merging to continue, will do another PR if names need more adjustments.

@lemeurherve lemeurherve merged commit 90669ab into main Dec 20, 2023
3 checks passed
@lemeurherve lemeurherve deleted the helpdesk3414-sp-for-file-shares branch December 20, 2023 10:39
lemeurherve added a commit to jenkins-infra/azure that referenced this pull request Dec 20, 2023
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants