Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
da521d37
Unverified
Commit
da521d37
authored
Dec 04, 2016
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pkg/api* OwnerReference
parent
7700d38e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
44 deletions
+4
-44
types.go
pkg/api/types.go
+2
-22
types.go
pkg/api/v1/types.go
+2
-22
No files found.
pkg/api/types.go
View file @
da521d37
...
@@ -163,7 +163,7 @@ type ObjectMeta struct {
...
@@ -163,7 +163,7 @@ type ObjectMeta struct {
// then an entry in this list will point to this controller, with the controller field set to true.
// then an entry in this list will point to this controller, with the controller field set to true.
// There cannot be more than one managing controller.
// There cannot be more than one managing controller.
// +optional
// +optional
OwnerReferences
[]
OwnerReference
OwnerReferences
[]
metav1
.
OwnerReference
// Must be empty before the object is deleted from the registry. Each entry
// Must be empty before the object is deleted from the registry. Each entry
// is an identifier for the responsible component that will remove the entry
// is an identifier for the responsible component that will remove the entry
...
@@ -2551,7 +2551,7 @@ type PreferAvoidPodsEntry struct {
...
@@ -2551,7 +2551,7 @@ type PreferAvoidPodsEntry struct {
type
PodSignature
struct
{
type
PodSignature
struct
{
// Reference to controller whose pods should avoid this node.
// Reference to controller whose pods should avoid this node.
// +optional
// +optional
PodController
*
OwnerReference
PodController
*
metav1
.
OwnerReference
}
}
// Describe a container image
// Describe a container image
...
@@ -2918,26 +2918,6 @@ type ServiceProxyOptions struct {
...
@@ -2918,26 +2918,6 @@ type ServiceProxyOptions struct {
Path
string
Path
string
}
}
// OwnerReference contains enough information to let you identify an owning
// object. Currently, an owning object must be in the same namespace, so there
// is no namespace field.
type
OwnerReference
struct
{
// API version of the referent.
APIVersion
string
// Kind of the referent.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds
Kind
string
// Name of the referent.
// More info: http://kubernetes.io/docs/user-guide/identifiers#names
Name
string
// UID of the referent.
// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
UID
types
.
UID
// If true, this reference points to the managing controller.
// +optional
Controller
*
bool
}
// ObjectReference contains enough information to let you inspect or modify the referred object.
// ObjectReference contains enough information to let you inspect or modify the referred object.
type
ObjectReference
struct
{
type
ObjectReference
struct
{
// +optional
// +optional
...
...
pkg/api/v1/types.go
View file @
da521d37
...
@@ -195,7 +195,7 @@ type ObjectMeta struct {
...
@@ -195,7 +195,7 @@ type ObjectMeta struct {
// then an entry in this list will point to this controller, with the controller field set to true.
// then an entry in this list will point to this controller, with the controller field set to true.
// There cannot be more than one managing controller.
// There cannot be more than one managing controller.
// +optional
// +optional
OwnerReferences
[]
OwnerReference
`json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid" protobuf:"bytes,13,rep,name=ownerReferences"`
OwnerReferences
[]
metav1
.
OwnerReference
`json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid" protobuf:"bytes,13,rep,name=ownerReferences"`
// Must be empty before the object is deleted from the registry. Each entry
// Must be empty before the object is deleted from the registry. Each entry
// is an identifier for the responsible component that will remove the entry
// is an identifier for the responsible component that will remove the entry
...
@@ -2953,7 +2953,7 @@ type PreferAvoidPodsEntry struct {
...
@@ -2953,7 +2953,7 @@ type PreferAvoidPodsEntry struct {
type
PodSignature
struct
{
type
PodSignature
struct
{
// Reference to controller whose pods should avoid this node.
// Reference to controller whose pods should avoid this node.
// +optional
// +optional
PodController
*
OwnerReference
`json:"podController,omitempty" protobuf:"bytes,1,opt,name=podController"`
PodController
*
metav1
.
OwnerReference
`json:"podController,omitempty" protobuf:"bytes,1,opt,name=podController"`
}
}
// Describe a container image
// Describe a container image
...
@@ -3387,26 +3387,6 @@ type ServiceProxyOptions struct {
...
@@ -3387,26 +3387,6 @@ type ServiceProxyOptions struct {
Path
string
`json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`
Path
string
`json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`
}
}
// OwnerReference contains enough information to let you identify an owning
// object. Currently, an owning object must be in the same namespace, so there
// is no namespace field.
type
OwnerReference
struct
{
// API version of the referent.
APIVersion
string
`json:"apiVersion" protobuf:"bytes,5,opt,name=apiVersion"`
// Kind of the referent.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds
Kind
string
`json:"kind" protobuf:"bytes,1,opt,name=kind"`
// Name of the referent.
// More info: http://kubernetes.io/docs/user-guide/identifiers#names
Name
string
`json:"name" protobuf:"bytes,3,opt,name=name"`
// UID of the referent.
// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
UID
types
.
UID
`json:"uid" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"`
// If true, this reference points to the managing controller.
// +optional
Controller
*
bool
`json:"controller,omitempty" protobuf:"varint,6,opt,name=controller"`
}
// ObjectReference contains enough information to let you inspect or modify the referred object.
// ObjectReference contains enough information to let you inspect or modify the referred object.
type
ObjectReference
struct
{
type
ObjectReference
struct
{
// Kind of the referent.
// Kind of the referent.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment