-
Notifications
You must be signed in to change notification settings - Fork 231
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
Let users add config maps and secrets as volumes #891
Let users add config maps and secrets as volumes #891
Conversation
c961884
to
5f43d1e
Compare
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.
one minor comment, otherwise LGTM. lets wait to merge till after the design meeting today
@@ -24,6 +24,15 @@ angular.module('openshiftConsole') | |||
return input; | |||
}; | |||
}) | |||
.filter('keys', function() { | |||
return function(obj) { | |||
if (!obj) { |
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.
what about return _.keys(obj);
5f43d1e
to
8e7b54f
Compare
@jwforres updated with a second commit for removing volumes |
} | ||
|
||
var triggers = _.get($scope, 'deploymentConfig.spec.triggers', []); | ||
return _.some(triggers, { type: 'ConfigChange' }); |
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.
should you be checking automatic true?
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.
not for config change, only image change
$scope.removeVolume = function(volume) { | ||
var details; | ||
if (isConfigChangeActive()) { | ||
details = "This will remove the volume from the deployment config and trigger a new deployment."; |
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.
should we be clear that it will not delete the PVC/Secret/ConfigMap?
8e7b54f
to
40eedd8
Compare
@jwforres updated |
[merge] |
Evaluated for origin web console merge up to 40eedd8 |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/755/) (Base Commit: bc496f8) |
https://trello.com/c/gUzfL5OA
@jwforres PTAL
Add all keys:
Add specific keys: