diff --git a/pkg/api/admin/openshiftcluster.go b/pkg/api/admin/openshiftcluster.go index bd9cce3c4ef..62d8e025a0a 100644 --- a/pkg/api/admin/openshiftcluster.go +++ b/pkg/api/admin/openshiftcluster.go @@ -451,7 +451,7 @@ const ( // Identity stores information about the cluster MSI(s) in a workload identity cluster. type Identity struct { - Type ResourceIdentityType `json:"type,omitempty"` + Type ResourceIdentityType `json:"resourceIdentityType,omitempty"` PrincipalID string `json:"principalId,omitempty" swagger:"readOnly"` TenantID string `json:"tenantId,omitempty" swagger:"readOnly"` UserAssignedIdentities map[string]ClusterUserAssignedIdentity `json:"userAssignedIdentities,omitempty"` diff --git a/pkg/api/openshiftcluster.go b/pkg/api/openshiftcluster.go index fa57713576e..a04641d84c5 100644 --- a/pkg/api/openshiftcluster.go +++ b/pkg/api/openshiftcluster.go @@ -822,7 +822,7 @@ const ( type Identity struct { MissingFields - Type ResourceIdentityType `json:"type,omitempty"` + Type ResourceIdentityType `json:"resourceIdentityType,omitempty"` PrincipalID string `json:"principalId,omitempty" swagger:"readOnly"` UserAssignedIdentities map[string]ClusterUserAssignedIdentity `json:"userAssignedIdentities,omitempty"` IdentityURL string `json:"identityURL,omitempty" mutable:"true"` diff --git a/pkg/api/v20240812preview/openshiftcluster.go b/pkg/api/v20240812preview/openshiftcluster.go index 388fcf1b09f..0fdc4d0ead3 100644 --- a/pkg/api/v20240812preview/openshiftcluster.go +++ b/pkg/api/v20240812preview/openshiftcluster.go @@ -322,7 +322,7 @@ const ( // Identity stores information about the cluster MSI(s) in a workload identity cluster. type Identity struct { - Type ResourceIdentityType `json:"type,omitempty"` + Type ResourceIdentityType `json:"resourceIdentityType,omitempty"` PrincipalID string `json:"principalId,omitempty" swagger:"readOnly"` TenantID string `json:"tenantId,omitempty" swagger:"readOnly"` UserAssignedIdentities map[string]ClusterUserAssignedIdentity `json:"userAssignedIdentities,omitempty"` diff --git a/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2024-08-12-preview/redhatopenshift.json b/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2024-08-12-preview/redhatopenshift.json index 87201fadbb3..12d2c575651 100644 --- a/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2024-08-12-preview/redhatopenshift.json +++ b/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2024-08-12-preview/redhatopenshift.json @@ -1903,7 +1903,7 @@ "description": "Identity stores information about the cluster MSI(s) in a workload identity cluster.", "type": "object", "properties": { - "type": { + "resourceIdentityType": { "$ref": "#/definitions/ResourceIdentityType" }, "principalId": {