diff --git a/ocp-metadata/ocp-metadata.go b/ocp-metadata/ocp-metadata.go index 59692d6..0f8254b 100644 --- a/ocp-metadata/ocp-metadata.go +++ b/ocp-metadata/ocp-metadata.go @@ -58,9 +58,10 @@ func (meta *Metadata) GetClusterMetadata() (ClusterMetadata, error) { return metadata, nil } metadata.ClusterName, metadata.Platform, metadata.Region = infra.Status.InfrastructureName, infra.Status.Platform, infra.Status.PlatformStatus.Aws.Region + metadata.ClusterType = "self-managed" for _, v := range infra.Status.PlatformStatus.Aws.ResourceTags { if v.Key == "red-hat-clustertype" { - metadata.Platform = v.Value + metadata.ClusterType = v.Value } } metadata.SDNType, err = meta.getSDNInfo() diff --git a/ocp-metadata/types.go b/ocp-metadata/types.go index b3f68bc..50f231e 100644 --- a/ocp-metadata/types.go +++ b/ocp-metadata/types.go @@ -72,6 +72,7 @@ type clusterVersion struct { type ClusterMetadata struct { MetricName string `json:"metricName,omitempty"` Platform string `json:"platform"` + ClusterType string `json:"clusterType"` OCPVersion string `json:"ocpVersion"` OCPMajorVersion string `json:"ocpMajorVersion"` K8SVersion string `json:"k8sVersion"`