-
Notifications
You must be signed in to change notification settings - Fork 75
K8SPG-864: add sidecarPVCs and sidecarVolumes
#1394
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
Changes from 15 commits
d56fcaf
ca506c1
c4be734
fb1cad2
57a2553
2190767
de3bcda
d26ddd8
93c1b32
b10f5da
772b800
cbc67f5
608e287
e9e6a8d
2e66a7e
4866e97
f692de7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1257,6 +1257,20 @@ func (r *Reconciler) reconcileInstance( | |
| } | ||
| } | ||
|
|
||
| // K8SPG-864 | ||
| if cluster.CompareVersion("2.9.0") >= 0 { | ||
| for _, v := range spec.SidecarPVCs { | ||
| instance.Spec.Template.Spec.Volumes = append(instance.Spec.Template.Spec.Volumes, corev1.Volume{ | ||
| Name: v.Name, | ||
| VolumeSource: corev1.VolumeSource{ | ||
| PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{ | ||
| ClaimName: v.Name, | ||
| }, | ||
| }, | ||
| }) | ||
| } | ||
| } | ||
|
Comment on lines
+1261
to
+1272
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this mean that users can only add sidecar PVCs while creating clusters? i guess we had the same limitation in other operators.
pooknull marked this conversation as resolved.
|
||
|
|
||
| if err == nil { | ||
| err = errors.WithStack(r.apply(ctx, instance)) | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.