-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add openshift_container_images to openshift provider
also process ems_ref for openshift_container_images
- Loading branch information
Erez Freiberger
committed
Jun 18, 2017
1 parent
10ff45a
commit dfacf0e
Showing
4 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
app/models/manageiq/providers/openshift/container_image.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class ManageIQ::Providers::Openshift::ContainerImage < ContainerImage | ||
acts_as_miq_taggable | ||
include NewWithTypeStiMixin | ||
|
||
def annotate_deny_execution(causing_policy) | ||
ext_management_system.annotate( | ||
"image", | ||
digest, | ||
"security.manageiq.org/failed-policy" => causing_policy, | ||
"images.openshift.io/deny-execution" => "true" | ||
) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters