Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

owner ref changes #105

Merged
merged 1 commit into from
May 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions deploy/crds/actions_v1_kindactionmapping_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ spec:
properties:
apiVersion:
type: string
owner:
type: string
ownerUID:
type: string
ownerAPI:
type: string
owner:
properties:
kind:
type: string
apiVersion:
type: string
uid:
type: string
type: object
kind:
type: string
mapname:
Expand Down
19 changes: 12 additions & 7 deletions pkg/apis/actions/v1/kindactionmapping_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@ type KindActionMappingSpec struct {

// MappingConfiguration defines resource constraints for Mapping configuration
type MappingConfiguration struct {
APIVersion string `json:"apiVersion,omitempty"`
Owner string `json:"owner,omitempty"`
OwnerUID string `json:"ownerUID,omitempty"`
OwnerAPI string `json:"ownerAPI,omitempty"`
APIVersion string `json:"apiVersion,omitempty"`
Owner OwnerConfiguration `json:"owner,omitempty"`
Kind string `json:"kind,omitempty"`
Subkind string `json:"subkind,omitempty"`
Name string `json:"name,omitempty"`
Mapname string `json:"mapname,omitempty"`
}

// OwnerConfiguration defines resource constraints for Owner configuration
type OwnerConfiguration struct {
Kind string `json:"kind,omitempty"`
Subkind string `json:"subkind,omitempty"`
Name string `json:"name,omitempty"`
Mapname string `json:"mapname,omitempty"`
UID string `json:"uid,omitempty"`
APIVersion string `json:"apiVersion,omitempty"`
}

// KindActionMappingStatus defines the observed state of KindActionMapping
Expand Down