operator-sdk
operator-sdk copied to clipboard
Samples - Change the memcached image used in the samples so that we do not need to use RunAsUser
What is the problem
I cannot run the samples on Openshift
Why
Because we are setting RunAsUser(1001) therefore, it will not work on OCP
Proposed Solution
Change the Memcached image: https://github.com/docker-library/memcached/pull/79 ( To have the USER ID define )
OR
maintain a short Dockerfile that's auto-built with just FROM memcached \n USER 11211:11211 (if it has to be baked into the image itself)
c/c @everettraven @rashmigottipati
Done a PR to see if we can update the image: https://github.com/docker-library/memcached/pull/79
It was tested locally and the Pod worked successfully without RunAsUser as expected:
pod/foozjpc-sample-654c75bf8f-fgbvv 1/1 Running 0 115s
blocked until https://github.com/docker-library/memcached/pull/79 merges, but @camilamacedo86 will keep an eye on it.
I am unable to get the PR https://github.com/docker-library/memcached/pull/79 merged.
Therefore, the other solution is to maintain a short Dockerfile that's auto-built with just FROM memcached \n USER 11211:11211 (if it has to be baked into the image itself)
Remove the assignment to allow others to work on this one. Also, I improved the description to make it more clear.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen. Mark the issue as fresh by commenting/remove-lifecycle rotten. Exclude this issue from closing again by commenting/lifecycle frozen./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.