forked from ManageIQ/manageiq-providers-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
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
- Loading branch information
Erez Freiberger
committed
Jul 16, 2017
1 parent
fbbc9ec
commit ad5ac8a
Showing
4 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
app/models/manageiq/providers/openshift/container_manager/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,10 @@ | ||
class ManageIQ::Providers::Openshift::ContainerManager::ContainerImage < ContainerImage | ||
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