Skip to content

Commit

Permalink
fix struct tags
Browse files Browse the repository at this point in the history
*change struct tag `type` to `resourceIdentityType`
  • Loading branch information
cadenmarchese committed Jul 29, 2024
1 parent 936d50d commit 36d7ee6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/api/admin/openshiftcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/openshiftcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v20240812preview/openshiftcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 36d7ee6

Please sign in to comment.