Documentation ¶
Overview ¶
Package pod contains non-versioned pod configuration +k8s:openapi-gen=true +gencrdrefdocs:unversionedTypes +groupName=tekton.dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AAPodTemplate ¶ added in v0.39.0
type AAPodTemplate = AffinityAssistantTemplate
AAPodTemplate holds pod specific configuration for the affinity-assistant
func MergeAAPodTemplateWithDefault ¶ added in v0.39.0
func MergeAAPodTemplateWithDefault(tpl, defaultTpl *AAPodTemplate) *AAPodTemplate
MergeAAPodTemplateWithDefault is the same as MergePodTemplateWithDefault but for AffinityAssistantPodTemplates.
type AffinityAssistantTemplate ¶ added in v0.35.0
type AffinityAssistantTemplate 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"` // If specified, the pod's tolerations. // +optional // +listType=atomic Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // ImagePullSecrets gives the name of the secret used by the pod to pull the image if specified // +optional // +listType=atomic ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` // SecurityContext sets the security context for the pod // +optional SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` }
AffinityAssistantTemplate holds pod specific configuration and is a subset of the generic pod Template +k8s:deepcopy-gen=true +k8s:openapi-gen=true
func (*AffinityAssistantTemplate) DeepCopy ¶ added in v0.35.0
func (in *AffinityAssistantTemplate) DeepCopy() *AffinityAssistantTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AffinityAssistantTemplate.
func (*AffinityAssistantTemplate) DeepCopyInto ¶ added in v0.35.0
func (in *AffinityAssistantTemplate) DeepCopyInto(out *AffinityAssistantTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AffinityAssistantTemplate) Equals ¶ added in v0.35.0
func (tpl *AffinityAssistantTemplate) Equals(other *AffinityAssistantTemplate) bool
Equals checks if this Template is identical to the given Template.
type PodTemplate ¶ added in v0.39.0
type PodTemplate = Template
PodTemplate holds pod specific configuration
func MergePodTemplateWithDefault ¶ added in v0.39.0
func MergePodTemplateWithDefault(tpl, defaultTpl *PodTemplate) *PodTemplate
MergePodTemplateWithDefault merges 2 PodTemplates together. If the same field is set on both templates, the value from tpl will overwrite the value from defaultTpl.
type Template ¶
type Template 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"` // List of environment variables that can be provided to the containers belonging to the pod. // +optional // +patchMergeKey=name // +patchStrategy=merge // +listType=atomic Env []corev1.EnvVar `json:"env,omitempty" patchMergeKey:"name" patchStrategy:"merge" protobuf:"bytes,7,rep,name=env"` // If specified, the pod's tolerations. // +optional // +listType=atomic Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // If specified, the pod's scheduling constraints // +optional Affinity *corev1.Affinity `json:"affinity,omitempty"` // 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 *corev1.PodSecurityContext `json:"securityContext,omitempty"` // List of volumes that can be mounted by containers belonging to the pod. // More info: https://kubernetes.io/docs/concepts/storage/volumes // +optional // +patchMergeKey=name // +patchStrategy=merge,retainKeys // +listType=atomic Volumes []corev1.Volume `json:"volumes,omitempty" patchMergeKey:"name" patchStrategy:"merge,retainKeys" protobuf:"bytes,1,rep,name=volumes"` // 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 a beta feature as of Kubernetes v1.14. // +optional RuntimeClassName *string `json:"runtimeClassName,omitempty" protobuf:"bytes,2,opt,name=runtimeClassName"` // AutomountServiceAccountToken indicates whether pods running as this // service account should have an API token automatically mounted. // +optional AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" protobuf:"varint,3,opt,name=automountServiceAccountToken"` // Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are // 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig // will be merged with the policy selected with DNSPolicy. // +optional DNSPolicy *corev1.DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,4,opt,name=dnsPolicy,casttype=k8s.io/api/core/v1.DNSPolicy"` // Specifies the DNS parameters of a pod. // Parameters specified here will be merged to the generated DNS // configuration based on DNSPolicy. // +optional DNSConfig *corev1.PodDNSConfig `json:"dnsConfig,omitempty" protobuf:"bytes,5,opt,name=dnsConfig"` // 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,6,opt,name=enableServiceLinks"` // 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,7,opt,name=priorityClassName"` // SchedulerName specifies the scheduler to be used to dispatch the Pod // +optional SchedulerName string `json:"schedulerName,omitempty"` // ImagePullSecrets gives the name of the secret used by the pod to pull the image if specified // +optional // +listType=atomic ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts // file if specified. This is only valid for non-hostNetwork pods. // +optional // +listType=atomic HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"` // HostNetwork specifies whether the pod may use the node network namespace // +optional HostNetwork bool `json:"hostNetwork,omitempty"` // TopologySpreadConstraints controls how Pods are spread across your cluster among // failure-domains such as regions, zones, nodes, and other user-defined topology domains. // +optional // +listType=atomic TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` }
Template holds pod specific configuration +k8s:deepcopy-gen=true +k8s:openapi-gen=true
func (*Template) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.
func (*Template) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Template) ToAffinityAssistantTemplate ¶ added in v0.35.0
func (tpl *Template) ToAffinityAssistantTemplate() *AffinityAssistantTemplate
ToAffinityAssistantTemplate converts to a affinity assistant pod Template