Restore original casing for kind, namespace and name in DefaultTechDocsCollator

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-10-27 14:29:26 +02:00
parent 52ebd2d3a0
commit 106a5dc3ad
5 changed files with 28 additions and 56 deletions
@@ -138,6 +138,8 @@ describe('DefaultTechDocsCollator with legacyPathCasing configuration', () => {
componentType: entity!.spec!.type,
lifecycle: entity!.spec!.lifecycle,
owner: '',
kind: entity.kind,
name: entity.metadata.name,
});
});
});
@@ -183,6 +185,8 @@ describe('DefaultTechDocsCollator', () => {
componentType: entity!.spec!.type,
lifecycle: entity!.spec!.lifecycle,
owner: '',
kind: entity.kind,
name: entity.metadata.name,
});
});
});
@@ -130,7 +130,9 @@ export class DefaultTechDocsCollator implements DocumentCollator {
path: doc.location,
}),
path: doc.location,
...entityInfo,
kind: entity.kind,
namespace: entity.metadata.namespace || 'default',
name: entity.metadata.name,
entityTitle: entity.metadata.title,
componentType: entity.spec?.type?.toString() || 'other',
lifecycle: (entity.spec?.lifecycle as string) || '',