I'm using version 2.2.115 of the fabric8 plugin, and setting the following environment variables before calling mvn json:appy.
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:2.2.115:apply (default-cli) on project booty: Failure executing: GET at: https://myserver:8443/api/v1/namespaces/dev-xxx-tmp. Message: User "system:anonymous" cannot get namespaces in project "dev-xxx-tmp". Received status: Status(apiVersion=v1, code=403, details=StatusDetails(causes=[], group=null, kind=namespaces, name=dev-xxx-tmp, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=User "system:anonymous" cannot get namespaces in project "dev-xxx-tmp", metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Forbidden, status=Failure, additionalProperties={}). -> [Help 1]
I have no clue where it's picking up "system:anonymous" from.
This is running inside jenkins so we don't want to rely on calling oc login first. We don't want to have to install oc on the jenkins box either.