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

[JENKINS-64006] Implement Dynamic PVC for volume pod template #1089

Merged
merged 11 commits into from
Dec 14, 2021

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Dec 9, 2021

The existing logic in DynamicPVCWorkspaceVolume has been moved to a
separate interface DynamicPVC, so that it can be shared with the new
DynamicPVCVolume implementation.

  • Renamed KubernetesPipelineTest#dynamicPVC as it was ambiguous with the new use case
  • Added KubernetesPipelineTest#dynamicPVCVolume test
  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

The existing logic in DynamicPVCWorkspaceVolume has been moved to a
separate interface DynamicPVC, so that it can be shared with the new
DynamicPVCVolume implementation.
@Vlatombe Vlatombe added the enhancement Improvements label Dec 10, 2021
Copy link

@aHenryJard aHenryJard left a comment

Choose a reason for hiding this comment

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

Looks good

Vlatombe and others added 2 commits December 14, 2021 14:08
Co-authored-by: Antonio Muniz <amuniz@users.noreply.github.com>
@Vlatombe Vlatombe requested a review from amuniz December 14, 2021 13:09
@Vlatombe Vlatombe merged commit a9a9d88 into jenkinsci:master Dec 14, 2021
@Vlatombe Vlatombe deleted the JENKINS-64006 branch December 14, 2021 14:13
.withNewMetadata()
.withName("pvc-" + podMetaData.getName())
.withOwnerReferences(ownerReference)
.withLabels(DEFAULT_POD_LABELS)

Choose a reason for hiding this comment

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

Why removed the labels here? I used the labels to distinguish PVC created by Jenkins, and found it not worked after I upgraded the plugin to the latest version. 😢

@Vlatombe Vlatombe mentioned this pull request May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants