-
Notifications
You must be signed in to change notification settings - Fork 999
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
Add SubPathExpr option for additionalVolumes #2463
Conversation
|
Hey @hughcapet, |
👍 |
pkg/cluster/k8sres.go
Outdated
Name: additionalVolume.Name, | ||
MountPath: additionalVolume.MountPath, | ||
SubPath: additionalVolume.SubPath, | ||
SubPathExpr: additionalVolume.SubPathExpr, |
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.
If SubPath and SubPathExpr are mutually exclusive they cannot coexist here, right?
This PR is still lacking a few things. The CDR needs to be extended here and here. If the SubPath and SubPathExpr are mutually exclusive you can use When adding fields to the Postgres CRD, please also run code generation ( |
81bc5e2
to
1163d47
Compare
Hello @FxKu, Thank you for you review. |
25bc8cc
to
a106df3
Compare
I am facing this kubernetes/apimachinery#18. |
a106df3
to
8d65167
Compare
Sounds good now. |
Any news on this ? |
@smutel e2e tests are failing. There's an issue with the CRD schema:
|
3e9caaf
to
377724c
Compare
CRDs updated. |
Btw. I have just noticed that you did not add any logic to the Go code. It's not enough to just add a new field to the CRD. We use a lot of custom logic and not so much K8s specs. In this case the new SubPathExpr muss be set in generateVolumeMounts function. I would like to see a unit test then to check if the new expression is set when specified. Sorry for suggesting oneOf here as both fields are optional. It's more typical when you have a required |
377724c
to
dd270fb
Compare
I changed my PR regarding your suggestion with boolean. |
bdb32bc
to
cef0f05
Compare
cef0f05
to
9f13fb3
Compare
Looks good to you ? |
Any update on this ? |
LGTM now. Sorry for not getting back to this sooner. |
👍 |
1 similar comment
👍 |
Fix #2464