Skip to content

Instantly share code, notes, and snippets.

@wklm
Last active October 5, 2017 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wklm/8dcab36eea94b43a5a7fe0480ef59b37 to your computer and use it in GitHub Desktop.
Save wklm/8dcab36eea94b43a5a7fe0480ef59b37 to your computer and use it in GitHub Desktop.
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$ oc project test-ci-openshift-no-fim
Now using project "test-ci-openshift-no-fim" on server "https://openshift-dev.cern.ch:443".
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$ oc create sa other-admin
serviceaccount "other-admin" created
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$ oc policy add-role-to-user admin system:serviceaccounts:test-devforumci-preview:other-admin
role "admin" added: "system:serviceaccounts:test-devforumci-preview:other-admin"
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$ oc new-app --token=$(oc sa get-token other-admin) registry.access.redhat.com/dotnet/dotnet-20-rhel7~https://gitlab.cern.ch/wkulma/devforum
--> Found Docker image 9c4630d (2 weeks old) from registry.access.redhat.com for "registry.access.redhat.com/dotnet/dotnet-20-rhel7"
.NET Core 2.0
-------------
Platform for building and running .NET Core 2.0 applications
Tags: builder, .net, dotnet, dotnetcore, rh-dotnet20
* An image stream will be created as "dotnet-20-rhel7:latest" that will track the source image
* A source build using source code from https://gitlab.cern.ch/wkulma/devforum will be created
* The resulting image will be pushed to image stream "devforum:latest"
* Every time "dotnet-20-rhel7:latest" changes a new build will be triggered
* This image will be deployed in deployment config "devforum"
* Port 8080/tcp will be load balanced by service "devforum"
* Other containers can access this service through the hostname "devforum"
--> Creating resources ...
error: User "system:serviceaccount:test-ci-openshift-no-fim:other-admin" cannot create imagestreams.image.openshift.io in project "test-ci-openshift-no-fim"
error: User "system:serviceaccount:test-ci-openshift-no-fim:other-admin" cannot create imagestreams.image.openshift.io in project "test-ci-openshift-no-fim"
error: User "system:serviceaccount:test-ci-openshift-no-fim:other-admin" cannot create buildconfigs.build.openshift.io in project "test-ci-openshift-no-fim"
error: User "system:serviceaccount:test-ci-openshift-no-fim:other-admin" cannot create deploymentconfigs.apps.openshift.io in project "test-ci-openshift-no-fim"
error: User "system:serviceaccount:test-ci-openshift-no-fim:other-admin" cannot create services in project "test-ci-openshift-no-fim"
--> Failed
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment