Skip to content

Commit

Permalink
Blacklist pruning of ControllerRevision
Browse files Browse the repository at this point in the history
  • Loading branch information
dirceu committed Nov 15, 2019
1 parent 470856f commit efb9349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/krane/cluster_resource_discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def crds
end

def prunable_resources(namespaced:)
black_list = %w(Namespace Node)
black_list = %w(Namespace Node ControllerRevision)
api_versions = fetch_api_versions

fetch_resources(namespaced: namespaced).map do |resource|
Expand Down
2 changes: 1 addition & 1 deletion test/unit/cluster_resource_discovery_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_prunable_namespaced_resources
crd = mocked_cluster_resource_discovery(api_resources_namespaced_full_response, namespaced: true)
kinds = crd.prunable_resources(namespaced: true)

assert_equal(kinds.length, 28)
assert_equal(kinds.length, 27)
%w(ConfigMap CronJob Deployment).each do |expected_kind|
assert kinds.one? { |k| k.include?(expected_kind) }
end
Expand Down

0 comments on commit efb9349

Please sign in to comment.