Skip to content

Commit

Permalink
Introduce ClusterType
Browse files Browse the repository at this point in the history
Platforms should be [aws,gcp,azure] (not the full list, just an example.

ClusterType can be self-managed or rosa/ what is set for
`red-hat-clustertype`

Signed-off-by: Joe Talerico <[email protected]>
  • Loading branch information
Joe Talerico committed Jul 31, 2023
1 parent 9dc8764 commit feee435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ocp-metadata/ocp-metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (meta *Metadata) GetClusterMetadata() (ClusterMetadata, error) {
metadata.ClusterName, metadata.Platform, metadata.Region = infra.Status.InfrastructureName, infra.Status.Platform, infra.Status.PlatformStatus.Aws.Region
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 feee435

Please sign in to comment.