-
Notifications
You must be signed in to change notification settings - Fork 232
Adding Deploy Image and Import YAML / JSON functionality to catalog #1893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Deploy Image and Import YAML / JSON functionality to catalog #1893
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rhamilto LGTM. The only problem I see is the race condition loading secrets and config maps, which you've noted.
Ran into a problem trying to search for images when creating a new project. {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "User \"sam\" cannot create imagestreamimports in project \"test\"",
"reason": "Forbidden",
"details": {
"kind": "imagestreamimports"
},
"code": 403
} |
@@ -242,18 +213,69 @@ angular.module("openshiftConsole") | |||
}); | |||
}, true); | |||
|
|||
$scope.$watch('input.selectedProject', function(project){ | |||
// clear any existing valueFrom env to avoid invalid data | |||
// this breaks the wizard when clicking Deploy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spadgett, this is the culprit of the remaining TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one comment on the message
app/scripts/directives/fromFile.js
Outdated
NotificationsService.addNotification({ | ||
id: "import-create-project-error", | ||
type: "error", | ||
message: "An error occured creating project", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"occurred" is misspelled
"An error occurred creating the project."
app/scripts/directives/fromFile.js
Outdated
createProjectIfNecessary().then(function(project) { | ||
$scope.input.selectedProject = project; | ||
$q.all(resourceCheckPromises).then(function() { | ||
if ($scope.errorOccured) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually looks like it's misspelled here in the variable name too but that's not new
NotificationsService.addNotification({ | ||
id: "deploy-image-create-project-error", | ||
type: "error", | ||
message: "An error occured creating project", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here
Credit for this is due to @spadgett!
[merge] |
Evaluated for origin web console merge up to 622b129 |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin_web_console/79/) (Base Commit: 82888c4) (PR Branch Commit: 622b129) |
https://trello.com/c/Dk9IxmCH
TODO: