1
0
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:
Darren Shepherd
2020-03-03 09:21:05 -07:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -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"`

View File

@@ -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"`