mirror of
https://github.com/rancher/types.git
synced 2025-09-02 13:45:51 +00:00
Cleanup references
This commit is contained in:
@@ -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"`
|
||||
|
@@ -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
|
||||
|
@@ -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"`
|
||||
|
@@ -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"`
|
||||
|
Reference in New Issue
Block a user