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
34f62ae4
Commit
34f62ae4
authored
Aug 21, 2018
by
Xing Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add APIGroup to TypedLocalObjectReference
parent
2a442db8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
types.go
pkg/apis/core/types.go
+5
-5
types.go
staging/src/k8s.io/api/core/v1/types.go
+6
-8
No files found.
pkg/apis/core/types.go
View file @
34f62ae4
...
...
@@ -3965,12 +3965,12 @@ type LocalObjectReference struct {
// TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
type
TypedLocalObjectReference
struct
{
// Name of the referent.
// +optional
Name
string
// Kind of the referent.
// +optional
// APIGroup is the group for the resource being referenced
APIGroup
string
// Kind is the type of resource being referenced
Kind
string
// Name is the name of resource being referenced
Name
string
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
...
...
staging/src/k8s.io/api/core/v1/types.go
View file @
34f62ae4
...
...
@@ -4484,14 +4484,12 @@ type LocalObjectReference struct {
// TypedLocalObjectReference contains enough information to let you locate the
// typed referenced object inside the same namespace.
type
TypedLocalObjectReference
struct
{
// Name of the referent.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
// +optional
Name
string
`json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
// Kind of the referent.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
// +optional
Kind
string
`json:"kind,omitempty" protobuf:"bytes,2,opt,name=kind"`
// APIGroup is the group for the resource being referenced
APIGroup
string
`json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"`
// Kind is the type of resource being referenced
Kind
string
`json:"kind" protobuf:"bytes,2,opt,name=kind"`
// Name is the name of resource being referenced
Name
string
`json:"name" protobuf:"bytes,3,opt,name=name"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
...
...
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