offshoot-api: kmodules.xyz/offshoot-api/api/v1 Index | Files

package v1

import "kmodules.xyz/offshoot-api/api/v1"

+k8s:deepcopy-gen=package +k8s:openapi-gen=true

Index

Package Files

constants.go doc.go generated.pb.go openapi_generated.go pvc.go runtime_settings_types.go types.go zz_generated.deepcopy.go

Constants

const (
    NiceAdjustment  = "NICE_ADJUSTMENT"
    IONiceClass     = "IONICE_CLASS"
    IONiceClassData = "IONICE_CLASS_DATA"
)

Variables

var (
    ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)

func GetOpenAPIDefinitions Uses

func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition

func MergeServicePorts Uses

func MergeServicePorts(cur []core.ServicePort, desired []ServicePort) []core.ServicePort

type ContainerRuntimeSettings Uses

type ContainerRuntimeSettings struct {
    // Compute Resources required by container.
    // Cannot be updated.
    // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
    // +optional
    Resources core.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,1,opt,name=resources"`
    // Periodic probe of container liveness.
    // Container will be restarted if the probe fails.
    // Cannot be updated.
    // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
    // +optional
    LivenessProbe *core.Probe `json:"livenessProbe,omitempty" protobuf:"bytes,2,opt,name=livenessProbe"`
    // Periodic probe of container service readiness.
    // Container will be removed from service endpoints if the probe fails.
    // Cannot be updated.
    // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
    // +optional
    ReadinessProbe *core.Probe `json:"readinessProbe,omitempty" protobuf:"bytes,3,opt,name=readinessProbe"`
    // Actions that the management system should take in response to container lifecycle events.
    // Cannot be updated.
    // +optional
    Lifecycle *core.Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,4,opt,name=lifecycle"`
    // Security options the pod should run with.
    // More info: https://kubernetes.io/docs/concepts/policy/security-context/
    // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
    // +optional
    SecurityContext *core.SecurityContext `json:"securityContext,omitempty" protobuf:"bytes,5,opt,name=securityContext"`
    // Settings to configure `nice` to throttle the load on cpu.
    // More info: http://kennystechtalk.blogspot.com/2015/04/throttling-cpu-usage-with-linux-cgroups.html
    // More info: https://oakbytes.wordpress.com/2012/06/06/linux-scheduler-cfs-and-nice/
    // +optional
    Nice *NiceSettings `json:"nice,omitempty" protobuf:"bytes,6,opt,name=nice"`
    // Settings to configure `ionice` to throttle the load on disk.
    // More info: http://kennystechtalk.blogspot.com/2015/04/throttling-cpu-usage-with-linux-cgroups.html
    // More info: https://oakbytes.wordpress.com/2012/06/06/linux-scheduler-cfs-and-nice/
    // +optional
    IONice *IONiceSettings `json:"ionice,omitempty" protobuf:"bytes,7,opt,name=ionice"`
    // List of sources to populate environment variables in the container.
    // The keys defined within a source must be a C_IDENTIFIER. All invalid keys
    // will be reported as an event when the container is starting. When a key exists in multiple
    // sources, the value associated with the last source will take precedence.
    // Values defined by an Env with a duplicate key will take precedence.
    // Cannot be updated.
    // +optional
    EnvFrom []core.EnvFromSource `json:"envFrom,omitempty" protobuf:"bytes,8,rep,name=envFrom"`
    // List of environment variables to set in the container.
    // Cannot be updated.
    // +optional
    // +patchMergeKey=name
    // +patchStrategy=merge
    Env []core.EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,9,rep,name=env"`
}

func (*ContainerRuntimeSettings) DeepCopy Uses

func (in *ContainerRuntimeSettings) DeepCopy() *ContainerRuntimeSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerRuntimeSettings.

func (*ContainerRuntimeSettings) DeepCopyInto Uses

func (in *ContainerRuntimeSettings) DeepCopyInto(out *ContainerRuntimeSettings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ContainerRuntimeSettings) Descriptor Uses

func (*ContainerRuntimeSettings) Descriptor() ([]byte, []int)

func (*ContainerRuntimeSettings) Marshal Uses

func (m *ContainerRuntimeSettings) Marshal() (dAtA []byte, err error)

func (*ContainerRuntimeSettings) MarshalTo Uses

func (m *ContainerRuntimeSettings) MarshalTo(dAtA []byte) (int, error)

func (*ContainerRuntimeSettings) MarshalToSizedBuffer Uses

func (m *ContainerRuntimeSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerRuntimeSettings) ProtoMessage Uses

func (*ContainerRuntimeSettings) ProtoMessage()

func (*ContainerRuntimeSettings) Reset Uses

func (m *ContainerRuntimeSettings) Reset()

func (*ContainerRuntimeSettings) Size Uses

func (m *ContainerRuntimeSettings) Size() (n int)

func (*ContainerRuntimeSettings) String Uses

func (this *ContainerRuntimeSettings) String() string

func (*ContainerRuntimeSettings) Unmarshal Uses

func (m *ContainerRuntimeSettings) Unmarshal(dAtA []byte) error

func (*ContainerRuntimeSettings) XXX_DiscardUnknown Uses

func (m *ContainerRuntimeSettings) XXX_DiscardUnknown()

func (*ContainerRuntimeSettings) XXX_Marshal Uses

func (m *ContainerRuntimeSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerRuntimeSettings) XXX_Merge Uses

func (m *ContainerRuntimeSettings) XXX_Merge(src proto.Message)

func (*ContainerRuntimeSettings) XXX_Size Uses

func (m *ContainerRuntimeSettings) XXX_Size() int

func (*ContainerRuntimeSettings) XXX_Unmarshal Uses

func (m *ContainerRuntimeSettings) XXX_Unmarshal(b []byte) error

type IONiceSettings Uses

