Skip to content

Commit

Permalink
fix(provider/kubernetes): v2 Fix support for clusterrolebindings (#2514)
Browse files Browse the repository at this point in the history
The change in #2457
incorrectly modified the KubernetesClusterRoleBindingCachingAgent.
  • Loading branch information
wjoel authored and lwander committed Apr 16, 2018
1 parent 8ab14e7 commit c0dbe9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class KubernetesClusterRoleBindingCachingAgent extends KubernetesV2OnDema
@Getter
final private Collection<AgentDataType> providedDataTypes = Collections.unmodifiableSet(
new HashSet<>(Arrays.asList(
AUTHORITATIVE.forType(KubernetesKind.ROLE_BINDING.toString())
AUTHORITATIVE.forType(KubernetesKind.CLUSTER_ROLE_BINDING.toString())
))
);

Expand All @@ -57,6 +57,6 @@ protected boolean hasClusterRelationship() {

@Override
protected KubernetesKind primaryKind() {
return KubernetesKind.ROLE_BINDING;
return KubernetesKind.CLUSTER_ROLE_BINDING;
}
}

0 comments on commit c0dbe9e

Please sign in to comment.