1
0
mirror of https://github.com/rancher/types.git synced 2025-09-02 13:45:51 +00:00

Cleanup references

This commit is contained in:
Darren Shepherd
2018-02-13 16:46:50 -07:00
parent 9e096de9f5
commit cbabeef819
9 changed files with 13 additions and 15 deletions

View File

@@ -439,7 +439,7 @@ func podTypes(schemas *types.Schemas) *types.Schemas {
}{}).
MustImport(&Version, v1.PodSpec{}, struct {
Scheduling *Scheduling
NodeName string `norman:"type=reference[node]"`
NodeName string `norman:"type=reference[/v3/schemas/node]"`
}{}).
MustImport(&Version, v1.Pod{}, projectOverride{}, struct {
Description string `json:"description"`

View File

@@ -66,7 +66,7 @@ type Scheduling struct {
}
type NodeScheduling struct {
NodeName string `json:"nodeName" norman:"type=reference[node]"`
NodeName string `json:"nodeName" norman:"type=reference[/v3/schemas/node]"`
RequireAll []string
RequireAny []string
Preferred []string

View File

@@ -15,7 +15,7 @@ type App struct {
}
type AppSpec struct {
ProjectName string `json:"projectName,omitempty" norman:"type=reference[project]"`
ProjectName string `json:"projectName,omitempty" norman:"type=reference[/v3/schemas/project]"`
Description string `json:"description,omitempty"`
InstallNamespace string `json:"installNamespace,omitempty"`
ExternalID string `json:"externalId,omitempty"`

View File

@@ -85,7 +85,7 @@ type SSHAuth struct {
type NamespacedSSHAuth SSHAuth
type PublicEndpoint struct {
NodeName string `json:"nodeName,omitempty" norman:"type=reference[node],nocreate,noupdate"`
NodeName string `json:"nodeName,omitempty" norman:"type=reference[/v3/schemas/node],nocreate,noupdate"`
Address string `json:"address,omitempty" norman:"nocreate,noupdate"`
Port int32 `json:"port,omitempty" norman:"nocreate,noupdate"`
Protocol string `json:"protocol,omitempty" norman:"nocreate,noupdate"`