ChalkObj.resourceType is currently a set whereas _OP_ARTIFACT_TYPE is a single string value. In some places like a docker container resourceType can contain both image and container resources whereas artifact type is only reported as a container. Instead of manually setting the reporting field, we can derive it from the resourceType if we use something like OrderedSet so that first item in the set is the main artifact type and any subsequent types are supplementary and maybe we can report on them separately.
Description
ChalkObj.resourceType
is currently a set whereas_OP_ARTIFACT_TYPE
is a single string value. In some places like a docker containerresourceType
can contain both image and container resources whereas artifact type is only reported as a container. Instead of manually setting the reporting field, we can derive it from theresourceType
if we use something likeOrderedSet
so that first item in the set is the main artifact type and any subsequent types are supplementary and maybe we can report on them separately.Result
Will simplify internal code a bit