Skip to content

Commit

Permalink
Merge pull request #143 from wotolom/SharedWithGroupsObservation-omit…
Browse files Browse the repository at this point in the history
…empty-fields

fix(groups): SharedWithGroupsObservation fields no longer required
  • Loading branch information
MisterMX authored May 8, 2024
2 parents 733e463 + 7dadcaa commit 3e72375
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
10 changes: 5 additions & 5 deletions apis/groups/v1alpha1/group_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,11 @@ type GroupObservation struct {

// SharedWithGroupsObservation is the observed state of a SharedWithGroups.
type SharedWithGroupsObservation struct {
GroupID *int `json:"groupId"`
GroupName *string `json:"groupName"`
GroupFullPath *string `json:"groupFullPath"`
GroupAccessLevel *int `json:"groupAccessLevel"`
ExpiresAt *metav1.Time `json:"expiresAt"`
GroupID *int `json:"groupId,omitempty"`
GroupName *string `json:"groupName,omitempty"`
GroupFullPath *string `json:"groupFullPath,omitempty"`
GroupAccessLevel *int `json:"groupAccessLevel,omitempty"`
ExpiresAt *metav1.Time `json:"expiresAt,omitempty"`
}

// A GroupSpec defines the desired state of a Gitlab Group.
Expand Down
6 changes: 0 additions & 6 deletions package/crds/groups.gitlab.crossplane.io_groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -552,12 +552,6 @@ spec:
type: integer
groupName:
type: string
required:
- expiresAt
- groupAccessLevel
- groupFullPath
- groupId
- groupName
type: object
type: array
statistics:
Expand Down

0 comments on commit 3e72375

Please sign in to comment.