Skip to content

Conversation

@deads2k
Copy link
Contributor

@deads2k deads2k commented Feb 12, 2015

waiting on #991

Creates openshift ex project new-project <projectname> --admin=anypassword:adminuser

@liggitt

@deads2k deads2k force-pushed the deads-create-project branch 2 times, most recently from a8e47d1 to a67a7a2 Compare February 12, 2015 21:02
@deads2k deads2k changed the title [waiting] new project new project Feb 12, 2015
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use kubernetes/api/errors.IsNotFound()?

@deads2k
Copy link
Contributor Author

deads2k commented Feb 13, 2015

comments addressed and added some clean up if adding the admin use failed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on further reflection, I don't think we should default the displayName to projectName either (at least not client-side). That defaulting should happen server-side if we want it. The UI falls back to the projectName if displayName is empty.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defaulting removed.

@deads2k deads2k force-pushed the deads-create-project branch 3 times, most recently from dd0052c to b1160b3 Compare February 13, 2015 18:42
@deads2k
Copy link
Contributor Author

deads2k commented Feb 13, 2015

@liggitt All defaulting removed, comment restored, and replaced cleanup with a message about adding a user to a role.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want a TODO to remove this once master policy namespace goes away?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@deads2k deads2k force-pushed the deads-create-project branch 2 times, most recently from 07c82d2 to 7850d2c Compare February 16, 2015 14:21
@deads2k
Copy link
Contributor Author

deads2k commented Feb 16, 2015

rebased and unnested new-project.

@deads2k deads2k force-pushed the deads-create-project branch from 7850d2c to 3fe2aec Compare February 16, 2015 15:09
@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_openshift3/1079/)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits:

  1. put success first, then failure
  2. sub in the specified role rather than hardcoding admin
  3. put sample command on it's own line to make it easier to to copy/paste
fmt.Printf("The project %v was created, but %v could not be added to the %v role.\n", ...)
fmt.Printf("To add the user to the existing project, run\n\n\topenshift ex policy add-user --namespace=%v --role-namespace=%v %v %v\n", ...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@deads2k deads2k force-pushed the deads-create-project branch from 3fe2aec to 72b4ec1 Compare February 16, 2015 16:53
@liggitt
Copy link
Contributor

liggitt commented Feb 16, 2015

LGTM, squash and merge

@deads2k deads2k force-pushed the deads-create-project branch from 72b4ec1 to 4258b75 Compare February 16, 2015 17:02
@deads2k
Copy link
Contributor Author

deads2k commented Feb 16, 2015

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_openshift3/927/) (Image: devenv-fedora_805)

@deads2k deads2k force-pushed the deads-create-project branch from 86247ab to 4258b75 Compare February 16, 2015 18:51
@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin up to 4258b75

openshift-bot pushed a commit that referenced this pull request Feb 16, 2015
@openshift-bot openshift-bot merged commit c32be82 into openshift:master Feb 16, 2015
@smarterclayton
Copy link
Contributor

The sample-app README needs to be updated to reflect this command being present.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants