Allow to specify KubeObjectDetailRegistration priority (#1335)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-11-12 09:16:22 +02:00
1 parent 1f88c05e82
commit deb4773b44
22 files changed
+201 -36

No files matched your search

@@ -96,8 +96,6 @@ export class PersistentVolumeDetails extends React.Component<Props> {
</DrawerItem>
</>
)}
<KubeEventDetails object={volume}/>
</div>
);
}
@@ -110,3 +108,12 @@ kubeObjectDetailRegistry.add({
Details: (props) => <PersistentVolumeDetails {...props} />
}
})
kubeObjectDetailRegistry.add({
kind: "PersistentVolume",
apiVersions: ["v1"],
priority: 5,
components: {
Details: (props) => <KubeEventDetails {...props} />
}
})