resources

package
v0.0.0-...-5006184 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=scheduler.arangodb.com

Index

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) Apply

func (i *Image) Apply(pod *core.PodTemplateSpec) error

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

func (*Image) Validate

func (i *Image) Validate() error

func (*Image) With

func (i *Image) With(other *Image) *Image

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) Apply

func (m *Metadata) Apply(template *core.PodTemplateSpec) error

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

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

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

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

func (*Metadata) Validate

func (m *Metadata) Validate() error

func (*Metadata) With

func (m *Metadata) With(other *Metadata) *Metadata

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"`
	// ShareProcessNamespace defines to share a single process namespace between all of the containers in a pod.
	// 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) Apply

func (n *Namespace) Apply(template *core.PodTemplateSpec) error

func (*Namespace) DeepCopy

func (in *Namespace) DeepCopy() *Namespace

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

func (*Namespace) DeepCopyInto

func (in *Namespace) DeepCopyInto(out *Namespace)

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

func (*Namespace) GetHostIPC

func (n *Namespace) GetHostIPC() *bool

func (*Namespace) GetHostNetwork

func (n *Namespace) GetHostNetwork() *bool

func (*Namespace) GetHostPID

func (n *Namespace) GetHostPID() *bool

func (*Namespace) GetShareProcessNamespace

func (n *Namespace) GetShareProcessNamespace() *bool

func (*Namespace) Validate

func (n *Namespace) Validate() error

func (*Namespace) With

func (n *Namespace) With(other *Namespace) *Namespace

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) Apply

func (s *Security) Apply(template *core.PodTemplateSpec) error

func (*Security) DeepCopy

func (in *Security) DeepCopy() *Security

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

func (*Security) DeepCopyInto

func (in *Security) DeepCopyInto(out *Security)

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

func (*Security) Validate

func (s *Security) Validate() error

func (*Security) With

func (s *Security) With(newResources *Security) *Security

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) Apply

func (v *Volumes) Apply(template *core.PodTemplateSpec) error

func (*Volumes) DeepCopy

func (in *Volumes) DeepCopy() *Volumes

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

func (*Volumes) DeepCopyInto

func (in *Volumes) DeepCopyInto(out *Volumes)

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

func (*Volumes) Validate

func (v *Volumes) Validate() error

func (*Volumes) With

func (v *Volumes) With(other *Volumes) *Volumes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL