1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 12:48:45 +00:00

Generated changes

This commit is contained in:
Alena Prokharchyk
2018-07-11 16:48:03 -07:00
parent b840a3a9e6
commit 15d6dfa2d0
154 changed files with 875 additions and 2048 deletions

View File

@@ -7,6 +7,7 @@ import (
const (
ConfigMapType = "configMap"
ConfigMapFieldAnnotations = "annotations"
ConfigMapFieldBinaryData = "binaryData"
ConfigMapFieldCreated = "created"
ConfigMapFieldCreatorID = "creatorId"
ConfigMapFieldData = "data"
@@ -22,6 +23,7 @@ const (
type ConfigMap struct {
types.Resource
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
BinaryData map[string]string `json:"binaryData,omitempty" yaml:"binaryData,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
Data map[string]string `json:"data,omitempty" yaml:"data,omitempty"`

View File

@@ -23,6 +23,7 @@ const (
ContainerFieldReadinessProbe = "readinessProbe"
ContainerFieldResources = "resources"
ContainerFieldRestartCount = "restartCount"
ContainerFieldRunAsGroup = "runAsGroup"
ContainerFieldRunAsNonRoot = "runAsNonRoot"
ContainerFieldState = "state"
ContainerFieldStdin = "stdin"
@@ -33,6 +34,7 @@ const (
ContainerFieldTransitioning = "transitioning"
ContainerFieldTransitioningMessage = "transitioningMessage"
ContainerFieldUid = "uid"
ContainerFieldVolumeDevices = "volumeDevices"
ContainerFieldVolumeMounts = "volumeMounts"
ContainerFieldWorkingDir = "workingDir"
)
@@ -59,6 +61,7 @@ type Container struct {
ReadinessProbe *Probe `json:"readinessProbe,omitempty" yaml:"readinessProbe,omitempty"`
Resources *ResourceRequirements `json:"resources,omitempty" yaml:"resources,omitempty"`
RestartCount int64 `json:"restartCount,omitempty" yaml:"restartCount,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
Stdin bool `json:"stdin,omitempty" yaml:"stdin,omitempty"`
@@ -69,6 +72,7 @@ type Container struct {
Transitioning string `json:"transitioning,omitempty" yaml:"transitioning,omitempty"`
TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`
VolumeDevices []VolumeDevice `json:"volumeDevices,omitempty" yaml:"volumeDevices,omitempty"`
VolumeMounts []VolumeMount `json:"volumeMounts,omitempty" yaml:"volumeMounts,omitempty"`
WorkingDir string `json:"workingDir,omitempty" yaml:"workingDir,omitempty"`
}

View File

@@ -14,6 +14,7 @@ const (
CronJobFieldCreatorID = "creatorId"
CronJobFieldCronJobConfig = "cronJobConfig"
CronJobFieldCronJobStatus = "cronJobStatus"
CronJobFieldDNSConfig = "dnsConfig"
CronJobFieldDNSPolicy = "dnsPolicy"
CronJobFieldFsgid = "fsgid"
CronJobFieldGids = "gids"
@@ -34,11 +35,13 @@ const (
CronJobFieldPublicEndpoints = "publicEndpoints"
CronJobFieldRemoved = "removed"
CronJobFieldRestartPolicy = "restartPolicy"
CronJobFieldRunAsGroup = "runAsGroup"
CronJobFieldRunAsNonRoot = "runAsNonRoot"
CronJobFieldSchedulerName = "schedulerName"
CronJobFieldScheduling = "scheduling"
CronJobFieldSelector = "selector"
CronJobFieldServiceAccountName = "serviceAccountName"
CronJobFieldShareProcessNamespace = "shareProcessNamespace"
CronJobFieldState = "state"
CronJobFieldSubdomain = "subdomain"
CronJobFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
@@ -61,6 +64,7 @@ type CronJob struct {
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
CronJobConfig *CronJobConfig `json:"cronJobConfig,omitempty" yaml:"cronJobConfig,omitempty"`
CronJobStatus *CronJobStatus `json:"cronJobStatus,omitempty" yaml:"cronJobStatus,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -81,11 +85,13 @@ type CronJob struct {
PublicEndpoints []PublicEndpoint `json:"publicEndpoints,omitempty" yaml:"publicEndpoints,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`

View File

@@ -6,6 +6,7 @@ const (
CronJobSpecFieldAutomountServiceAccountToken = "automountServiceAccountToken"
CronJobSpecFieldContainers = "containers"
CronJobSpecFieldCronJobConfig = "cronJobConfig"
CronJobSpecFieldDNSConfig = "dnsConfig"
CronJobSpecFieldDNSPolicy = "dnsPolicy"
CronJobSpecFieldFsgid = "fsgid"
CronJobSpecFieldGids = "gids"
@@ -20,11 +21,13 @@ const (
CronJobSpecFieldPriority = "priority"
CronJobSpecFieldPriorityClassName = "priorityClassName"
CronJobSpecFieldRestartPolicy = "restartPolicy"
CronJobSpecFieldRunAsGroup = "runAsGroup"
CronJobSpecFieldRunAsNonRoot = "runAsNonRoot"
CronJobSpecFieldSchedulerName = "schedulerName"
CronJobSpecFieldScheduling = "scheduling"
CronJobSpecFieldSelector = "selector"
CronJobSpecFieldServiceAccountName = "serviceAccountName"
CronJobSpecFieldShareProcessNamespace = "shareProcessNamespace"
CronJobSpecFieldSubdomain = "subdomain"
CronJobSpecFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
CronJobSpecFieldUid = "uid"
@@ -36,6 +39,7 @@ type CronJobSpec struct {
AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" yaml:"automountServiceAccountToken,omitempty"`
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
CronJobConfig *CronJobConfig `json:"cronJobConfig,omitempty" yaml:"cronJobConfig,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -50,11 +54,13 @@ type CronJobSpec struct {
Priority *int64 `json:"priority,omitempty" yaml:"priority,omitempty"`
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`

View File

@@ -0,0 +1,24 @@
package client
const (
CSIPersistentVolumeSourceType = "csiPersistentVolumeSource"
CSIPersistentVolumeSourceFieldControllerPublishSecretRef = "controllerPublishSecretRef"
CSIPersistentVolumeSourceFieldDriver = "driver"
CSIPersistentVolumeSourceFieldFSType = "fsType"
CSIPersistentVolumeSourceFieldNodePublishSecretRef = "nodePublishSecretRef"
CSIPersistentVolumeSourceFieldNodeStageSecretRef = "nodeStageSecretRef"
CSIPersistentVolumeSourceFieldReadOnly = "readOnly"
CSIPersistentVolumeSourceFieldVolumeAttributes = "volumeAttributes"
CSIPersistentVolumeSourceFieldVolumeHandle = "volumeHandle"
)
type CSIPersistentVolumeSource struct {
ControllerPublishSecretRef *SecretReference `json:"controllerPublishSecretRef,omitempty" yaml:"controllerPublishSecretRef,omitempty"`
Driver string `json:"driver,omitempty" yaml:"driver,omitempty"`
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
NodePublishSecretRef *SecretReference `json:"nodePublishSecretRef,omitempty" yaml:"nodePublishSecretRef,omitempty"`
NodeStageSecretRef *SecretReference `json:"nodeStageSecretRef,omitempty" yaml:"nodeStageSecretRef,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
VolumeAttributes map[string]string `json:"volumeAttributes,omitempty" yaml:"volumeAttributes,omitempty"`
VolumeHandle string `json:"volumeHandle,omitempty" yaml:"volumeHandle,omitempty"`
}

View File

@@ -12,6 +12,7 @@ const (
DaemonSetFieldContainers = "containers"
DaemonSetFieldCreated = "created"
DaemonSetFieldCreatorID = "creatorId"
DaemonSetFieldDNSConfig = "dnsConfig"
DaemonSetFieldDNSPolicy = "dnsPolicy"
DaemonSetFieldDaemonSetConfig = "daemonSetConfig"
DaemonSetFieldDaemonSetStatus = "daemonSetStatus"
@@ -34,11 +35,13 @@ const (
DaemonSetFieldPublicEndpoints = "publicEndpoints"
DaemonSetFieldRemoved = "removed"
DaemonSetFieldRestartPolicy = "restartPolicy"
DaemonSetFieldRunAsGroup = "runAsGroup"
DaemonSetFieldRunAsNonRoot = "runAsNonRoot"
DaemonSetFieldSchedulerName = "schedulerName"
DaemonSetFieldScheduling = "scheduling"
DaemonSetFieldSelector = "selector"
DaemonSetFieldServiceAccountName = "serviceAccountName"
DaemonSetFieldShareProcessNamespace = "shareProcessNamespace"
DaemonSetFieldState = "state"
DaemonSetFieldSubdomain = "subdomain"
DaemonSetFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
@@ -59,6 +62,7 @@ type DaemonSet struct {
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
DaemonSetConfig *DaemonSetConfig `json:"daemonSetConfig,omitempty" yaml:"daemonSetConfig,omitempty"`
DaemonSetStatus *DaemonSetStatus `json:"daemonSetStatus,omitempty" yaml:"daemonSetStatus,omitempty"`
@@ -81,11 +85,13 @@ type DaemonSet struct {
PublicEndpoints []PublicEndpoint `json:"publicEndpoints,omitempty" yaml:"publicEndpoints,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`

View File

@@ -0,0 +1,18 @@
package client
const (
DaemonSetConditionType = "daemonSetCondition"
DaemonSetConditionFieldLastTransitionTime = "lastTransitionTime"
DaemonSetConditionFieldMessage = "message"
DaemonSetConditionFieldReason = "reason"
DaemonSetConditionFieldStatus = "status"
DaemonSetConditionFieldType = "type"
)
type DaemonSetCondition struct {
LastTransitionTime string `json:"lastTransitionTime,omitempty" yaml:"lastTransitionTime,omitempty"`
Message string `json:"message,omitempty" yaml:"message,omitempty"`
Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`
Status string `json:"status,omitempty" yaml:"status,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
}

View File

@@ -5,6 +5,7 @@ const (
DaemonSetSpecFieldActiveDeadlineSeconds = "activeDeadlineSeconds"
DaemonSetSpecFieldAutomountServiceAccountToken = "automountServiceAccountToken"
DaemonSetSpecFieldContainers = "containers"
DaemonSetSpecFieldDNSConfig = "dnsConfig"
DaemonSetSpecFieldDNSPolicy = "dnsPolicy"
DaemonSetSpecFieldDaemonSetConfig = "daemonSetConfig"
DaemonSetSpecFieldFsgid = "fsgid"
@@ -20,11 +21,13 @@ const (
DaemonSetSpecFieldPriority = "priority"
DaemonSetSpecFieldPriorityClassName = "priorityClassName"
DaemonSetSpecFieldRestartPolicy = "restartPolicy"
DaemonSetSpecFieldRunAsGroup = "runAsGroup"
DaemonSetSpecFieldRunAsNonRoot = "runAsNonRoot"
DaemonSetSpecFieldSchedulerName = "schedulerName"
DaemonSetSpecFieldScheduling = "scheduling"
DaemonSetSpecFieldSelector = "selector"
DaemonSetSpecFieldServiceAccountName = "serviceAccountName"
DaemonSetSpecFieldShareProcessNamespace = "shareProcessNamespace"
DaemonSetSpecFieldSubdomain = "subdomain"
DaemonSetSpecFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
DaemonSetSpecFieldUid = "uid"
@@ -35,6 +38,7 @@ type DaemonSetSpec struct {
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" yaml:"activeDeadlineSeconds,omitempty"`
AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" yaml:"automountServiceAccountToken,omitempty"`
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
DaemonSetConfig *DaemonSetConfig `json:"daemonSetConfig,omitempty" yaml:"daemonSetConfig,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
@@ -50,11 +54,13 @@ type DaemonSetSpec struct {
Priority *int64 `json:"priority,omitempty" yaml:"priority,omitempty"`
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`

View File

@@ -3,6 +3,7 @@ package client
const (
DaemonSetStatusType = "daemonSetStatus"
DaemonSetStatusFieldCollisionCount = "collisionCount"
DaemonSetStatusFieldConditions = "conditions"
DaemonSetStatusFieldCurrentNumberScheduled = "currentNumberScheduled"
DaemonSetStatusFieldDesiredNumberScheduled = "desiredNumberScheduled"
DaemonSetStatusFieldNumberAvailable = "numberAvailable"
@@ -14,13 +15,14 @@ const (
)
type DaemonSetStatus struct {
CollisionCount *int64 `json:"collisionCount,omitempty" yaml:"collisionCount,omitempty"`
CurrentNumberScheduled int64 `json:"currentNumberScheduled,omitempty" yaml:"currentNumberScheduled,omitempty"`
DesiredNumberScheduled int64 `json:"desiredNumberScheduled,omitempty" yaml:"desiredNumberScheduled,omitempty"`
NumberAvailable int64 `json:"numberAvailable,omitempty" yaml:"numberAvailable,omitempty"`
NumberMisscheduled int64 `json:"numberMisscheduled,omitempty" yaml:"numberMisscheduled,omitempty"`
NumberReady int64 `json:"numberReady,omitempty" yaml:"numberReady,omitempty"`
NumberUnavailable int64 `json:"numberUnavailable,omitempty" yaml:"numberUnavailable,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty" yaml:"observedGeneration,omitempty"`
UpdatedNumberScheduled int64 `json:"updatedNumberScheduled,omitempty" yaml:"updatedNumberScheduled,omitempty"`
CollisionCount *int64 `json:"collisionCount,omitempty" yaml:"collisionCount,omitempty"`
Conditions []DaemonSetCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
CurrentNumberScheduled int64 `json:"currentNumberScheduled,omitempty" yaml:"currentNumberScheduled,omitempty"`
DesiredNumberScheduled int64 `json:"desiredNumberScheduled,omitempty" yaml:"desiredNumberScheduled,omitempty"`
NumberAvailable int64 `json:"numberAvailable,omitempty" yaml:"numberAvailable,omitempty"`
NumberMisscheduled int64 `json:"numberMisscheduled,omitempty" yaml:"numberMisscheduled,omitempty"`
NumberReady int64 `json:"numberReady,omitempty" yaml:"numberReady,omitempty"`
NumberUnavailable int64 `json:"numberUnavailable,omitempty" yaml:"numberUnavailable,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty" yaml:"observedGeneration,omitempty"`
UpdatedNumberScheduled int64 `json:"updatedNumberScheduled,omitempty" yaml:"updatedNumberScheduled,omitempty"`
}

View File

@@ -12,6 +12,7 @@ const (
DeploymentFieldContainers = "containers"
DeploymentFieldCreated = "created"
DeploymentFieldCreatorID = "creatorId"
DeploymentFieldDNSConfig = "dnsConfig"
DeploymentFieldDNSPolicy = "dnsPolicy"
DeploymentFieldDeploymentConfig = "deploymentConfig"
DeploymentFieldDeploymentStatus = "deploymentStatus"
@@ -35,12 +36,14 @@ const (
DeploymentFieldPublicEndpoints = "publicEndpoints"
DeploymentFieldRemoved = "removed"
DeploymentFieldRestartPolicy = "restartPolicy"
DeploymentFieldRunAsGroup = "runAsGroup"
DeploymentFieldRunAsNonRoot = "runAsNonRoot"
DeploymentFieldScale = "scale"
DeploymentFieldSchedulerName = "schedulerName"
DeploymentFieldScheduling = "scheduling"
DeploymentFieldSelector = "selector"
DeploymentFieldServiceAccountName = "serviceAccountName"
DeploymentFieldShareProcessNamespace = "shareProcessNamespace"
DeploymentFieldState = "state"
DeploymentFieldSubdomain = "subdomain"
DeploymentFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
@@ -61,6 +64,7 @@ type Deployment struct {
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
DeploymentConfig *DeploymentConfig `json:"deploymentConfig,omitempty" yaml:"deploymentConfig,omitempty"`
DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" yaml:"deploymentStatus,omitempty"`
@@ -84,12 +88,14 @@ type Deployment struct {
PublicEndpoints []PublicEndpoint `json:"publicEndpoints,omitempty" yaml:"publicEndpoints,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
Scale *int64 `json:"scale,omitempty" yaml:"scale,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`

View File

@@ -5,6 +5,7 @@ const (
DeploymentSpecFieldActiveDeadlineSeconds = "activeDeadlineSeconds"
DeploymentSpecFieldAutomountServiceAccountToken = "automountServiceAccountToken"
DeploymentSpecFieldContainers = "containers"
DeploymentSpecFieldDNSConfig = "dnsConfig"
DeploymentSpecFieldDNSPolicy = "dnsPolicy"
DeploymentSpecFieldDeploymentConfig = "deploymentConfig"
DeploymentSpecFieldFsgid = "fsgid"
@@ -21,12 +22,14 @@ const (
DeploymentSpecFieldPriority = "priority"
DeploymentSpecFieldPriorityClassName = "priorityClassName"
DeploymentSpecFieldRestartPolicy = "restartPolicy"
DeploymentSpecFieldRunAsGroup = "runAsGroup"
DeploymentSpecFieldRunAsNonRoot = "runAsNonRoot"
DeploymentSpecFieldScale = "scale"
DeploymentSpecFieldSchedulerName = "schedulerName"
DeploymentSpecFieldScheduling = "scheduling"
DeploymentSpecFieldSelector = "selector"
DeploymentSpecFieldServiceAccountName = "serviceAccountName"
DeploymentSpecFieldShareProcessNamespace = "shareProcessNamespace"
DeploymentSpecFieldSubdomain = "subdomain"
DeploymentSpecFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
DeploymentSpecFieldUid = "uid"
@@ -37,6 +40,7 @@ type DeploymentSpec struct {
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" yaml:"activeDeadlineSeconds,omitempty"`
AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" yaml:"automountServiceAccountToken,omitempty"`
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
DeploymentConfig *DeploymentConfig `json:"deploymentConfig,omitempty" yaml:"deploymentConfig,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
@@ -53,12 +57,14 @@ type DeploymentSpec struct {
Priority *int64 `json:"priority,omitempty" yaml:"priority,omitempty"`
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
Scale *int64 `json:"scale,omitempty" yaml:"scale,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`

View File

@@ -0,0 +1,18 @@
package client
const (
FlexPersistentVolumeSourceType = "flexPersistentVolumeSource"
FlexPersistentVolumeSourceFieldDriver = "driver"
FlexPersistentVolumeSourceFieldFSType = "fsType"
FlexPersistentVolumeSourceFieldOptions = "options"
FlexPersistentVolumeSourceFieldReadOnly = "readOnly"
FlexPersistentVolumeSourceFieldSecretRef = "secretRef"
)
type FlexPersistentVolumeSource struct {
Driver string `json:"driver,omitempty" yaml:"driver,omitempty"`
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
Options map[string]string `json:"options,omitempty" yaml:"options,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SecretRef *SecretReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
}

View File

@@ -0,0 +1,30 @@
package client
const (
ISCSIPersistentVolumeSourceType = "iscsiPersistentVolumeSource"
ISCSIPersistentVolumeSourceFieldDiscoveryCHAPAuth = "chapAuthDiscovery"
ISCSIPersistentVolumeSourceFieldFSType = "fsType"
ISCSIPersistentVolumeSourceFieldIQN = "iqn"
ISCSIPersistentVolumeSourceFieldISCSIInterface = "iscsiInterface"
ISCSIPersistentVolumeSourceFieldInitiatorName = "initiatorName"
ISCSIPersistentVolumeSourceFieldLun = "lun"
ISCSIPersistentVolumeSourceFieldPortals = "portals"
ISCSIPersistentVolumeSourceFieldReadOnly = "readOnly"
ISCSIPersistentVolumeSourceFieldSecretRef = "secretRef"
ISCSIPersistentVolumeSourceFieldSessionCHAPAuth = "chapAuthSession"
ISCSIPersistentVolumeSourceFieldTargetPortal = "targetPortal"
)
type ISCSIPersistentVolumeSource struct {
DiscoveryCHAPAuth bool `json:"chapAuthDiscovery,omitempty" yaml:"chapAuthDiscovery,omitempty"`
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
IQN string `json:"iqn,omitempty" yaml:"iqn,omitempty"`
ISCSIInterface string `json:"iscsiInterface,omitempty" yaml:"iscsiInterface,omitempty"`
InitiatorName string `json:"initiatorName,omitempty" yaml:"initiatorName,omitempty"`
Lun int64 `json:"lun,omitempty" yaml:"lun,omitempty"`
Portals []string `json:"portals,omitempty" yaml:"portals,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SecretRef *SecretReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
SessionCHAPAuth bool `json:"chapAuthSession,omitempty" yaml:"chapAuthSession,omitempty"`
TargetPortal string `json:"targetPortal,omitempty" yaml:"targetPortal,omitempty"`
}

View File

@@ -12,6 +12,7 @@ const (
JobFieldContainers = "containers"
JobFieldCreated = "created"
JobFieldCreatorID = "creatorId"
JobFieldDNSConfig = "dnsConfig"
JobFieldDNSPolicy = "dnsPolicy"
JobFieldFsgid = "fsgid"
JobFieldGids = "gids"
@@ -34,11 +35,13 @@ const (
JobFieldPublicEndpoints = "publicEndpoints"
JobFieldRemoved = "removed"
JobFieldRestartPolicy = "restartPolicy"
JobFieldRunAsGroup = "runAsGroup"
JobFieldRunAsNonRoot = "runAsNonRoot"
JobFieldSchedulerName = "schedulerName"
JobFieldScheduling = "scheduling"
JobFieldSelector = "selector"
JobFieldServiceAccountName = "serviceAccountName"
JobFieldShareProcessNamespace = "shareProcessNamespace"
JobFieldState = "state"
JobFieldSubdomain = "subdomain"
JobFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
@@ -59,6 +62,7 @@ type Job struct {
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -81,11 +85,13 @@ type Job struct {
PublicEndpoints []PublicEndpoint `json:"publicEndpoints,omitempty" yaml:"publicEndpoints,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`

View File

@@ -5,6 +5,7 @@ const (
JobSpecFieldActiveDeadlineSeconds = "activeDeadlineSeconds"
JobSpecFieldAutomountServiceAccountToken = "automountServiceAccountToken"
JobSpecFieldContainers = "containers"
JobSpecFieldDNSConfig = "dnsConfig"
JobSpecFieldDNSPolicy = "dnsPolicy"
JobSpecFieldFsgid = "fsgid"
JobSpecFieldGids = "gids"
@@ -20,11 +21,13 @@ const (
JobSpecFieldPriority = "priority"
JobSpecFieldPriorityClassName = "priorityClassName"
JobSpecFieldRestartPolicy = "restartPolicy"
JobSpecFieldRunAsGroup = "runAsGroup"
JobSpecFieldRunAsNonRoot = "runAsNonRoot"
JobSpecFieldSchedulerName = "schedulerName"
JobSpecFieldScheduling = "scheduling"
JobSpecFieldSelector = "selector"
JobSpecFieldServiceAccountName = "serviceAccountName"
JobSpecFieldShareProcessNamespace = "shareProcessNamespace"
JobSpecFieldSubdomain = "subdomain"
JobSpecFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
JobSpecFieldUid = "uid"
@@ -35,6 +38,7 @@ type JobSpec struct {
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" yaml:"activeDeadlineSeconds,omitempty"`
AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" yaml:"automountServiceAccountToken,omitempty"`
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -50,11 +54,13 @@ type JobSpec struct {
Priority *int64 `json:"priority,omitempty" yaml:"priority,omitempty"`
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`

View File

@@ -5,6 +5,7 @@ const (
JobTemplateSpecFieldActiveDeadlineSeconds = "activeDeadlineSeconds"
JobTemplateSpecFieldAutomountServiceAccountToken = "automountServiceAccountToken"
JobTemplateSpecFieldContainers = "containers"
JobTemplateSpecFieldDNSConfig = "dnsConfig"
JobTemplateSpecFieldDNSPolicy = "dnsPolicy"
JobTemplateSpecFieldFsgid = "fsgid"
JobTemplateSpecFieldGids = "gids"
@@ -21,11 +22,13 @@ const (
JobTemplateSpecFieldPriority = "priority"
JobTemplateSpecFieldPriorityClassName = "priorityClassName"
JobTemplateSpecFieldRestartPolicy = "restartPolicy"
JobTemplateSpecFieldRunAsGroup = "runAsGroup"
JobTemplateSpecFieldRunAsNonRoot = "runAsNonRoot"
JobTemplateSpecFieldSchedulerName = "schedulerName"
JobTemplateSpecFieldScheduling = "scheduling"
JobTemplateSpecFieldSelector = "selector"
JobTemplateSpecFieldServiceAccountName = "serviceAccountName"
JobTemplateSpecFieldShareProcessNamespace = "shareProcessNamespace"
JobTemplateSpecFieldSubdomain = "subdomain"
JobTemplateSpecFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
JobTemplateSpecFieldUid = "uid"
@@ -36,6 +39,7 @@ type JobTemplateSpec struct {
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" yaml:"activeDeadlineSeconds,omitempty"`
AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" yaml:"automountServiceAccountToken,omitempty"`
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -52,11 +56,13 @@ type JobTemplateSpec struct {
Priority *int64 `json:"priority,omitempty" yaml:"priority,omitempty"`
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`

View File

@@ -25,6 +25,7 @@ const (
PersistentVolumeClaimFieldTransitioningMessage = "transitioningMessage"
PersistentVolumeClaimFieldUuid = "uuid"
PersistentVolumeClaimFieldVolumeId = "volumeId"
PersistentVolumeClaimFieldVolumeMode = "volumeMode"
)
type PersistentVolumeClaim struct {
@@ -48,6 +49,7 @@ type PersistentVolumeClaim struct {
TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"`
Uuid string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
VolumeId string `json:"volumeId,omitempty" yaml:"volumeId,omitempty"`
VolumeMode string `json:"volumeMode,omitempty" yaml:"volumeMode,omitempty"`
}
type PersistentVolumeClaimCollection struct {
types.Collection

View File

@@ -7,6 +7,7 @@ const (
PersistentVolumeClaimSpecFieldSelector = "selector"
PersistentVolumeClaimSpecFieldStorageClassId = "storageClassId"
PersistentVolumeClaimSpecFieldVolumeId = "volumeId"
PersistentVolumeClaimSpecFieldVolumeMode = "volumeMode"
)
type PersistentVolumeClaimSpec struct {
@@ -15,4 +16,5 @@ type PersistentVolumeClaimSpec struct {
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
StorageClassId string `json:"storageClassId,omitempty" yaml:"storageClassId,omitempty"`
VolumeId string `json:"volumeId,omitempty" yaml:"volumeId,omitempty"`
VolumeMode string `json:"volumeMode,omitempty" yaml:"volumeMode,omitempty"`
}

View File

@@ -6,6 +6,7 @@ const (
PersistentVolumeSpecFieldAccessModes = "accessModes"
PersistentVolumeSpecFieldAzureDisk = "azureDisk"
PersistentVolumeSpecFieldAzureFile = "azureFile"
PersistentVolumeSpecFieldCSI = "csi"
PersistentVolumeSpecFieldCapacity = "capacity"
PersistentVolumeSpecFieldCephFS = "cephfs"
PersistentVolumeSpecFieldCinder = "cinder"
@@ -20,6 +21,7 @@ const (
PersistentVolumeSpecFieldLocal = "local"
PersistentVolumeSpecFieldMountOptions = "mountOptions"
PersistentVolumeSpecFieldNFS = "nfs"
PersistentVolumeSpecFieldNodeAffinity = "nodeAffinity"
PersistentVolumeSpecFieldPersistentVolumeReclaimPolicy = "persistentVolumeReclaimPolicy"
PersistentVolumeSpecFieldPhotonPersistentDisk = "photonPersistentDisk"
PersistentVolumeSpecFieldPortworxVolume = "portworxVolume"
@@ -28,6 +30,7 @@ const (
PersistentVolumeSpecFieldScaleIO = "scaleIO"
PersistentVolumeSpecFieldStorageClassId = "storageClassId"
PersistentVolumeSpecFieldStorageOS = "storageos"
PersistentVolumeSpecFieldVolumeMode = "volumeMode"
PersistentVolumeSpecFieldVsphereVolume = "vsphereVolume"
)
@@ -36,27 +39,30 @@ type PersistentVolumeSpec struct {
AccessModes []string `json:"accessModes,omitempty" yaml:"accessModes,omitempty"`
AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty" yaml:"azureDisk,omitempty"`
AzureFile *AzureFilePersistentVolumeSource `json:"azureFile,omitempty" yaml:"azureFile,omitempty"`
CSI *CSIPersistentVolumeSource `json:"csi,omitempty" yaml:"csi,omitempty"`
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
CephFS *CephFSPersistentVolumeSource `json:"cephfs,omitempty" yaml:"cephfs,omitempty"`
Cinder *CinderVolumeSource `json:"cinder,omitempty" yaml:"cinder,omitempty"`
ClaimRef *ObjectReference `json:"claimRef,omitempty" yaml:"claimRef,omitempty"`
FC *FCVolumeSource `json:"fc,omitempty" yaml:"fc,omitempty"`
FlexVolume *FlexVolumeSource `json:"flexVolume,omitempty" yaml:"flexVolume,omitempty"`
FlexVolume *FlexPersistentVolumeSource `json:"flexVolume,omitempty" yaml:"flexVolume,omitempty"`
Flocker *FlockerVolumeSource `json:"flocker,omitempty" yaml:"flocker,omitempty"`
GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty" yaml:"gcePersistentDisk,omitempty"`
Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty" yaml:"glusterfs,omitempty"`
HostPath *HostPathVolumeSource `json:"hostPath,omitempty" yaml:"hostPath,omitempty"`
ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty" yaml:"iscsi,omitempty"`
ISCSI *ISCSIPersistentVolumeSource `json:"iscsi,omitempty" yaml:"iscsi,omitempty"`
Local *LocalVolumeSource `json:"local,omitempty" yaml:"local,omitempty"`
MountOptions []string `json:"mountOptions,omitempty" yaml:"mountOptions,omitempty"`
NFS *NFSVolumeSource `json:"nfs,omitempty" yaml:"nfs,omitempty"`
NodeAffinity *VolumeNodeAffinity `json:"nodeAffinity,omitempty" yaml:"nodeAffinity,omitempty"`
PersistentVolumeReclaimPolicy string `json:"persistentVolumeReclaimPolicy,omitempty" yaml:"persistentVolumeReclaimPolicy,omitempty"`
PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty" yaml:"photonPersistentDisk,omitempty"`
PortworxVolume *PortworxVolumeSource `json:"portworxVolume,omitempty" yaml:"portworxVolume,omitempty"`
Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty" yaml:"quobyte,omitempty"`
RBD *RBDVolumeSource `json:"rbd,omitempty" yaml:"rbd,omitempty"`
ScaleIO *ScaleIOVolumeSource `json:"scaleIO,omitempty" yaml:"scaleIO,omitempty"`
RBD *RBDPersistentVolumeSource `json:"rbd,omitempty" yaml:"rbd,omitempty"`
ScaleIO *ScaleIOPersistentVolumeSource `json:"scaleIO,omitempty" yaml:"scaleIO,omitempty"`
StorageClassId string `json:"storageClassId,omitempty" yaml:"storageClassId,omitempty"`
StorageOS *StorageOSPersistentVolumeSource `json:"storageos,omitempty" yaml:"storageos,omitempty"`
VolumeMode string `json:"volumeMode,omitempty" yaml:"volumeMode,omitempty"`
VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty" yaml:"vsphereVolume,omitempty"`
}

View File

@@ -12,6 +12,7 @@ const (
PodFieldContainers = "containers"
PodFieldCreated = "created"
PodFieldCreatorID = "creatorId"
PodFieldDNSConfig = "dnsConfig"
PodFieldDNSPolicy = "dnsPolicy"
PodFieldDescription = "description"
PodFieldFsgid = "fsgid"
@@ -33,10 +34,12 @@ const (
PodFieldPublicEndpoints = "publicEndpoints"
PodFieldRemoved = "removed"
PodFieldRestartPolicy = "restartPolicy"
PodFieldRunAsGroup = "runAsGroup"
PodFieldRunAsNonRoot = "runAsNonRoot"
PodFieldSchedulerName = "schedulerName"
PodFieldScheduling = "scheduling"
PodFieldServiceAccountName = "serviceAccountName"
PodFieldShareProcessNamespace = "shareProcessNamespace"
PodFieldState = "state"
PodFieldStatus = "status"
PodFieldSubdomain = "subdomain"
@@ -57,6 +60,7 @@ type Pod struct {
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
@@ -78,10 +82,12 @@ type Pod struct {
PublicEndpoints []PublicEndpoint `json:"publicEndpoints,omitempty" yaml:"publicEndpoints,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
Status *PodStatus `json:"status,omitempty" yaml:"status,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`

View File

@@ -0,0 +1,14 @@
package client
const (
PodDNSConfigType = "podDNSConfig"
PodDNSConfigFieldNameservers = "nameservers"
PodDNSConfigFieldOptions = "options"
PodDNSConfigFieldSearches = "searches"
)
type PodDNSConfig struct {
Nameservers []string `json:"nameservers,omitempty" yaml:"nameservers,omitempty"`
Options []PodDNSConfigOption `json:"options,omitempty" yaml:"options,omitempty"`
Searches []string `json:"searches,omitempty" yaml:"searches,omitempty"`
}

View File

@@ -0,0 +1,12 @@
package client
const (
PodDNSConfigOptionType = "podDNSConfigOption"
PodDNSConfigOptionFieldName = "name"
PodDNSConfigOptionFieldValue = "value"
)
type PodDNSConfigOption struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Value string `json:"value,omitempty" yaml:"value,omitempty"`
}

View File

@@ -4,6 +4,7 @@ const (
PodSecurityContextType = "podSecurityContext"
PodSecurityContextFieldFsgid = "fsgid"
PodSecurityContextFieldGids = "gids"
PodSecurityContextFieldRunAsGroup = "runAsGroup"
PodSecurityContextFieldRunAsNonRoot = "runAsNonRoot"
PodSecurityContextFieldUid = "uid"
)
@@ -11,6 +12,7 @@ const (
type PodSecurityContext struct {
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`
}

View File

@@ -5,6 +5,7 @@ const (
PodSpecFieldActiveDeadlineSeconds = "activeDeadlineSeconds"
PodSpecFieldAutomountServiceAccountToken = "automountServiceAccountToken"
PodSpecFieldContainers = "containers"
PodSpecFieldDNSConfig = "dnsConfig"
PodSpecFieldDNSPolicy = "dnsPolicy"
PodSpecFieldFsgid = "fsgid"
PodSpecFieldGids = "gids"
@@ -18,10 +19,12 @@ const (
PodSpecFieldPriority = "priority"
PodSpecFieldPriorityClassName = "priorityClassName"
PodSpecFieldRestartPolicy = "restartPolicy"
PodSpecFieldRunAsGroup = "runAsGroup"
PodSpecFieldRunAsNonRoot = "runAsNonRoot"
PodSpecFieldSchedulerName = "schedulerName"
PodSpecFieldScheduling = "scheduling"
PodSpecFieldServiceAccountName = "serviceAccountName"
PodSpecFieldShareProcessNamespace = "shareProcessNamespace"
PodSpecFieldSubdomain = "subdomain"
PodSpecFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
PodSpecFieldUid = "uid"
@@ -32,6 +35,7 @@ type PodSpec struct {
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" yaml:"activeDeadlineSeconds,omitempty"`
AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" yaml:"automountServiceAccountToken,omitempty"`
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -45,10 +49,12 @@ type PodSpec struct {
Priority *int64 `json:"priority,omitempty" yaml:"priority,omitempty"`
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`

View File

@@ -7,6 +7,7 @@ const (
PodStatusFieldInitContainerStatuses = "initContainerStatuses"
PodStatusFieldMessage = "message"
PodStatusFieldNodeIp = "nodeIp"
PodStatusFieldNominatedNodeName = "nominatedNodeName"
PodStatusFieldPhase = "phase"
PodStatusFieldPodIp = "podIp"
PodStatusFieldQOSClass = "qosClass"
@@ -20,6 +21,7 @@ type PodStatus struct {
InitContainerStatuses []ContainerStatus `json:"initContainerStatuses,omitempty" yaml:"initContainerStatuses,omitempty"`
Message string `json:"message,omitempty" yaml:"message,omitempty"`
NodeIp string `json:"nodeIp,omitempty" yaml:"nodeIp,omitempty"`
NominatedNodeName string `json:"nominatedNodeName,omitempty" yaml:"nominatedNodeName,omitempty"`
Phase string `json:"phase,omitempty" yaml:"phase,omitempty"`
PodIp string `json:"podIp,omitempty" yaml:"podIp,omitempty"`
QOSClass string `json:"qosClass,omitempty" yaml:"qosClass,omitempty"`

View File

@@ -5,6 +5,7 @@ const (
PodTemplateSpecFieldActiveDeadlineSeconds = "activeDeadlineSeconds"
PodTemplateSpecFieldAutomountServiceAccountToken = "automountServiceAccountToken"
PodTemplateSpecFieldContainers = "containers"
PodTemplateSpecFieldDNSConfig = "dnsConfig"
PodTemplateSpecFieldDNSPolicy = "dnsPolicy"
PodTemplateSpecFieldFsgid = "fsgid"
PodTemplateSpecFieldGids = "gids"
@@ -19,10 +20,12 @@ const (
PodTemplateSpecFieldPriority = "priority"
PodTemplateSpecFieldPriorityClassName = "priorityClassName"
PodTemplateSpecFieldRestartPolicy = "restartPolicy"
PodTemplateSpecFieldRunAsGroup = "runAsGroup"
PodTemplateSpecFieldRunAsNonRoot = "runAsNonRoot"
PodTemplateSpecFieldSchedulerName = "schedulerName"
PodTemplateSpecFieldScheduling = "scheduling"
PodTemplateSpecFieldServiceAccountName = "serviceAccountName"
PodTemplateSpecFieldShareProcessNamespace = "shareProcessNamespace"
PodTemplateSpecFieldSubdomain = "subdomain"
PodTemplateSpecFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
PodTemplateSpecFieldUid = "uid"
@@ -33,6 +36,7 @@ type PodTemplateSpec struct {
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" yaml:"activeDeadlineSeconds,omitempty"`
AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" yaml:"automountServiceAccountToken,omitempty"`
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -47,10 +51,12 @@ type PodTemplateSpec struct {
Priority *int64 `json:"priority,omitempty" yaml:"priority,omitempty"`
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`

View File

@@ -0,0 +1,24 @@
package client
const (
RBDPersistentVolumeSourceType = "rbdPersistentVolumeSource"
RBDPersistentVolumeSourceFieldCephMonitors = "monitors"
RBDPersistentVolumeSourceFieldFSType = "fsType"
RBDPersistentVolumeSourceFieldKeyring = "keyring"
RBDPersistentVolumeSourceFieldRBDImage = "image"
RBDPersistentVolumeSourceFieldRBDPool = "pool"
RBDPersistentVolumeSourceFieldRadosUser = "user"
RBDPersistentVolumeSourceFieldReadOnly = "readOnly"
RBDPersistentVolumeSourceFieldSecretRef = "secretRef"
)
type RBDPersistentVolumeSource struct {
CephMonitors []string `json:"monitors,omitempty" yaml:"monitors,omitempty"`
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
Keyring string `json:"keyring,omitempty" yaml:"keyring,omitempty"`
RBDImage string `json:"image,omitempty" yaml:"image,omitempty"`
RBDPool string `json:"pool,omitempty" yaml:"pool,omitempty"`
RadosUser string `json:"user,omitempty" yaml:"user,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SecretRef *SecretReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
}

View File

@@ -12,6 +12,7 @@ const (
ReplicaSetFieldContainers = "containers"
ReplicaSetFieldCreated = "created"
ReplicaSetFieldCreatorID = "creatorId"
ReplicaSetFieldDNSConfig = "dnsConfig"
ReplicaSetFieldDNSPolicy = "dnsPolicy"
ReplicaSetFieldFsgid = "fsgid"
ReplicaSetFieldGids = "gids"
@@ -34,12 +35,14 @@ const (
ReplicaSetFieldReplicaSetConfig = "replicaSetConfig"
ReplicaSetFieldReplicaSetStatus = "replicaSetStatus"
ReplicaSetFieldRestartPolicy = "restartPolicy"
ReplicaSetFieldRunAsGroup = "runAsGroup"
ReplicaSetFieldRunAsNonRoot = "runAsNonRoot"
ReplicaSetFieldScale = "scale"
ReplicaSetFieldSchedulerName = "schedulerName"
ReplicaSetFieldScheduling = "scheduling"
ReplicaSetFieldSelector = "selector"
ReplicaSetFieldServiceAccountName = "serviceAccountName"
ReplicaSetFieldShareProcessNamespace = "shareProcessNamespace"
ReplicaSetFieldState = "state"
ReplicaSetFieldSubdomain = "subdomain"
ReplicaSetFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
@@ -60,6 +63,7 @@ type ReplicaSet struct {
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -82,12 +86,14 @@ type ReplicaSet struct {
ReplicaSetConfig *ReplicaSetConfig `json:"replicaSetConfig,omitempty" yaml:"replicaSetConfig,omitempty"`
ReplicaSetStatus *ReplicaSetStatus `json:"replicaSetStatus,omitempty" yaml:"replicaSetStatus,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
Scale *int64 `json:"scale,omitempty" yaml:"scale,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`

View File

@@ -12,6 +12,7 @@ const (
ReplicationControllerFieldContainers = "containers"
ReplicationControllerFieldCreated = "created"
ReplicationControllerFieldCreatorID = "creatorId"
ReplicationControllerFieldDNSConfig = "dnsConfig"
ReplicationControllerFieldDNSPolicy = "dnsPolicy"
ReplicationControllerFieldFsgid = "fsgid"
ReplicationControllerFieldGids = "gids"
@@ -34,12 +35,14 @@ const (
ReplicationControllerFieldReplicationControllerConfig = "replicationControllerConfig"
ReplicationControllerFieldReplicationControllerStatus = "replicationControllerStatus"
ReplicationControllerFieldRestartPolicy = "restartPolicy"
ReplicationControllerFieldRunAsGroup = "runAsGroup"
ReplicationControllerFieldRunAsNonRoot = "runAsNonRoot"
ReplicationControllerFieldScale = "scale"
ReplicationControllerFieldSchedulerName = "schedulerName"
ReplicationControllerFieldScheduling = "scheduling"
ReplicationControllerFieldSelector = "selector"
ReplicationControllerFieldServiceAccountName = "serviceAccountName"
ReplicationControllerFieldShareProcessNamespace = "shareProcessNamespace"
ReplicationControllerFieldState = "state"
ReplicationControllerFieldSubdomain = "subdomain"
ReplicationControllerFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
@@ -60,6 +63,7 @@ type ReplicationController struct {
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -82,12 +86,14 @@ type ReplicationController struct {
ReplicationControllerConfig *ReplicationControllerConfig `json:"replicationControllerConfig,omitempty" yaml:"replicationControllerConfig,omitempty"`
ReplicationControllerStatus *ReplicationControllerStatus `json:"replicationControllerStatus,omitempty" yaml:"replicationControllerStatus,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
Scale *int64 `json:"scale,omitempty" yaml:"scale,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector map[string]string `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`

View File

@@ -5,6 +5,7 @@ const (
ReplicationControllerSpecFieldActiveDeadlineSeconds = "activeDeadlineSeconds"
ReplicationControllerSpecFieldAutomountServiceAccountToken = "automountServiceAccountToken"
ReplicationControllerSpecFieldContainers = "containers"
ReplicationControllerSpecFieldDNSConfig = "dnsConfig"
ReplicationControllerSpecFieldDNSPolicy = "dnsPolicy"
ReplicationControllerSpecFieldFsgid = "fsgid"
ReplicationControllerSpecFieldGids = "gids"
@@ -20,12 +21,14 @@ const (
ReplicationControllerSpecFieldPriorityClassName = "priorityClassName"
ReplicationControllerSpecFieldReplicationControllerConfig = "replicationControllerConfig"
ReplicationControllerSpecFieldRestartPolicy = "restartPolicy"
ReplicationControllerSpecFieldRunAsGroup = "runAsGroup"
ReplicationControllerSpecFieldRunAsNonRoot = "runAsNonRoot"
ReplicationControllerSpecFieldScale = "scale"
ReplicationControllerSpecFieldSchedulerName = "schedulerName"
ReplicationControllerSpecFieldScheduling = "scheduling"
ReplicationControllerSpecFieldSelector = "selector"
ReplicationControllerSpecFieldServiceAccountName = "serviceAccountName"
ReplicationControllerSpecFieldShareProcessNamespace = "shareProcessNamespace"
ReplicationControllerSpecFieldSubdomain = "subdomain"
ReplicationControllerSpecFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
ReplicationControllerSpecFieldUid = "uid"
@@ -36,6 +39,7 @@ type ReplicationControllerSpec struct {
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" yaml:"activeDeadlineSeconds,omitempty"`
AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" yaml:"automountServiceAccountToken,omitempty"`
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -51,12 +55,14 @@ type ReplicationControllerSpec struct {
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
ReplicationControllerConfig *ReplicationControllerConfig `json:"replicationControllerConfig,omitempty" yaml:"replicationControllerConfig,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
Scale *int64 `json:"scale,omitempty" yaml:"scale,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector map[string]string `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`

View File

@@ -0,0 +1,28 @@
package client
const (
ScaleIOPersistentVolumeSourceType = "scaleIOPersistentVolumeSource"
ScaleIOPersistentVolumeSourceFieldFSType = "fsType"
ScaleIOPersistentVolumeSourceFieldGateway = "gateway"
ScaleIOPersistentVolumeSourceFieldProtectionDomain = "protectionDomain"
ScaleIOPersistentVolumeSourceFieldReadOnly = "readOnly"
ScaleIOPersistentVolumeSourceFieldSSLEnabled = "sslEnabled"
ScaleIOPersistentVolumeSourceFieldSecretRef = "secretRef"
ScaleIOPersistentVolumeSourceFieldStorageMode = "storageMode"
ScaleIOPersistentVolumeSourceFieldStoragePool = "storagePool"
ScaleIOPersistentVolumeSourceFieldSystem = "system"
ScaleIOPersistentVolumeSourceFieldVolumeName = "volumeName"
)
type ScaleIOPersistentVolumeSource struct {
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
Gateway string `json:"gateway,omitempty" yaml:"gateway,omitempty"`
ProtectionDomain string `json:"protectionDomain,omitempty" yaml:"protectionDomain,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SSLEnabled bool `json:"sslEnabled,omitempty" yaml:"sslEnabled,omitempty"`
SecretRef *SecretReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
StorageMode string `json:"storageMode,omitempty" yaml:"storageMode,omitempty"`
StoragePool string `json:"storagePool,omitempty" yaml:"storagePool,omitempty"`
System string `json:"system,omitempty" yaml:"system,omitempty"`
VolumeName string `json:"volumeName,omitempty" yaml:"volumeName,omitempty"`
}

View File

@@ -7,6 +7,7 @@ const (
SecurityContextFieldCapDrop = "capDrop"
SecurityContextFieldPrivileged = "privileged"
SecurityContextFieldReadOnly = "readOnly"
SecurityContextFieldRunAsGroup = "runAsGroup"
SecurityContextFieldRunAsNonRoot = "runAsNonRoot"
SecurityContextFieldUid = "uid"
)
@@ -17,6 +18,7 @@ type SecurityContext struct {
CapDrop []string `json:"capDrop,omitempty" yaml:"capDrop,omitempty"`
Privileged *bool `json:"privileged,omitempty" yaml:"privileged,omitempty"`
ReadOnly *bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
Uid *int64 `json:"uid,omitempty" yaml:"uid,omitempty"`
}

View File

@@ -12,6 +12,7 @@ const (
StatefulSetFieldContainers = "containers"
StatefulSetFieldCreated = "created"
StatefulSetFieldCreatorID = "creatorId"
StatefulSetFieldDNSConfig = "dnsConfig"
StatefulSetFieldDNSPolicy = "dnsPolicy"
StatefulSetFieldFsgid = "fsgid"
StatefulSetFieldGids = "gids"
@@ -32,12 +33,14 @@ const (
StatefulSetFieldPublicEndpoints = "publicEndpoints"
StatefulSetFieldRemoved = "removed"
StatefulSetFieldRestartPolicy = "restartPolicy"
StatefulSetFieldRunAsGroup = "runAsGroup"
StatefulSetFieldRunAsNonRoot = "runAsNonRoot"
StatefulSetFieldScale = "scale"
StatefulSetFieldSchedulerName = "schedulerName"
StatefulSetFieldScheduling = "scheduling"
StatefulSetFieldSelector = "selector"
StatefulSetFieldServiceAccountName = "serviceAccountName"
StatefulSetFieldShareProcessNamespace = "shareProcessNamespace"
StatefulSetFieldState = "state"
StatefulSetFieldStatefulSetConfig = "statefulSetConfig"
StatefulSetFieldStatefulSetStatus = "statefulSetStatus"
@@ -60,6 +63,7 @@ type StatefulSet struct {
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -80,12 +84,14 @@ type StatefulSet struct {
PublicEndpoints []PublicEndpoint `json:"publicEndpoints,omitempty" yaml:"publicEndpoints,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
Scale *int64 `json:"scale,omitempty" yaml:"scale,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
StatefulSetConfig *StatefulSetConfig `json:"statefulSetConfig,omitempty" yaml:"statefulSetConfig,omitempty"`
StatefulSetStatus *StatefulSetStatus `json:"statefulSetStatus,omitempty" yaml:"statefulSetStatus,omitempty"`

View File

@@ -0,0 +1,18 @@
package client
const (
StatefulSetConditionType = "statefulSetCondition"
StatefulSetConditionFieldLastTransitionTime = "lastTransitionTime"
StatefulSetConditionFieldMessage = "message"
StatefulSetConditionFieldReason = "reason"
StatefulSetConditionFieldStatus = "status"
StatefulSetConditionFieldType = "type"
)
type StatefulSetCondition struct {
LastTransitionTime string `json:"lastTransitionTime,omitempty" yaml:"lastTransitionTime,omitempty"`
Message string `json:"message,omitempty" yaml:"message,omitempty"`
Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`
Status string `json:"status,omitempty" yaml:"status,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
}

View File

@@ -5,6 +5,7 @@ const (
StatefulSetSpecFieldActiveDeadlineSeconds = "activeDeadlineSeconds"
StatefulSetSpecFieldAutomountServiceAccountToken = "automountServiceAccountToken"
StatefulSetSpecFieldContainers = "containers"
StatefulSetSpecFieldDNSConfig = "dnsConfig"
StatefulSetSpecFieldDNSPolicy = "dnsPolicy"
StatefulSetSpecFieldFsgid = "fsgid"
StatefulSetSpecFieldGids = "gids"
@@ -19,12 +20,14 @@ const (
StatefulSetSpecFieldPriority = "priority"
StatefulSetSpecFieldPriorityClassName = "priorityClassName"
StatefulSetSpecFieldRestartPolicy = "restartPolicy"
StatefulSetSpecFieldRunAsGroup = "runAsGroup"
StatefulSetSpecFieldRunAsNonRoot = "runAsNonRoot"
StatefulSetSpecFieldScale = "scale"
StatefulSetSpecFieldSchedulerName = "schedulerName"
StatefulSetSpecFieldScheduling = "scheduling"
StatefulSetSpecFieldSelector = "selector"
StatefulSetSpecFieldServiceAccountName = "serviceAccountName"
StatefulSetSpecFieldShareProcessNamespace = "shareProcessNamespace"
StatefulSetSpecFieldStatefulSetConfig = "statefulSetConfig"
StatefulSetSpecFieldSubdomain = "subdomain"
StatefulSetSpecFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds"
@@ -36,6 +39,7 @@ type StatefulSetSpec struct {
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" yaml:"activeDeadlineSeconds,omitempty"`
AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" yaml:"automountServiceAccountToken,omitempty"`
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
Fsgid *int64 `json:"fsgid,omitempty" yaml:"fsgid,omitempty"`
Gids []int64 `json:"gids,omitempty" yaml:"gids,omitempty"`
@@ -50,12 +54,14 @@ type StatefulSetSpec struct {
Priority *int64 `json:"priority,omitempty" yaml:"priority,omitempty"`
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
Scale *int64 `json:"scale,omitempty" yaml:"scale,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
StatefulSetConfig *StatefulSetConfig `json:"statefulSetConfig,omitempty" yaml:"statefulSetConfig,omitempty"`
Subdomain string `json:"subdomain,omitempty" yaml:"subdomain,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" yaml:"terminationGracePeriodSeconds,omitempty"`

View File

@@ -3,6 +3,7 @@ package client
const (
StatefulSetStatusType = "statefulSetStatus"
StatefulSetStatusFieldCollisionCount = "collisionCount"
StatefulSetStatusFieldConditions = "conditions"
StatefulSetStatusFieldCurrentReplicas = "currentReplicas"
StatefulSetStatusFieldCurrentRevision = "currentRevision"
StatefulSetStatusFieldObservedGeneration = "observedGeneration"
@@ -13,12 +14,13 @@ const (
)
type StatefulSetStatus struct {
CollisionCount *int64 `json:"collisionCount,omitempty" yaml:"collisionCount,omitempty"`
CurrentReplicas int64 `json:"currentReplicas,omitempty" yaml:"currentReplicas,omitempty"`
CurrentRevision string `json:"currentRevision,omitempty" yaml:"currentRevision,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty" yaml:"observedGeneration,omitempty"`
ReadyReplicas int64 `json:"readyReplicas,omitempty" yaml:"readyReplicas,omitempty"`
Replicas int64 `json:"replicas,omitempty" yaml:"replicas,omitempty"`
UpdateRevision string `json:"updateRevision,omitempty" yaml:"updateRevision,omitempty"`
UpdatedReplicas int64 `json:"updatedReplicas,omitempty" yaml:"updatedReplicas,omitempty"`
CollisionCount *int64 `json:"collisionCount,omitempty" yaml:"collisionCount,omitempty"`
Conditions []StatefulSetCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
CurrentReplicas int64 `json:"currentReplicas,omitempty" yaml:"currentReplicas,omitempty"`
CurrentRevision string `json:"currentRevision,omitempty" yaml:"currentRevision,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty" yaml:"observedGeneration,omitempty"`
ReadyReplicas int64 `json:"readyReplicas,omitempty" yaml:"readyReplicas,omitempty"`
Replicas int64 `json:"replicas,omitempty" yaml:"replicas,omitempty"`
UpdateRevision string `json:"updateRevision,omitempty" yaml:"updateRevision,omitempty"`
UpdatedReplicas int64 `json:"updatedReplicas,omitempty" yaml:"updatedReplicas,omitempty"`
}

View File

@@ -0,0 +1,12 @@
package client
const (
VolumeDeviceType = "volumeDevice"
VolumeDeviceFieldDevicePath = "devicePath"
VolumeDeviceFieldName = "name"
)
type VolumeDevice struct {
DevicePath string `json:"devicePath,omitempty" yaml:"devicePath,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

View File

@@ -0,0 +1,10 @@
package client
const (
VolumeNodeAffinityType = "volumeNodeAffinity"
VolumeNodeAffinityFieldRequired = "required"
)
type VolumeNodeAffinity struct {
Required *NodeSelector `json:"required,omitempty" yaml:"required,omitempty"`
}

View File

@@ -14,6 +14,7 @@ const (
WorkloadFieldCreatorID = "creatorId"
WorkloadFieldCronJobConfig = "cronJobConfig"
WorkloadFieldCronJobStatus = "cronJobStatus"
WorkloadFieldDNSConfig = "dnsConfig"
WorkloadFieldDNSPolicy = "dnsPolicy"
WorkloadFieldDaemonSetConfig = "daemonSetConfig"
WorkloadFieldDaemonSetStatus = "daemonSetStatus"
@@ -45,12 +46,14 @@ const (
WorkloadFieldReplicationControllerConfig = "replicationControllerConfig"
WorkloadFieldReplicationControllerStatus = "replicationControllerStatus"
WorkloadFieldRestartPolicy = "restartPolicy"
WorkloadFieldRunAsGroup = "runAsGroup"
WorkloadFieldRunAsNonRoot = "runAsNonRoot"
WorkloadFieldScale = "scale"
WorkloadFieldSchedulerName = "schedulerName"
WorkloadFieldScheduling = "scheduling"
WorkloadFieldSelector = "selector"
WorkloadFieldServiceAccountName = "serviceAccountName"
WorkloadFieldShareProcessNamespace = "shareProcessNamespace"
WorkloadFieldState = "state"
WorkloadFieldStatefulSetConfig = "statefulSetConfig"
WorkloadFieldStatefulSetStatus = "statefulSetStatus"
@@ -75,6 +78,7 @@ type Workload struct {
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
CronJobConfig *CronJobConfig `json:"cronJobConfig,omitempty" yaml:"cronJobConfig,omitempty"`
CronJobStatus *CronJobStatus `json:"cronJobStatus,omitempty" yaml:"cronJobStatus,omitempty"`
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" yaml:"dnsConfig,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
DaemonSetConfig *DaemonSetConfig `json:"daemonSetConfig,omitempty" yaml:"daemonSetConfig,omitempty"`
DaemonSetStatus *DaemonSetStatus `json:"daemonSetStatus,omitempty" yaml:"daemonSetStatus,omitempty"`
@@ -106,12 +110,14 @@ type Workload struct {
ReplicationControllerConfig *ReplicationControllerConfig `json:"replicationControllerConfig,omitempty" yaml:"replicationControllerConfig,omitempty"`
ReplicationControllerStatus *ReplicationControllerStatus `json:"replicationControllerStatus,omitempty" yaml:"replicationControllerStatus,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
RunAsGroup *int64 `json:"runAsGroup,omitempty" yaml:"runAsGroup,omitempty"`
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" yaml:"runAsNonRoot,omitempty"`
Scale *int64 `json:"scale,omitempty" yaml:"scale,omitempty"`
SchedulerName string `json:"schedulerName,omitempty" yaml:"schedulerName,omitempty"`
Scheduling *Scheduling `json:"scheduling,omitempty" yaml:"scheduling,omitempty"`
Selector *LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" yaml:"shareProcessNamespace,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
StatefulSetConfig *StatefulSetConfig `json:"statefulSetConfig,omitempty" yaml:"statefulSetConfig,omitempty"`
StatefulSetStatus *StatefulSetStatus `json:"statefulSetStatus,omitempty" yaml:"statefulSetStatus,omitempty"`