Skip to content

Commit

Permalink
Adding listType and listMapKey annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Amrutha <[email protected]>
  • Loading branch information
amrcoder committed Jan 9, 2025
1 parent 3eaf176 commit 2c57e6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ spec:
type: string
type: object
type: array
x-kubernetes-list-map-keys:
- authType
x-kubernetes-list-type: map
type: object
registrationImagePullSpec:
default: quay.io/open-cluster-management/registration
Expand Down
2 changes: 2 additions & 0 deletions operator/v1/types_clustermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ type RegistrationHubConfiguration struct {
// RegistrationDrivers represent the list of hub registration drivers that contain information used by hub to initialize the hub cluster
// A RegistrationDriverHub contains details of authentication type and the hub cluster ARN
// +optional
// +listType=map
// +listMapKey=authType
RegistrationDrivers []RegistrationDriverHub `json:"registrationDrivers,omitempty"`
}

Expand Down

0 comments on commit 2c57e6f

Please sign in to comment.