Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
adding props from raw
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiodehartj1 committed Sep 12, 2024
1 parent 94579a0 commit a974864
Show file tree
Hide file tree
Showing 2 changed files with 940 additions and 921 deletions.
9 changes: 9 additions & 0 deletions src/steps/services/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ export function createServiceEntity(data: k8s.V1Service) {
publishNotReadyAddresses: data.spec?.publishNotReadyAddresses,
sessionAffinity: data.spec?.sessionAffinity,
type: data.spec?.type,
clusterIpVersion: data.spec?.ipFamilies,
apiVersion: data.metadata?.managedFields?.map(
(managedField) => managedField.apiVersion ?? 'undefined',
),
//apiVersion: data.metadata?.managedFields[0].apiVersion,
portName: data.spec?.ports?.map((port) => port.name ?? 'undefined'),
portNumber: data.spec?.ports?.map((port) => port.port),
protocol: data.spec?.ports?.map((port) => port.protocol ?? 'undefined'),

// TODO: data.status part is made up of arrays, require some mappings/thinking
},
},
Expand Down
Loading

0 comments on commit a974864

Please sign in to comment.