Skip to content

Commit

Permalink
Merge pull request #33 from jtaleric/ClusterType
Browse files Browse the repository at this point in the history
Introduce ClusterType
  • Loading branch information
vishnuchalla authored Aug 1, 2023
2 parents 9dc8764 + 873c124 commit a380291
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocp-metadata/ocp-metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions ocp-metadata/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit a380291

Please sign in to comment.