-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
The existing logic in DynamicPVCWorkspaceVolume has been moved to a separate interface DynamicPVC, so that it can be shared with the new DynamicPVCVolume implementation.
04f1c6d
to
fc09d5c
Compare
* help-mountPath.html * help-subPath.html
src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplateBuilder.java
Outdated
Show resolved
Hide resolved
...rces/org/csanchez/jenkins/plugins/kubernetes/volumes/DynamicPVCVolume/help-requestsSize.html
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes/PodVolume.java
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes/PodVolume.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes/PodVolume.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes/PodVolume.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes/DynamicPVCVolume.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes/DynamicPVC.java
Outdated
Show resolved
Hide resolved
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.
Looks good
Co-authored-by: Antonio Muniz <amuniz@users.noreply.github.com>
.withNewMetadata() | ||
.withName("pvc-" + podMetaData.getName()) | ||
.withOwnerReferences(ownerReference) | ||
.withLabels(DEFAULT_POD_LABELS) |
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.
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. 😢
The existing logic in DynamicPVCWorkspaceVolume has been moved to a
separate interface DynamicPVC, so that it can be shared with the new
DynamicPVCVolume implementation.
KubernetesPipelineTest#dynamicPVC
as it was ambiguous with the new use caseKubernetesPipelineTest#dynamicPVCVolume
test