mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 14:20:23 -04:00
26 lines
634 B
Go
26 lines
634 B
Go
![]() |
package v1beta1
|
||
|
|
||
|
import (
|
||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||
|
|
||
|
"github.com/docker/cli/kubernetes/compose"
|
||
|
)
|
||
|
|
||
|
// Owner defines the owner of a stack. It is used to impersonate the controller calls
|
||
|
// to kubernetes api.
|
||
|
// +genclient=true
|
||
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||
|
// +subresource-request
|
||
|
type Owner struct {
|
||
|
metav1.TypeMeta `json:",inline"`
|
||
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||
|
Owner compose.ImpersonationConfig `json:"owner,omitempty"`
|
||
|
}
|
||
|
|
||
|
// OwnerList defines a list of owner.
|
||
|
type OwnerList struct {
|
||
|
metav1.TypeMeta
|
||
|
metav1.ListMeta
|
||
|
Items []Owner
|
||
|
}
|