Skip to content

Carry over base container security context fields to lifecycle hook pod #12103

Closed

Description

@pweil-

Follow up issue for https://github.com/openshift/origin/pull/12080/files#r90483173

When creating the lifecycle hook pod we should evaluate if the security context requests need to be carried over from the base container so that the lifecycle hook pod is running under the same context as the base container pod (or as close to it as possible).

Activity

  1. 0xmichalis commented on Jan 30, 2017

    @0xmichalis
    Contributor

    @mfojtik @php-coder on your plate

  2. mfojtik commented on Feb 14, 2017

    @mfojtik
    Contributor

    @pweil- i'm not 100% sure about this is an issue. Maybe i'm wrong, but we don't allow to change the SecurityContext for the deployer Pod? IOW. there is no way I know about (again maybe I'm wrong) that you can pass this into lifecycle hooks nowadays... @Kargakis do I miss something?

  3. pweil- commented on Feb 14, 2017

    @pweil-
    Author

    @mfojtik this is ensuring that a lifecycle hook pod would run with the same security context that the targeted container itself runs with. Not the deployer pod. Does that make sense?

  4. mfojtik commented on Feb 14, 2017

    @mfojtik
    Contributor

    @pweil- so it is not copying it from the deployer pod, but rather from the deployment config replication controller template pod spec. That makes more sense, yeah.

  5. mfojtik commented on Feb 14, 2017

    @mfojtik
    Contributor

    (also mean my PR is wrong ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions