@Test public void shouldHandleKindWithoutVersion() { KubernetesCrudAttributesExtractor extractor = new KubernetesCrudAttributesExtractor(); AttributeSet attributes = extractor.extract("/api/pods"); AttributeSet expected = new AttributeSet(); expected = expected.add(new Attribute("kind", "pod")); assertTrue(attributes.matches(expected)); }
@Override public AttributeSet extract(HasMetadata hasMetadata) { return extractMetadataAttributes(hasMetadata); }
KubernetesCrudAttributesExtractor extends KubernetesAttributesExtractor { @Override public AttributeSet extract(HasMetadata hasMetadata) { return extractMetadataAttributes(hasMetadata); } }
KubernetesCrudAttributesExtractor extends KubernetesAttributesExtractor { @Override public AttributeSet extract(HasMetadata hasMetadata) { return extractMetadataAttributes(hasMetadata); } KubernetesCrudAttributesExtractor();  KubernetesCrudAttributesExtractor(List<CustomResourceDefinitionContext> crdContexts); }
KubernetesCrudAttributesExtractor extends KubernetesAttributesExtractor { @Override public AttributeSet extract(HasMetadata hasMetadata) { return extractMetadataAttributes(hasMetadata); } KubernetesCrudAttributesExtractor();  KubernetesCrudAttributesExtractor(List<CustomResourceDefinitionContext> crdContexts); @Override AttributeSet extract(HasMetadata hasMetadata); }
KubernetesCrudAttributesExtractor extends KubernetesAttributesExtractor { @Override public AttributeSet extract(HasMetadata hasMetadata) { return extractMetadataAttributes(hasMetadata); } KubernetesCrudAttributesExtractor();  KubernetesCrudAttributesExtractor(List<CustomResourceDefinitionContext> crdContexts); @Override AttributeSet extract(HasMetadata hasMetadata);  }