mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
25 lines
634 B
Go
25 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
|
|
}
|