type IONiceSettings struct {
    Class     *int32 `json:"class,omitempty" protobuf:"varint,1,opt,name=class"`
    ClassData *int32 `json:"classData,omitempty" protobuf:"varint,2,opt,name=classData"`
}

https://linux.die.net/man/1/ionice

func IONiceSettingsFromEnv Uses

func IONiceSettingsFromEnv() (*IONiceSettings, error)

func (*IONiceSettings) DeepCopy Uses

func (in *IONiceSettings) DeepCopy() *IONiceSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IONiceSettings.

func (*IONiceSettings) DeepCopyInto Uses

func (in *IONiceSettings) DeepCopyInto(out *IONiceSettings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IONiceSettings) Descriptor Uses

func (*IONiceSettings) Descriptor() ([]byte, []int)

func (*IONiceSettings) Marshal Uses

func (m *IONiceSettings) Marshal() (dAtA []byte, err error)

func (*IONiceSettings) MarshalTo Uses

func (m *IONiceSettings) MarshalTo(dAtA []byte) (int, error)

func (*IONiceSettings) MarshalToSizedBuffer Uses

func (m *IONiceSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IONiceSettings) ProtoMessage Uses

func (*IONiceSettings) ProtoMessage()

func (*IONiceSettings) Reset Uses

func (m *IONiceSettings) Reset()

func (*IONiceSettings) Size Uses

func (m *IONiceSettings) Size() (n int)

func (*IONiceSettings) String Uses

func (this *IONiceSettings) String() string

func (*IONiceSettings) Unmarshal Uses

func (m *IONiceSettings) Unmarshal(dAtA []byte) error

func (*IONiceSettings) XXX_DiscardUnknown Uses

func (m *IONiceSettings) XXX_DiscardUnknown()

func (*IONiceSettings) XXX_Marshal Uses

func (m *IONiceSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IONiceSettings) XXX_Merge Uses

func (m *IONiceSettings) XXX_Merge(src proto.Message)

func (*IONiceSettings) XXX_Size Uses

func (m *IONiceSettings) XXX_Size() int

func (*IONiceSettings) XXX_Unmarshal Uses

func (m *IONiceSettings) XXX_Unmarshal(b []byte) error

type NiceSettings Uses

type NiceSettings struct {
    Adjustment *int32 `json:"adjustment,omitempty" protobuf:"varint,1,opt,name=adjustment"`
}

https://linux.die.net/man/1/nice

func NiceSettingsFromEnv Uses

func NiceSettingsFromEnv() (*NiceSettings, error)

func (*NiceSettings) DeepCopy Uses

func (in *NiceSettings) DeepCopy() *NiceSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NiceSettings.

func (*NiceSettings) DeepCopyInto Uses

func (in *NiceSettings) DeepCopyInto(out *NiceSettings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NiceSettings) Descriptor Uses

func (*NiceSettings) Descriptor() ([]byte, []int)

func (*NiceSettings) Marshal Uses

func (m *NiceSettings) Marshal() (dAtA []byte, err error)

func (*NiceSettings) MarshalTo Uses

func (m *NiceSettings) MarshalTo(dAtA []byte) (int, error)

func (*NiceSettings) MarshalToSizedBuffer Uses

func (m *NiceSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NiceSettings) ProtoMessage Uses

func (*NiceSettings) ProtoMessage()

func (*NiceSettings) Reset Uses

func (m *NiceSettings) Reset()

func (*NiceSettings) Size Uses

func (m *NiceSettings) Size() (n int)

func (*NiceSettings) String Uses

func (this *NiceSettings) String() string

func (*NiceSettings) Unmarshal Uses

func (m *NiceSettings) Unmarshal(dAtA []byte) error

func (*NiceSettings) XXX_DiscardUnknown Uses

func (m *NiceSettings) XXX_DiscardUnknown()

func (*NiceSettings) XXX_Marshal Uses

func (m *NiceSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NiceSettings) XXX_Merge Uses

func (m *NiceSettings) XXX_Merge(src proto.Message)

func (*NiceSettings) XXX_Size Uses

func (m *NiceSettings) XXX_Size() int

func (*NiceSettings) XXX_Unmarshal Uses

func (m *NiceSettings) XXX_Unmarshal(b []byte) error

type ObjectMeta Uses

type ObjectMeta struct {
    // Annotations is an unstructured key value map stored with a resource that may be
    // set by external tools to store and retrieve arbitrary metadata. They are not
    // queryable and should be preserved when modifying objects.
    // More info: http://kubernetes.io/docs/user-guide/annotations
    // +optional
    Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,1,rep,name=annotations"`
}

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

func (*ObjectMeta) DeepCopy Uses

func (in *ObjectMeta) DeepCopy() *ObjectMeta

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMeta.

func (*ObjectMeta) DeepCopyInto Uses

func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ObjectMeta) Descriptor Uses

func (*ObjectMeta) Descriptor() ([]byte, []int)

func (*ObjectMeta) Marshal Uses

func (m *ObjectMeta) Marshal() (dAtA []byte, err error)

func (*ObjectMeta) MarshalTo Uses

func (m *ObjectMeta) MarshalTo(dAtA []byte) (int, error)

func (*ObjectMeta) MarshalToSizedBuffer Uses

func (m *ObjectMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ObjectMeta) ProtoMessage Uses

func (*ObjectMeta) ProtoMessage()

func (*ObjectMeta) Reset Uses

func (m *ObjectMeta) Reset()

func (*ObjectMeta) Size Uses

func (m *ObjectMeta) Size() (n int)

func (*ObjectMeta) String Uses

func (this *ObjectMeta) String() string

func (*ObjectMeta) Unmarshal Uses

func (m *ObjectMeta) Unmarshal(dAtA []byte) error

func (*ObjectMeta) XXX_DiscardUnknown Uses

func (m *ObjectMeta) XXX_DiscardUnknown()

func (*ObjectMeta) XXX_Marshal Uses

func (m *ObjectMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ObjectMeta) XXX_Merge Uses

func (m *ObjectMeta) XXX_Merge(src proto.Message)

func (*ObjectMeta) XXX_Size Uses

func (m *ObjectMeta) XXX_Size() int

func (*ObjectMeta) XXX_Unmarshal Uses

func (m *ObjectMeta) XXX_Unmarshal(b []byte) error

type PartialObjectMeta Uses

type PartialObjectMeta struct {
    // Name must be unique within a namespace. Is required when creating resources, although
    // some resources may allow a client to request the generation of an appropriate name
    // automatically. Name is primarily intended for creation idempotence and configuration
    // definition.
    // Cannot be updated.
    // More info: http://kubernetes.io/docs/user-guide/identifiers#names
    // +optional
    Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`

    // GenerateName is an optional prefix, used by the server, to generate a unique
    // name ONLY IF the Name field has not been provided.
    // If this field is used, the name returned to the client will be different
    // than the name passed. This value will also be combined with a unique suffix.
    // The provided value has the same validation rules as the Name field,
    // and may be truncated by the length of the suffix required to make the value
    // unique on the server.
    //
    // If this field is specified and the generated name exists, the server will
    // NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
    // ServerTimeout indicating a unique name could not be found in the time allotted, and the client
    // should retry (optionally after the time indicated in the Retry-After header).
    //
    // Applied only if Name is not specified.
    // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
    // +optional
    GenerateName string `json:"generateName,omitempty" protobuf:"bytes,2,opt,name=generateName"`

    // Namespace defines the space within each name must be unique. An empty namespace is
    // equivalent to the "default" namespace, but "default" is the canonical representation.
    // Not all objects are required to be scoped to a namespace - the value of this field for
    // those objects will be empty.
    //
    // Must be a DNS_LABEL.
    // Cannot be updated.
    // More info: http://kubernetes.io/docs/user-guide/namespaces
    // +optional
    Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`

    // Map of string keys and values that can be used to organize and categorize
    // (scope and select) objects. May match selectors of replication controllers
    // and services.
    // More info: http://kubernetes.io/docs/user-guide/labels
    // +optional
    Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,4,rep,name=labels"`

    // Annotations is an unstructured key value map stored with a resource that may be
    // set by external tools to store and retrieve arbitrary metadata. They are not
    // queryable and should be preserved when modifying objects.
    // More info: http://kubernetes.io/docs/user-guide/annotations
    // +optional
    Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,5,rep,name=annotations"`

    // List of objects depended by this object. If ALL objects in the list have
    // been deleted, this object will be garbage collected. If this object is managed by a controller,
    // then an entry in this list will point to this controller, with the controller field set to true.
    // There cannot be more than one managing controller.
    // +optional
    // +patchMergeKey=uid
    // +patchStrategy=merge
    OwnerReferences []metav1.OwnerReference `json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid" protobuf:"bytes,6,rep,name=ownerReferences"`
}

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

func (*PartialObjectMeta) DeepCopy Uses

func (in *PartialObjectMeta) DeepCopy() *PartialObjectMeta

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartialObjectMeta.

func (*PartialObjectMeta) DeepCopyInto Uses

func (in *PartialObjectMeta) DeepCopyInto(out *PartialObjectMeta)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PartialObjectMeta) Descriptor Uses

func (*PartialObjectMeta) Descriptor() ([]byte, []int)

func (*PartialObjectMeta) Marshal Uses

func (m *PartialObjectMeta) Marshal() (dAtA []byte, err error)

func (*PartialObjectMeta) MarshalTo Uses

func (m *PartialObjectMeta) MarshalTo(dAtA []byte) (int, error)

func (*PartialObjectMeta) MarshalToSizedBuffer Uses

func (m *PartialObjectMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PartialObjectMeta) ProtoMessage Uses

func (*PartialObjectMeta) ProtoMessage()

func (*PartialObjectMeta) Reset Uses

func (m *PartialObjectMeta) Reset()

func (*PartialObjectMeta) Size Uses

func (m *PartialObjectMeta) Size() (n int)

func (*PartialObjectMeta) String Uses

func (this *PartialObjectMeta) String() string

func (*PartialObjectMeta) Unmarshal Uses

func (m *PartialObjectMeta) Unmarshal(dAtA []byte) error

func (*PartialObjectMeta) XXX_DiscardUnknown Uses

func (m *PartialObjectMeta) XXX_DiscardUnknown()

func (*PartialObjectMeta) XXX_Marshal Uses

func (m *PartialObjectMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PartialObjectMeta) XXX_Merge Uses

func (m *PartialObjectMeta) XXX_Merge(src proto.Message)

func (*PartialObjectMeta) XXX_Size Uses

func (m *PartialObjectMeta) XXX_Size() int

func (*PartialObjectMeta) XXX_Unmarshal Uses

func (m *PartialObjectMeta) XXX_Unmarshal(b []byte) error

type PersistentVolumeClaim Uses

type PersistentVolumeClaim struct {
    metav1.TypeMeta `json:",inline"`
    // Standard object's metadata.
    // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
    // +optional
    PartialObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

    // Spec defines the desired characteristics of a volume requested by a pod author.
    // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
    // +optional
    Spec core.PersistentVolumeClaimSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`

    // Status represents the current information/status of a persistent volume claim.
    // Read-only.
    // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
    // +optional
    Status core.PersistentVolumeClaimStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

PersistentVolumeClaim is a user's request for and claim to a persistent volume

func (*PersistentVolumeClaim) DeepCopy Uses

func (in *PersistentVolumeClaim) DeepCopy() *PersistentVolumeClaim

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaim.

func (*PersistentVolumeClaim) DeepCopyInto Uses

func (in *PersistentVolumeClaim) DeepCopyInto(out *PersistentVolumeClaim)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PersistentVolumeClaim) DeepCopyObject Uses

func (in *PersistentVolumeClaim) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PersistentVolumeClaim) Descriptor Uses

func (*PersistentVolumeClaim) Descriptor() ([]byte, []int)

func (*PersistentVolumeClaim) Marshal Uses

func (m *PersistentVolumeClaim) Marshal() (dAtA []byte, err error)

func (*PersistentVolumeClaim) MarshalTo Uses

func (m *PersistentVolumeClaim) MarshalTo(dAtA []byte) (int, error)

func (*PersistentVolumeClaim) MarshalToSizedBuffer Uses

func (m *PersistentVolumeClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PersistentVolumeClaim) ProtoMessage Uses

func (*PersistentVolumeClaim) ProtoMessage()

func (*PersistentVolumeClaim) Reset Uses

func (m *PersistentVolumeClaim) Reset()

func (*PersistentVolumeClaim) Size Uses

func (m *PersistentVolumeClaim) Size() (n int)

func (*PersistentVolumeClaim) String Uses

func (this *PersistentVolumeClaim) String() string

func (*PersistentVolumeClaim) ToCorePVC Uses

func (in *PersistentVolumeClaim) ToCorePVC() *core.PersistentVolumeClaim

func (*PersistentVolumeClaim) Unmarshal Uses

func (m *PersistentVolumeClaim) Unmarshal(dAtA []byte) error

func (*PersistentVolumeClaim) XXX_DiscardUnknown Uses

func (m *PersistentVolumeClaim) XXX_DiscardUnknown()

func (*PersistentVolumeClaim) XXX_Marshal Uses

func (m *PersistentVolumeClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PersistentVolumeClaim) XXX_Merge Uses

func (m *PersistentVolumeClaim) XXX_Merge(src proto.Message)

func (*PersistentVolumeClaim) XXX_Size Uses

func (m *PersistentVolumeClaim) XXX_Size() int

func (*PersistentVolumeClaim) XXX_Unmarshal Uses

func (m *PersistentVolumeClaim) XXX_Unmarshal(b []byte) error

type PodRuntimeSettings Uses

type PodRuntimeSettings struct {
    // NodeSelector is a selector which must be true for the pod to fit on a node.
    // Selector which must match a node's labels for the pod to be scheduled on that node.
    // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
    // +optional
    NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,1,rep,name=nodeSelector"`
    // ServiceAccountName is the name of the ServiceAccount to use to run this pod.
    // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
    // +optional
    ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,2,opt,name=serviceAccountName"`
    // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
    // +optional
    AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" protobuf:"varint,3,opt,name=automountServiceAccountToken"`
    // NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
    // the scheduler simply schedules this pod onto that node, assuming that it fits resource
    // requirements.
    // +optional
    NodeName string `json:"nodeName,omitempty" protobuf:"bytes,4,opt,name=nodeName"`
    // Security options the pod should run with.
    // More info: https://kubernetes.io/docs/concepts/policy/security-context/
    // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
    // +optional
    SecurityContext *core.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,5,opt,name=securityContext"`
    // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodRuntimeSettings.
    // If specified, these secrets will be passed to individual puller implementations for them to use. For example,
    // in the case of docker, only DockerConfig type secrets are honored.
    // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
    // +optional
    ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty" protobuf:"bytes,6,rep,name=imagePullSecrets"`
    // If specified, the pod's scheduling constraints
    // +optional
    Affinity *core.Affinity `json:"affinity,omitempty" protobuf:"bytes,7,opt,name=affinity"`
    // If specified, the pod will be dispatched by specified scheduler.
    // If not specified, the pod will be dispatched by default scheduler.
    // +optional
    SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,8,opt,name=schedulerName"`
    // If specified, the pod's tolerations.
    // +optional
    Tolerations []core.Toleration `json:"tolerations,omitempty" protobuf:"bytes,9,rep,name=tolerations"`
    // If specified, indicates the pod's priority. "system-node-critical" and
    // "system-cluster-critical" are two special keywords which indicate the
    // highest priorities with the former being the highest priority. Any other
    // name must be defined by creating a PriorityClass object with that name.
    // If not specified, the pod priority will be default or zero if there is no
    // default.
    // +optional
    PriorityClassName string `json:"priorityClassName,omitempty" protobuf:"bytes,10,opt,name=priorityClassName"`
    // The priority value. Various system components use this field to find the
    // priority of the pod. When Priority Admission Controller is enabled, it
    // prevents users from setting this field. The admission controller populates
    // this field from PriorityClassName.
    // The higher the value, the higher the priority.
    // +optional
    Priority *int32 `json:"priority,omitempty" protobuf:"varint,11,opt,name=priority"`
    // If specified, all readiness gates will be evaluated for pod readiness.
    // A pod is ready when all its containers are ready AND
    // all conditions specified in the readiness gates have status equal to "True"
    // More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md
    // +optional
    ReadinessGates []core.PodReadinessGate `json:"readinessGates,omitempty" protobuf:"bytes,12,rep,name=readinessGates"`
    // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
    // to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
    // If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
    // empty definition that uses the default runtime handler.
    // More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md
    // This is an alpha feature and may change in the future.
    // +optional
    RuntimeClassName *string `json:"runtimeClassName,omitempty" protobuf:"bytes,13,opt,name=runtimeClassName"`
    // EnableServiceLinks indicates whether information about services should be injected into pod's
    // environment variables, matching the syntax of Docker links.
    // Optional: Defaults to true.
    // +optional
    EnableServiceLinks *bool `json:"enableServiceLinks,omitempty" protobuf:"varint,14,opt,name=enableServiceLinks"`
}

func (*PodRuntimeSettings) DeepCopy Uses

func (in *PodRuntimeSettings) DeepCopy() *PodRuntimeSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodRuntimeSettings.

func (*PodRuntimeSettings) DeepCopyInto Uses

func (in *PodRuntimeSettings) DeepCopyInto(out *PodRuntimeSettings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodRuntimeSettings) Descriptor Uses

func (*PodRuntimeSettings) Descriptor() ([]byte, []int)

func (*PodRuntimeSettings) Marshal Uses

func (m *PodRuntimeSettings) Marshal() (dAtA []byte, err error)

func (*PodRuntimeSettings) MarshalTo Uses

func (m *PodRuntimeSettings) MarshalTo(dAtA []byte) (int, error)

func (*PodRuntimeSettings) MarshalToSizedBuffer Uses

func (m *PodRuntimeSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodRuntimeSettings) ProtoMessage Uses

func (*PodRuntimeSettings) ProtoMessage()

func (*PodRuntimeSettings) Reset Uses

func (m *PodRuntimeSettings) Reset()

func (*PodRuntimeSettings) Size Uses

func (m *PodRuntimeSettings) Size() (n int)

func (*PodRuntimeSettings) String Uses

func (this *PodRuntimeSettings) String() string

func (*PodRuntimeSettings) Unmarshal Uses

func (m *PodRuntimeSettings) Unmarshal(dAtA []byte) error

func (*PodRuntimeSettings) XXX_DiscardUnknown Uses

func (m *PodRuntimeSettings) XXX_DiscardUnknown()

func (*PodRuntimeSettings) XXX_Marshal Uses

func (m *PodRuntimeSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodRuntimeSettings) XXX_Merge Uses

func (m *PodRuntimeSettings) XXX_Merge(src proto.Message)

func (*PodRuntimeSettings) XXX_Size Uses

func (m *PodRuntimeSettings) XXX_Size() int

func (*PodRuntimeSettings) XXX_Unmarshal Uses

func (m *PodRuntimeSettings) XXX_Unmarshal(b []byte) error

type PodSpec Uses

type PodSpec struct {
    // ServiceAccountName is the name of the ServiceAccount to use to run this pod.
    // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
    // +optional
    ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,1,opt,name=serviceAccountName"`

    // Arguments to the entrypoint.
    // The docker image's CMD is used if this is not provided.
    // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
    // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
    // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
    // regardless of whether the variable exists or not.
    // Cannot be updated.
    // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    // +optional
    Args []string `json:"args,omitempty" protobuf:"bytes,2,rep,name=args"`

    // NodeSelector is a selector which must be true for the pod to fit on a node.
    // Selector which must match a node's labels for the pod to be scheduled on that node.
    // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
    // +optional
    NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,3,rep,name=nodeSelector"`

    // Compute Resources required by the sidecar container.
    Resources core.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,4,opt,name=resources"`

    // If specified, the pod's scheduling constraints
    // +optional
    Affinity *core.Affinity `json:"affinity,omitempty" protobuf:"bytes,5,opt,name=affinity"`

    // If specified, the pod will be dispatched by specified scheduler.
    // If not specified, the pod will be dispatched by default scheduler.
    // +optional
    SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,6,opt,name=schedulerName"`

    // If specified, the pod's tolerations.
    // +optional
    Tolerations []core.Toleration `json:"tolerations,omitempty" protobuf:"bytes,7,rep,name=tolerations"`

    // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
    // If specified, these secrets will be passed to individual puller implementations for them to use.
    // +optional
    ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty" protobuf:"bytes,8,rep,name=imagePullSecrets"`

    // List of environment variables to set in the container.
    // Cannot be updated.
    // +optional
    Env []core.EnvVar `json:"env,omitempty" protobuf:"bytes,9,rep,name=env"`

    // List of initialization containers belonging to the pod.
    // Init containers are executed in order prior to containers being started. If any
    // init container fails, the pod is considered to have failed and is handled according
    // to its restartPolicy. The name for an init container or normal container must be
    // unique among all containers.
    // Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes.
    // The resourceRequirements of an init container are taken into account during scheduling
    // by finding the highest request/limit for each resource type, and then using the max of
    // of that value or the sum of the normal containers. Limits are applied to init containers
    // in a similar fashion.
    // Init containers cannot currently be added or removed.
    // Cannot be updated.
    // More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
    // +patchMergeKey=name
    // +patchStrategy=merge
    InitContainers []core.Container `json:"initContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,10,rep,name=initContainers"`

    // If specified, indicates the pod's priority. "system-node-critical" and
    // "system-cluster-critical" are two special keywords which indicate the
    // highest priorities with the former being the highest priority. Any other
    // name must be defined by creating a PriorityClass object with that name.
    // If not specified, the pod priority will be default or zero if there is no
    // default.
    // +optional
    PriorityClassName string `json:"priorityClassName,omitempty" protobuf:"bytes,11,opt,name=priorityClassName"`
    // The priority value. Various system components use this field to find the
    // priority of the pod. When Priority Admission Controller is enabled, it
    // prevents users from setting this field. The admission controller populates
    // this field from PriorityClassName.
    // The higher the value, the higher the priority.
    // +optional
    Priority *int32 `json:"priority,omitempty" protobuf:"varint,12,opt,name=priority"`

    // SecurityContext holds pod-level security attributes and common container settings.
    // Optional: Defaults to empty.  See type description for default values of each field.
    // +optional
    SecurityContext *core.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,13,opt,name=securityContext"`

    // Periodic probe of container liveness.
    // Container will be restarted if the probe fails.
    // Controllers may set default LivenessProbe if no liveness probe is provided.
    // To ignore defaulting, set the value to empty LivenessProbe "{}".
    // Cannot be updated.
    // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
    // +optional
    LivenessProbe *core.Probe `json:"livenessProbe,omitempty" protobuf:"bytes,14,opt,name=livenessProbe"`

    // Periodic probe of container service readiness.
    // Container will be removed from service endpoints if the probe fails.
    // Cannot be updated.
    // Controllers may set default ReadinessProbe if no readyness probe is provided.
    // To ignore defaulting, set the value to empty ReadynessProbe "{}".
    // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
    // +optional
    ReadinessProbe *core.Probe `json:"readinessProbe,omitempty" protobuf:"bytes,15,opt,name=readinessProbe"`

    // Actions that the management system should take in response to container lifecycle events.
    // Cannot be updated.
    // +optional
    Lifecycle *core.Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,16,opt,name=lifecycle"`
}

func (*PodSpec) DeepCopy Uses

func (in *PodSpec) DeepCopy() *PodSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec.

func (*PodSpec) DeepCopyInto Uses

func (in *PodSpec) DeepCopyInto(out *PodSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodSpec) Descriptor Uses

func (*PodSpec) Descriptor() ([]byte, []int)

func (*PodSpec) Marshal Uses

func (m *PodSpec) Marshal() (dAtA []byte, err error)

func (*PodSpec) MarshalTo Uses

func (m *PodSpec) MarshalTo(dAtA []byte) (int, error)

func (*PodSpec) MarshalToSizedBuffer Uses

func (m *PodSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodSpec) ProtoMessage Uses

func (*PodSpec) ProtoMessage()

func (*PodSpec) Reset Uses

func (m *PodSpec) Reset()

func (*PodSpec) Size Uses

func (m *PodSpec) Size() (n int)

func (*PodSpec) String Uses

func (this *PodSpec) String() string

func (*PodSpec) Unmarshal Uses

func (m *PodSpec) Unmarshal(dAtA []byte) error

func (*PodSpec) XXX_DiscardUnknown Uses

func (m *PodSpec) XXX_DiscardUnknown()

func (*PodSpec) XXX_Marshal Uses

func (m *PodSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodSpec) XXX_Merge Uses

func (m *PodSpec) XXX_Merge(src proto.Message)

func (*PodSpec) XXX_Size Uses

func (m *PodSpec) XXX_Size() int

func (*PodSpec) XXX_Unmarshal Uses

func (m *PodSpec) XXX_Unmarshal(b []byte) error

type PodTemplateSpec Uses

type PodTemplateSpec struct {
    // Standard object's metadata.
    // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
    // +optional
    ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

    // Workload controller's metadata.
    // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
    // +optional
    Controller ObjectMeta `json:"controller,omitempty" protobuf:"bytes,2,opt,name=controller"`

    // Specification of the desired behavior of the pod.
    // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
    // +optional
    Spec PodSpec `json:"spec,omitempty" protobuf:"bytes,3,opt,name=spec"`
}

PodTemplateSpec describes the data a pod should have when created from a template

func (*PodTemplateSpec) DeepCopy Uses

func (in *PodTemplateSpec) DeepCopy() *PodTemplateSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodTemplateSpec.

func (*PodTemplateSpec) DeepCopyInto Uses

func (in *PodTemplateSpec) DeepCopyInto(out *PodTemplateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodTemplateSpec) Descriptor Uses

func (*PodTemplateSpec) Descriptor() ([]byte, []int)

func (*PodTemplateSpec) Marshal Uses

func (m *PodTemplateSpec) Marshal() (dAtA []byte, err error)

func (*PodTemplateSpec) MarshalTo Uses

func (m *PodTemplateSpec) MarshalTo(dAtA []byte) (int, error)

func (*PodTemplateSpec) MarshalToSizedBuffer Uses

func (m *PodTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodTemplateSpec) ProtoMessage Uses

func (*PodTemplateSpec) ProtoMessage()

func (*PodTemplateSpec) Reset Uses

func (m *PodTemplateSpec) Reset()

func (*PodTemplateSpec) Size Uses

func (m *PodTemplateSpec) Size() (n int)

func (*PodTemplateSpec) String Uses

func (this *PodTemplateSpec) String() string

func (*PodTemplateSpec) Unmarshal Uses

func (m *PodTemplateSpec) Unmarshal(dAtA []byte) error

func (*PodTemplateSpec) XXX_DiscardUnknown Uses

func (m *PodTemplateSpec) XXX_DiscardUnknown()

func (*PodTemplateSpec) XXX_Marshal Uses

func (m *PodTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodTemplateSpec) XXX_Merge Uses

func (m *PodTemplateSpec) XXX_Merge(src proto.Message)

func (*PodTemplateSpec) XXX_Size Uses

func (m *PodTemplateSpec) XXX_Size() int

func (*PodTemplateSpec) XXX_Unmarshal Uses

func (m *PodTemplateSpec) XXX_Unmarshal(b []byte) error

type RuntimeSettings Uses

type RuntimeSettings struct {
    Pod       *PodRuntimeSettings       `json:"pod,omitempty" protobuf:"bytes,1,opt,name=pod"`
    Container *ContainerRuntimeSettings `json:"container,omitempty" protobuf:"bytes,2,opt,name=container"`
}

func (*RuntimeSettings) DeepCopy Uses

func (in *RuntimeSettings) DeepCopy() *RuntimeSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeSettings.

func (*RuntimeSettings) DeepCopyInto Uses

func (in *RuntimeSettings) DeepCopyInto(out *RuntimeSettings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RuntimeSettings) Descriptor Uses

func (*RuntimeSettings) Descriptor() ([]byte, []int)

func (*RuntimeSettings) Marshal Uses

func (m *RuntimeSettings) Marshal() (dAtA []byte, err error)

func (*RuntimeSettings) MarshalTo Uses

func (m *RuntimeSettings) MarshalTo(dAtA []byte) (int, error)

func (*RuntimeSettings) MarshalToSizedBuffer Uses

func (m *RuntimeSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RuntimeSettings) ProtoMessage Uses

func (*RuntimeSettings) ProtoMessage()

func (*RuntimeSettings) Reset Uses

func (m *RuntimeSettings) Reset()

func (*RuntimeSettings) Size Uses

func (m *RuntimeSettings) Size() (n int)

func (*RuntimeSettings) String Uses

func (this *RuntimeSettings) String() string

func (*RuntimeSettings) Unmarshal Uses

func (m *RuntimeSettings) Unmarshal(dAtA []byte) error

func (*RuntimeSettings) XXX_DiscardUnknown Uses

func (m *RuntimeSettings) XXX_DiscardUnknown()

func (*RuntimeSettings) XXX_Marshal Uses

func (m *RuntimeSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RuntimeSettings) XXX_Merge Uses

func (m *RuntimeSettings) XXX_Merge(src proto.Message)

func (*RuntimeSettings) XXX_Size Uses

func (m *RuntimeSettings) XXX_Size() int

func (*RuntimeSettings) XXX_Unmarshal Uses

func (m *RuntimeSettings) XXX_Unmarshal(b []byte) error

type ServicePort Uses

type ServicePort struct {
    // The name of this port within the service. This must be a DNS_LABEL.
    // All ports within a ServiceSpec must have unique names. This maps to
    // the 'Name' field in EndpointPort objects.
    // Optional if only one ServicePort is defined on this service.
    // +optional
    Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`

    // The port that will be exposed by this service.
    Port int32 `json:"port" protobuf:"varint,2,opt,name=port"`

    // The port on each node on which this service is exposed when type=NodePort or LoadBalancer.
    // Usually assigned by the system. If specified, it will be allocated to the service
    // if unused or else creation of the service will fail.
    // Default is to auto-allocate a port if the ServiceType of this Service requires one.
    // More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
    // +optional
    NodePort int32 `json:"nodePort,omitempty" protobuf:"varint,3,opt,name=nodePort"`
}

ServicePort contains information on service's port.

func (*ServicePort) DeepCopy Uses

func (in *ServicePort) DeepCopy() *ServicePort

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort.

func (*ServicePort) DeepCopyInto Uses

func (in *ServicePort) DeepCopyInto(out *ServicePort)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServicePort) Descriptor Uses

func (*ServicePort) Descriptor() ([]byte, []int)

func (*ServicePort) Marshal Uses

func (m *ServicePort) Marshal() (dAtA []byte, err error)

func (*ServicePort) MarshalTo Uses

func (m *ServicePort) MarshalTo(dAtA []byte) (int, error)

func (*ServicePort) MarshalToSizedBuffer Uses

func (m *ServicePort) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ServicePort) ProtoMessage Uses

func (*ServicePort) ProtoMessage()

func (*ServicePort) Reset Uses

func (m *ServicePort) Reset()

func (*ServicePort) Size Uses

func (m *ServicePort) Size() (n int)

func (*ServicePort) String Uses

func (this *ServicePort) String() string

func (*ServicePort) Unmarshal Uses

func (m *ServicePort) Unmarshal(dAtA []byte) error

func (*ServicePort) XXX_DiscardUnknown Uses

func (m *ServicePort) XXX_DiscardUnknown()

func (*ServicePort) XXX_Marshal Uses

func (m *ServicePort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServicePort) XXX_Merge Uses

func (m *ServicePort) XXX_Merge(src proto.Message)

func (*ServicePort) XXX_Size Uses

func (m *ServicePort) XXX_Size() int

func (*ServicePort) XXX_Unmarshal Uses

func (m *ServicePort) XXX_Unmarshal(b []byte) error

type ServiceSpec Uses

type ServiceSpec struct {
    // The list of ports that are exposed by this service.
    // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
    // +patchMergeKey=port
    // +patchStrategy=merge
    Ports []ServicePort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"port" protobuf:"bytes,1,rep,name=ports"`

    // clusterIP is the IP address of the service and is usually assigned
    // randomly by the master. If an address is specified manually and is not in
    // use by others, it will be allocated to the service; otherwise, creation
    // of the service will fail. This field can not be changed through updates.
    // Valid values are "None", empty string (""), or a valid IP address. "None"
    // can be specified for headless services when proxying is not required.
    // Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if
    // type is ExternalName.
    // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
    // +optional
    ClusterIP string `json:"clusterIP,omitempty" protobuf:"bytes,2,opt,name=clusterIP"`

    // type determines how the Service is exposed. Defaults to ClusterIP. Valid
    // options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
    // "ExternalName" maps to the specified externalName.
    // "ClusterIP" allocates a cluster-internal IP address for load-balancing to
    // endpoints. Endpoints are determined by the selector or if that is not
    // specified, by manual construction of an Endpoints object. If clusterIP is
    // "None", no virtual IP is allocated and the endpoints are published as a
    // set of endpoints rather than a stable IP.
    // "NodePort" builds on ClusterIP and allocates a port on every node which
    // routes to the clusterIP.
    // "LoadBalancer" builds on NodePort and creates an
    // external load-balancer (if supported in the current cloud) which routes
    // to the clusterIP.
    // More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types
    // +optional
    Type core.ServiceType `json:"type,omitempty" protobuf:"bytes,3,opt,name=type,casttype=k8s.io/api/core/v1.ServiceType"`

    // externalIPs is a list of IP addresses for which nodes in the cluster
    // will also accept traffic for this service.  These IPs are not managed by
    // Kubernetes.  The user is responsible for ensuring that traffic arrives
    // at a node with this IP.  A common example is external load-balancers
    // that are not part of the Kubernetes system.
    // +optional
    ExternalIPs []string `json:"externalIPs,omitempty" protobuf:"bytes,4,rep,name=externalIPs"`

    // Only applies to Service Type: LoadBalancer
    // LoadBalancer will get created with the IP specified in this field.
    // This feature depends on whether the underlying cloud-provider supports specifying
    // the loadBalancerIP when a load balancer is created.
    // This field will be ignored if the cloud-provider does not support the feature.
    // +optional
    LoadBalancerIP string `json:"loadBalancerIP,omitempty" protobuf:"bytes,5,opt,name=loadBalancerIP"`

    // If specified and supported by the platform, this will restrict traffic through the cloud-provider
    // load-balancer will be restricted to the specified client IPs. This field will be ignored if the
    // cloud-provider does not support the feature."
    // More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/
    // +optional
    LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty" protobuf:"bytes,6,rep,name=loadBalancerSourceRanges"`

    // externalTrafficPolicy denotes if this Service desires to route external
    // traffic to node-local or cluster-wide endpoints. "Local" preserves the
    // client source IP and avoids a second hop for LoadBalancer and Nodeport
    // type services, but risks potentially imbalanced traffic spreading.
    // "Cluster" obscures the client source IP and may cause a second hop to
    // another node, but should have good overall load-spreading.
    // +optional
    ExternalTrafficPolicy core.ServiceExternalTrafficPolicyType `json:"externalTrafficPolicy,omitempty" protobuf:"bytes,7,opt,name=externalTrafficPolicy,casttype=k8s.io/api/core/v1.ServiceExternalTrafficPolicyType"`

    // healthCheckNodePort specifies the healthcheck nodePort for the service.
    // If not specified, HealthCheckNodePort is created by the service api
    // backend with the allocated nodePort. Will use user-specified nodePort value
    // if specified by the client. Only effects when Type is set to LoadBalancer
    // and ExternalTrafficPolicy is set to Local.
    // +optional
    HealthCheckNodePort int32 `json:"healthCheckNodePort,omitempty" protobuf:"varint,8,opt,name=healthCheckNodePort"`

    // sessionAffinityConfig contains the configurations of session affinity.
    // +optional
    SessionAffinityConfig *core.SessionAffinityConfig `json:"sessionAffinityConfig,omitempty" protobuf:"bytes,9,opt,name=sessionAffinityConfig"`
}

ServiceSpec describes the attributes that a user creates on a service.

func (*ServiceSpec) DeepCopy Uses

func (in *ServiceSpec) DeepCopy() *ServiceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.

func (*ServiceSpec) DeepCopyInto Uses

func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceSpec) Descriptor Uses

func (*ServiceSpec) Descriptor() ([]byte, []int)

func (*ServiceSpec) Marshal Uses

func (m *ServiceSpec) Marshal() (dAtA []byte, err error)

func (*ServiceSpec) MarshalTo Uses

func (m *ServiceSpec) MarshalTo(dAtA []byte) (int, error)

func (*ServiceSpec) MarshalToSizedBuffer Uses

func (m *ServiceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ServiceSpec) ProtoMessage Uses

func (*ServiceSpec) ProtoMessage()

func (*ServiceSpec) Reset Uses

func (m *ServiceSpec) Reset()

func (*ServiceSpec) Size Uses

func (m *ServiceSpec) Size() (n int)

func (*ServiceSpec) String Uses

func (this *ServiceSpec) String() string

func (*ServiceSpec) Unmarshal Uses

func (m *ServiceSpec) Unmarshal(dAtA []byte) error

func (*ServiceSpec) XXX_DiscardUnknown Uses

func (m *ServiceSpec) XXX_DiscardUnknown()

func (*ServiceSpec) XXX_Marshal Uses

func (m *ServiceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceSpec) XXX_Merge Uses

func (m *ServiceSpec) XXX_Merge(src proto.Message)

func (*ServiceSpec) XXX_Size Uses

func (m *ServiceSpec) XXX_Size() int

func (*ServiceSpec) XXX_Unmarshal Uses

func (m *ServiceSpec) XXX_Unmarshal(b []byte) error

type ServiceTemplateSpec Uses

type ServiceTemplateSpec struct {
    // Standard object's metadata.
    // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
    // +optional
    ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

    // Specification of the desired behavior of the service.
    // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
    // +optional
    Spec ServiceSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

ServiceTemplateSpec describes the data a service should have when created from a template

func (*ServiceTemplateSpec) DeepCopy Uses

func (in *ServiceTemplateSpec) DeepCopy() *ServiceTemplateSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateSpec.

func (*ServiceTemplateSpec) DeepCopyInto Uses

func (in *ServiceTemplateSpec) DeepCopyInto(out *ServiceTemplateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceTemplateSpec) Descriptor Uses

func (*ServiceTemplateSpec) Descriptor() ([]byte, []int)

func (*ServiceTemplateSpec) Marshal Uses

func (m *ServiceTemplateSpec) Marshal() (dAtA []byte, err error)

func (*ServiceTemplateSpec) MarshalTo Uses

func (m *ServiceTemplateSpec) MarshalTo(dAtA []byte) (int, error)

func (*ServiceTemplateSpec) MarshalToSizedBuffer Uses

func (m *ServiceTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ServiceTemplateSpec) ProtoMessage Uses

func (*ServiceTemplateSpec) ProtoMessage()

func (*ServiceTemplateSpec) Reset Uses

func (m *ServiceTemplateSpec) Reset()

func (*ServiceTemplateSpec) Size Uses

func (m *ServiceTemplateSpec) Size() (n int)

func (*ServiceTemplateSpec) String Uses

func (this *ServiceTemplateSpec) String() string

func (*ServiceTemplateSpec) Unmarshal Uses

func (m *ServiceTemplateSpec) Unmarshal(dAtA []byte) error

func (*ServiceTemplateSpec) XXX_DiscardUnknown Uses

func (m *ServiceTemplateSpec) XXX_DiscardUnknown()

func (*ServiceTemplateSpec) XXX_Marshal Uses

func (m *ServiceTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceTemplateSpec) XXX_Merge Uses

func (m *ServiceTemplateSpec) XXX_Merge(src proto.Message)

func (*ServiceTemplateSpec) XXX_Size Uses

func (m *ServiceTemplateSpec) XXX_Size() int

func (*ServiceTemplateSpec) XXX_Unmarshal Uses

func (m *ServiceTemplateSpec) XXX_Unmarshal(b []byte) error

Package v1 imports 15 packages (graph) and is imported by 48 packages. Updated 2020-09-24. Refresh now. Tools for package owners.