mirror of
https://github.com/rancher/types.git
synced 2025-09-17 07:19:17 +00:00
Merge pull request #1116 from ibuildthecloud/master
Add more ObjectClusterName implementations
This commit is contained in:
@@ -65,6 +65,10 @@ type Node struct {
|
||||
Status NodeStatus `json:"status"`
|
||||
}
|
||||
|
||||
func (in *Node) ObjClusterName() string {
|
||||
return in.Namespace
|
||||
}
|
||||
|
||||
type MetadataUpdate struct {
|
||||
Labels MapDelta `json:"labels,omitempty"`
|
||||
Annotations MapDelta `json:"annotations,omitempty"`
|
||||
|
@@ -18,6 +18,10 @@ type App struct {
|
||||
Status AppStatus `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (a *App) ObjClusterName() string {
|
||||
return a.Spec.ObjClusterName()
|
||||
}
|
||||
|
||||
type AppSpec struct {
|
||||
ProjectName string `json:"projectName,omitempty" norman:"type=reference[/v3/schemas/project]"`
|
||||
Description string `json:"description,omitempty"`
|
||||
|
Reference in New Issue
Block a user