redhat-cop / openshift-applier

Used to apply OpenShift objects to an OpenShift Cluster
Apache License 2.0
102 stars 61 forks source link

Updating docs to use local user for image #92

Closed etsauer closed 5 years ago

etsauer commented 5 years ago

What does this PR do?

When running the commands in images/openshift-applier/README.md as a non-root user, the container fails with:

TASK [openshift-applier : Retrieve oc client version] ***************************************************
Tuesday 15 January 2019  03:26:46 +0000 (0:00:00.031)       0:00:02.554 ******* 
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "oc version", "delta": "0:00:00.350508", "end": "2019-01-15 03:26:46.726399", "msg": "non-zero return code", "rc": 1, "start": "2019-01-15 03:26:46.375891", "stderr": "error: Error loading config file \"/openshift-applier/.kube/config\": open /openshift-applier/.kube/config: permission denied\nSee 'oc version -h' for help and examples.", "stderr_lines": ["error: Error loading config file \"/openshift-applier/.kube/config\": open /openshift-applier/.kube/config: permission denied", "See 'oc version -h' for help and examples."], "stdout": "", "stdout_lines": []}

PLAY RECAP **********************************************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=1   

How should this be tested?

Run the commands in images/openshift-applier/README.md

Is there a relevant Issue open for this?

n/a

Who would you like to review this?

cc: @redhat-cop/openshift-applier

oybed commented 5 years ago

@etsauer @sabre1041 looks like the lint job has been "updated" with stricter requirements now. The code that previously passed is now failing the tests. Will merge as we need to handle the changes to make the lint job succeed separately. I wrote a new issue for this.