pod

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Annotations       map[string]string `db:"annotations"`
	CreationTimestamp time.Time         `db:"creation_ts"`
	Labels            map[string]string `db:"labels"`
	Name              string            `db:"name"`
	Namespace         string            `db:"namespace"`

	Affinity                      *apicorev1.Affinity
	AutomountServiceAccountToken  *bool   `db:"automount_service_account_token"`
	CPULimits                     float64 `db:"cpu_limits"`
	CPURequests                   float64 `db:"cpu_requests"`
	Containers                    container.InfoList
	DNSConfig                     *apicorev1.PodDNSConfig
	DNSPolicy                     apicorev1.DNSPolicy `db:"dns_policy"`
	EnableServiceLinks            *bool               `db:"enable_service_links"`
	HostIPC                       bool                `db:"host_ipc"`
	HostNetwork                   bool                `db:"host_network"`
	HostPID                       bool                `db:"host_pid"`
	HostUsers                     *bool               `db:"host_users"`
	Hostname                      string              `db:"hostname"`
	IP                            string              `db:"ip"`
	InitContainers                container.InfoList
	MemoryLimits                  float64           `db:"memory_limits"`
	MemoryRequests                float64           `db:"memory_requests"`
	NodeName                      string            `db:"node_name"`
	NodeSelector                  map[string]string `db:"node_selector"`
	PreemptionPolicy              *apicorev1.PreemptionPolicy
	Priority                      *int32 `db:"priority"`
	PriorityClassName             string `db:"priority_class_name"`
	Tolerations                   TolerationList
	RestartPolicy                 string  `db:"restart_policy"`
	RuntimeClassName              *string `db:"runtime_class_name"`
	SchedulerName                 string  `db:"scheduler_name"`
	ServiceAccountName            string  `db:"service_account_name"`
	SetHostnameAsFQDN             *bool   `db:"set_hostname_as_fqdn"`
	ShareProcessNamespace         *bool   `db:"share_process_namespace"`
	Subdomain                     string  `db:"subdomain"`
	TerminationGracePeriodSeconds *int64  `db:"termination_grace_period_seconds"`
}

type InfoList

type InfoList []*Info

func Fetch

func Fetch(ctx context.Context, clientset *kubernetes.Clientset) (InfoList, error)

type Toleration added in v0.0.19

type Toleration struct {
	Effect            string
	Key               string
	Operator          string
	TolerationSeconds *int64
	Value             string
}

type TolerationList added in v0.0.19

type TolerationList []*Toleration

Jump to

Keyboard shortcuts

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