1
0
mirror of https://github.com/rancher/types.git synced 2025-08-01 04:57:05 +00:00

Go generate

This commit is contained in:
Steven Crespo 2021-01-13 14:48:42 -08:00
parent 81f3a27643
commit 081d7763f5
3 changed files with 4 additions and 38 deletions

View File

@ -7,8 +7,8 @@ const (
ContainerFieldCapDrop = "capDrop"
ContainerFieldCommand = "command"
ContainerFieldEntrypoint = "entrypoint"
ContainerFieldEnvironment = "environment"
ContainerFieldEnvironmentFrom = "environmentFrom"
ContainerFieldEnv = "env"
ContainerFieldEnvFrom = "envFrom"
ContainerFieldExitCode = "exitCode"
ContainerFieldImage = "image"
ContainerFieldImagePullPolicy = "imagePullPolicy"
@ -48,8 +48,8 @@ type Container struct {
CapDrop []string `json:"capDrop,omitempty" yaml:"capDrop,omitempty"`
Command []string `json:"command,omitempty" yaml:"command,omitempty"`
Entrypoint []string `json:"entrypoint,omitempty" yaml:"entrypoint,omitempty"`
Environment []EnvironmentVar `json:"environment,omitempty" yaml:"environment,omitempty"`
EnvironmentFrom []EnvironmentFrom `json:"environmentFrom,omitempty" yaml:"environmentFrom,omitempty"`
Env []EnvVar `json:"env,omitempty" yaml:"env,omitempty"`
EnvFrom []EnvFromSource `json:"envFrom,omitempty" yaml:"envFrom,omitempty"`
ExitCode *int64 `json:"exitCode,omitempty" yaml:"exitCode,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
ImagePullPolicy string `json:"imagePullPolicy,omitempty" yaml:"imagePullPolicy,omitempty"`

View File

@ -1,20 +0,0 @@
package client
const (
EnvironmentFromType = "environmentFrom"
EnvironmentFromFieldOptional = "optional"
EnvironmentFromFieldPrefix = "prefix"
EnvironmentFromFieldSource = "source"
EnvironmentFromFieldSourceKey = "sourceKey"
EnvironmentFromFieldSourceName = "sourceName"
EnvironmentFromFieldTargetKey = "targetKey"
)
type EnvironmentFrom struct {
Optional bool `json:"optional,omitempty" yaml:"optional,omitempty"`
Prefix string `json:"prefix,omitempty" yaml:"prefix,omitempty"`
Source string `json:"source,omitempty" yaml:"source,omitempty"`
SourceKey string `json:"sourceKey,omitempty" yaml:"sourceKey,omitempty"`
SourceName string `json:"sourceName,omitempty" yaml:"sourceName,omitempty"`
TargetKey string `json:"targetKey,omitempty" yaml:"targetKey,omitempty"`
}

View File

@ -1,14 +0,0 @@
package client
const (
EnvironmentVarType = "environmentVar"
EnvironmentVarFieldName = "name"
EnvironmentVarFieldValue = "value"
EnvironmentVarFieldValueFrom = "valueFrom"
)
type EnvironmentVar struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Value string `json:"value,omitempty" yaml:"value,omitempty"`
ValueFrom *EnvironmentFrom `json:"valueFrom,omitempty" yaml:"valueFrom,omitempty"`
}