Skip to content

Commit

Permalink
Container Volumes should honour tag visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zakiva committed Apr 18, 2017
1 parent bfc8cfa commit b9faf82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/container_volume.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class ContainerVolume < ApplicationRecord
acts_as_miq_taggable
belongs_to :parent, :polymorphic => true
belongs_to :persistent_volume_claim, :dependent => :destroy
end
4 changes: 3 additions & 1 deletion lib/miq_expression.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class MiqExpression
ContainerRoute
ContainerService
ContainerTemplate
PersistentVolume
ManageIQ::Providers::CloudManager
EmsCluster
EmsClusterPerformance
Expand Down Expand Up @@ -265,7 +266,8 @@ class MiqExpression
'ContainerReplicator' => 'container_replicator',
'ContainerRoute' => 'container_route',
'ContainerService' => 'container_service',
'ContainerTemplate' => 'container_template'
'ContainerTemplate' => 'container_template',
'PersistentVolume' => 'persistent_volume'
}
EXCLUDE_FROM_RELATS = {
"ManageIQ::Providers::CloudManager" => ["hosts", "ems_clusters", "resource_pools"]
Expand Down
1 change: 1 addition & 0 deletions lib/rbac/filterer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Filterer
ContainerRoute
ContainerService
ContainerTemplate
ContainerVolume
EmsCluster
EmsFolder
ExtManagementSystem
Expand Down

0 comments on commit b9faf82

Please sign in to comment.