Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

incorrectly generating an initcontainer annotation to chmod all volume mounts not just PV #772

Closed
rawlingsj opened this issue Jan 11, 2017 · 2 comments

Comments

@rawlingsj
Copy link
Contributor

Description

f-m-p is generating yaml to chmod 777 all volume mounts and not just the persistent volume folders that are attached to PVCs. This means that the Jenkins pod in recent releases now tries to chmod 777 /var/run/docker.sock in its initcontainer. We should only chmod volumes that are attached by a persistent volume claim.

f-m-p version : 3.2.13

One more point was from memory I thought we were only adding the initcontainer annotation when generating the kubernetes.yml and not openshift.yml too. After looking at previous commits I think this 9013320 is related.

/cc @rhuss

@rhuss
Copy link
Contributor

rhuss commented Jan 11, 2017

Agreed. The reason why its now also include in openshift.yml is, that our current model is to create a single list of resource by enrichers and filter out later in the ResourceMojo (which then, for specific cases , needs to have knowledge about certain enrichers, which of course must not be the case).

A solution to this dilemma is proposed in #678 which would make this much clearer and introduce a better decoupling and encapsulation. Mostly its about to call enrichers twice, ones for the kubernetes.yml and once for the openshift.yml, so that the after-the-fact filter step can be avoided.

I have to run now, but will review your PR later today or tomorrow.

@rawlingsj
Copy link
Contributor Author

This has now been released.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants