Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=scheduler.arangodb.com
Index ¶
- type Image
- type ImagePullSecrets
- type Metadata
- type Namespace
- func (n *Namespace) Apply(template *core.PodTemplateSpec) error
- func (in *Namespace) DeepCopy() *Namespace
- func (in *Namespace) DeepCopyInto(out *Namespace)
- func (n *Namespace) GetHostIPC() *bool
- func (n *Namespace) GetHostNetwork() *bool
- func (n *Namespace) GetHostPID() *bool
- func (n *Namespace) GetShareProcessNamespace() *bool
- func (n *Namespace) Validate() error
- func (n *Namespace) With(other *Namespace) *Namespace
- type Scheduling
- func (s *Scheduling) Apply(template *core.PodTemplateSpec) error
- func (in *Scheduling) DeepCopy() *Scheduling
- func (in *Scheduling) DeepCopyInto(out *Scheduling)
- func (s *Scheduling) GetAffinity() *core.Affinity
- func (s *Scheduling) GetNodeSelector() map[string]string
- func (s *Scheduling) GetSchedulerName() string
- func (s *Scheduling) GetTolerations() Tolerations
- func (s *Scheduling) Validate() error
- func (s *Scheduling) With(other *Scheduling) *Scheduling
- type Security
- func (s *Security) Apply(template *core.PodTemplateSpec) error
- func (in *Security) DeepCopy() *Security
- func (in *Security) DeepCopyInto(out *Security)
- func (s *Security) GetSecurityContext() *core.PodSecurityContext
- func (s *Security) Validate() error
- func (s *Security) With(newResources *Security) *Security
- type ServiceAccount
- type Tolerations
- type Volumes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { // ImagePullSecrets define Secrets used to pull Image from registry ImagePullSecrets ImagePullSecrets `json:"imagePullSecrets,omitempty"` }
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImagePullSecrets ¶
type ImagePullSecrets []string
func (ImagePullSecrets) DeepCopy ¶
func (in ImagePullSecrets) DeepCopy() ImagePullSecrets
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImagePullSecrets.
func (ImagePullSecrets) DeepCopyInto ¶
func (in ImagePullSecrets) DeepCopyInto(out *ImagePullSecrets)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Metadata ¶
type Metadata struct { // 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. // +doc/link: Kubernetes docs|https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Labels map[string]string `json:"labels,omitempty"` // 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. // +doc/link: Kubernetes docs|https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Annotations map[string]string `json:"annotations,omitempty"` // 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. // +doc/type: meta.OwnerReference OwnerReferences []meta.OwnerReference `json:"ownerReferences,omitempty"` }
func (*Metadata) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata.
func (*Metadata) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Namespace ¶
type Namespace struct { // HostNetwork requests Host network for this pod. Use the host's network namespace. // If this option is set, the ports that will be used must be specified. // +doc/default: false HostNetwork *bool `json:"hostNetwork,omitempty" protobuf:"varint,11,opt,name=hostNetwork"` // HostPID define to use the host's pid namespace. // +doc/default: false HostPID *bool `json:"hostPID,omitempty" protobuf:"varint,12,opt,name=hostPID"` // HostIPC defines to use the host's ipc namespace. // +doc/default: false HostIPC *bool `json:"hostIPC,omitempty" protobuf:"varint,13,opt,name=hostIPC"` // When this is set containers will be able to view and signal processes from other containers // in the same pod, and the first process in each container will not be assigned PID 1. // HostPID and ShareProcessNamespace cannot both be set. // +doc/default: false ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" protobuf:"varint,27,opt,name=shareProcessNamespace"` }
func (*Namespace) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Namespace.
func (*Namespace) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Namespace) GetHostIPC ¶
func (*Namespace) GetHostNetwork ¶
func (*Namespace) GetHostPID ¶
func (*Namespace) GetShareProcessNamespace ¶
type Scheduling ¶
type Scheduling struct { // NodeSelector is a selector that must be true for the workload to fit on a node. // +doc/link: Kubernetes docs|https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector NodeSelector map[string]string `json:"nodeSelector,omitempty"` // Affinity defines scheduling constraints for workload // +doc/type: core.Affinity // +doc/link: Kubernetes docs|https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity Affinity *core.Affinity `json:"affinity,omitempty"` // Tolerations defines tolerations // +doc/type: []core.Toleration // +doc/link: Kubernetes docs|https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ Tolerations Tolerations `json:"tolerations,omitempty"` // SchedulerName specifies, the pod will be dispatched by specified scheduler. // If not specified, the pod will be dispatched by default scheduler. // +doc/default: "" SchedulerName *string `json:"schedulerName,omitempty"` }
func (*Scheduling) Apply ¶
func (s *Scheduling) Apply(template *core.PodTemplateSpec) error
func (*Scheduling) DeepCopy ¶
func (in *Scheduling) DeepCopy() *Scheduling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scheduling.
func (*Scheduling) DeepCopyInto ¶
func (in *Scheduling) DeepCopyInto(out *Scheduling)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Scheduling) GetAffinity ¶
func (s *Scheduling) GetAffinity() *core.Affinity
func (*Scheduling) GetNodeSelector ¶
func (s *Scheduling) GetNodeSelector() map[string]string
func (*Scheduling) GetSchedulerName ¶
func (s *Scheduling) GetSchedulerName() string
func (*Scheduling) GetTolerations ¶
func (s *Scheduling) GetTolerations() Tolerations
func (*Scheduling) Validate ¶
func (s *Scheduling) Validate() error
func (*Scheduling) With ¶
func (s *Scheduling) With(other *Scheduling) *Scheduling
type Security ¶
type Security struct { // PodSecurityContext holds pod-level security attributes and common container settings. // +doc/type: core.PodSecurityContext // +doc/link: Kubernetes docs|https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ PodSecurityContext *core.PodSecurityContext `json:"podSecurityContext,omitempty"` }
func (*Security) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Security.
func (*Security) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Security) GetSecurityContext ¶
func (s *Security) GetSecurityContext() *core.PodSecurityContext
type ServiceAccount ¶
type ServiceAccount struct { // ServiceAccountName is the name of the ServiceAccount to use to run this pod. // +doc/link: Kubernetes docs|https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ ServiceAccountName string `json:"serviceAccountName,omitempty"` // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` }
func (*ServiceAccount) Apply ¶
func (s *ServiceAccount) Apply(template *core.PodTemplateSpec) error
func (*ServiceAccount) DeepCopy ¶
func (in *ServiceAccount) DeepCopy() *ServiceAccount
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccount.
func (*ServiceAccount) DeepCopyInto ¶
func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceAccount) Validate ¶
func (s *ServiceAccount) Validate() error
func (*ServiceAccount) With ¶
func (s *ServiceAccount) With(newResources *ServiceAccount) *ServiceAccount
type Tolerations ¶
type Tolerations []core.Toleration
func (Tolerations) DeepCopy ¶
func (in Tolerations) DeepCopy() Tolerations
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tolerations.
func (Tolerations) DeepCopyInto ¶
func (in Tolerations) DeepCopyInto(out *Tolerations)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Volumes ¶
type Volumes struct { // Volumes keeps list of volumes that can be mounted by containers belonging to the pod. // +doc/type: []core.Volume // +doc/link: Kubernetes docs|https://kubernetes.io/docs/concepts/storage/volumes Volumes []core.Volume `json:"volumes,omitempty"` }
func (*Volumes) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volumes.
func (*Volumes) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.