You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Secret mount path must be unique for secrets on containers #4075
area/APIAPI objects and controllerskind/bugCategorizes issue or PR as related to a bug.kind/specDiscussion of how a feature should be exposed to customers.
This isn't our validation, this is the K8s Deployment resource rejecting the Deployment the Revision is passing it. It sounds like we should be rejecting things with this message, as K8s Deployment does.
We don't allow subPath through in 0.5, but we will in 0.6 (Tuesday). I believe it would be relatively simple to add support for projected volumes; this came up when we were first letting volumes through and they seemed complex enough that we wanted to wait for a clear use case.
Here's the issue tracking that. Let's use this to track improving our validation to match K8s Deployment, so we don't let through the bad volume mount config.
The complexity is somewhat hidden from the user in our stack.yml / CRD entry - it's a case of declaring an array of secret names to be bound and then they are all mounted in /var/openfaas/secrets/ as a convention.
area/APIAPI objects and controllerskind/bugCategorizes issue or PR as related to a bug.kind/specDiscussion of how a feature should be exposed to customers.
Activity
alexellis commentedon May 11, 2019
Just heard from @LucasRoesler that we are using projected volumes - https://kubernetes.io/docs/concepts/storage/volumes/#projected
mattmoor commentedon May 11, 2019
This isn't our validation, this is the K8s Deployment resource rejecting the Deployment the Revision is passing it. It sounds like we should be rejecting things with this message, as K8s Deployment does.
alexellis commentedon May 11, 2019
Yes you're right. Did you see my note about the projected volumes?
mattmoor commentedon May 11, 2019
This works:
We don't allow
subPaththrough in 0.5, but we will in 0.6 (Tuesday). I believe it would be relatively simple to add support for projected volumes; this came up when we were first letting volumes through and they seemed complex enough that we wanted to wait for a clear use case.Here's the issue tracking that. Let's use this to track improving our validation to match K8s Deployment, so we don't let through the bad volume mount config.
alexellis commentedon May 11, 2019
Thanks that sounds promising. This is how we have implemented it for our CRD at present - https://github.com/openfaas-incubator/openfaas-operator/blob/master/pkg/controller/secrets.go#L19
The complexity is somewhat hidden from the user in our stack.yml / CRD entry - it's a case of declaring an array of secret names to be bound and then they are all mounted in
/var/openfaas/secrets/as a convention.mattmoor commentedon May 11, 2019
Yeah this works without knowing the list of keys in the secret:
mattmoor commentedon May 11, 2019
I wonder how it deals with collisions across secrets. Time to try :)
mattmoor commentedon May 11, 2019
Looks like last one wins.
Validate VolumeMount MountPath uniqueness.
This adds support for the "projected" K8s volume source.
Validate VolumeMount MountPath uniqueness. (#4078)
This adds support for the "projected" K8s volume source.
Validate VolumeMount MountPath uniqueness. (knative#4078)
This adds support for the "projected" K8s volume source.
This adds support for the "projected" K8s volume source.
This adds support for the "projected" K8s volume source. (#4079)