kube

package
v1.18.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Image_PullPolicy_name = map[int32]string{
		0: "Unspecified",
		1: "IfNotPresent",
		2: "Always",
		3: "Never",
	}
	Image_PullPolicy_value = map[string]int32{
		"Unspecified":  0,
		"IfNotPresent": 1,
		"Always":       2,
		"Never":        3,
	}
)

Enum value maps for Image_PullPolicy.

View Source
var (
	Service_ServiceType_name = map[int32]string{
		0: "Unspecified",
		1: "ClusterIP",
		2: "LoadBalancer",
	}
	Service_ServiceType_value = map[string]int32{
		"Unspecified":  0,
		"ClusterIP":    1,
		"LoadBalancer": 2,
	}
)

Enum value maps for Service_ServiceType.

View Source
var File_github_com_solo_io_gloo_projects_gateway2_api_v1alpha1_kube_autoscaling_proto protoreflect.FileDescriptor
View Source
var File_github_com_solo_io_gloo_projects_gateway2_api_v1alpha1_kube_container_proto protoreflect.FileDescriptor
View Source
var File_github_com_solo_io_gloo_projects_gateway2_api_v1alpha1_kube_pod_proto protoreflect.FileDescriptor
View Source
var File_github_com_solo_io_gloo_projects_gateway2_api_v1alpha1_kube_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Autoscaling

type Autoscaling struct {

	// If set, a Kubernetes HorizontalPodAutoscaler will be created to scale the
	// workload to match demand. See
	// https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
	// for details.
	HorizontalPodAutoscaler *HorizontalPodAutoscaler `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

Kubernetes autoscaling configuration.

func (*Autoscaling) Descriptor deprecated

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

Deprecated: Use Autoscaling.ProtoReflect.Descriptor instead.

func (*Autoscaling) Equal

func (m *Autoscaling) Equal(that interface{}) bool

Equal function

func (*Autoscaling) GetHorizontalPodAutoscaler

func (x *Autoscaling) GetHorizontalPodAutoscaler() *HorizontalPodAutoscaler

func (*Autoscaling) Hash

func (m *Autoscaling) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Autoscaling) ProtoMessage

func (*Autoscaling) ProtoMessage()

func (*Autoscaling) ProtoReflect

func (x *Autoscaling) ProtoReflect() protoreflect.Message

func (*Autoscaling) Reset

func (x *Autoscaling) Reset()

func (*Autoscaling) String

func (x *Autoscaling) String() string

type HorizontalPodAutoscaler

type HorizontalPodAutoscaler struct {

	// The lower limit for the number of replicas to which the autoscaler can
	// scale down. Defaults to 1.
	MinReplicas *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"`
	// The upper limit for the number of replicas to which the autoscaler can
	// scale up. Cannot be less than `minReplicas`. Defaults to 100.
	MaxReplicas *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"`
	// The target value of the average CPU utilization across all relevant pods,
	// represented as a percentage of the requested value of the resource for the
	// pods. Defaults to 80.
	TargetCpuUtilizationPercentage *wrappers.UInt32Value `` /* 155-byte string literal not displayed */
	// The target value of the average memory utilization across all relevant
	// pods, represented as a percentage of the requested value of the resource
	// for the pods. Defaults to 80.
	TargetMemoryUtilizationPercentage *wrappers.UInt32Value `` /* 164-byte string literal not displayed */
	// contains filtered or unexported fields
}

Horizontal pod autoscaling configuration. See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ for details.

func (*HorizontalPodAutoscaler) Descriptor deprecated

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

Deprecated: Use HorizontalPodAutoscaler.ProtoReflect.Descriptor instead.

func (*HorizontalPodAutoscaler) Equal

func (m *HorizontalPodAutoscaler) Equal(that interface{}) bool

Equal function

func (*HorizontalPodAutoscaler) GetMaxReplicas

func (x *HorizontalPodAutoscaler) GetMaxReplicas() *wrappers.UInt32Value

func (*HorizontalPodAutoscaler) GetMinReplicas

func (x *HorizontalPodAutoscaler) GetMinReplicas() *wrappers.UInt32Value

func (*HorizontalPodAutoscaler) GetTargetCpuUtilizationPercentage

func (x *HorizontalPodAutoscaler) GetTargetCpuUtilizationPercentage() *wrappers.UInt32Value

func (*HorizontalPodAutoscaler) GetTargetMemoryUtilizationPercentage

func (x *HorizontalPodAutoscaler) GetTargetMemoryUtilizationPercentage() *wrappers.UInt32Value

func (*HorizontalPodAutoscaler) Hash

func (m *HorizontalPodAutoscaler) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*HorizontalPodAutoscaler) ProtoMessage

func (*HorizontalPodAutoscaler) ProtoMessage()

func (*HorizontalPodAutoscaler) ProtoReflect

func (x *HorizontalPodAutoscaler) ProtoReflect() protoreflect.Message

func (*HorizontalPodAutoscaler) Reset

func (x *HorizontalPodAutoscaler) Reset()

func (*HorizontalPodAutoscaler) String

func (x *HorizontalPodAutoscaler) String() string

type Image

type Image struct {

	// The image registry.
	Registry *wrappers.StringValue `protobuf:"bytes,1,opt,name=registry,proto3" json:"registry,omitempty"`
	// The image repository (name).
	Repository *wrappers.StringValue `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"`
	// The image tag.
	Tag *wrappers.StringValue `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
	// The hash digest of the image, e.g. `sha256:12345...`
	Digest *wrappers.StringValue `protobuf:"bytes,4,opt,name=digest,proto3" json:"digest,omitempty"`
	// The image pull policy for the container. See
	// https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
	// for details.
	PullPolicy Image_PullPolicy `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

A container image. See https://kubernetes.io/docs/concepts/containers/images for details.

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) Equal

func (m *Image) Equal(that interface{}) bool

Equal function

func (*Image) GetDigest

func (x *Image) GetDigest() *wrappers.StringValue

func (*Image) GetPullPolicy

func (x *Image) GetPullPolicy() Image_PullPolicy

func (*Image) GetRegistry

func (x *Image) GetRegistry() *wrappers.StringValue

func (*Image) GetRepository

func (x *Image) GetRepository() *wrappers.StringValue

func (*Image) GetTag

func (x *Image) GetTag() *wrappers.StringValue

func (*Image) Hash

func (m *Image) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type Image_PullPolicy

type Image_PullPolicy int32
const (
	// The image pull policy will be defaulted based on the image tag or digest.
	// See
	// https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
	// for details.
	Image_Unspecified Image_PullPolicy = 0
	// The image is pulled only if it is not already present locally.
	// See
	// https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
	// for details.
	Image_IfNotPresent Image_PullPolicy = 1
	// Every time the kubelet launches a container, the kubelet queries the
	// container image registry to resolve the name to an image digest. See
	// https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
	// for details.
	Image_Always Image_PullPolicy = 2
	// The kubelet does not try fetching the image. If the image is somehow
	// already present locally, the kubelet attempts to start the container;
	// otherwise, startup fails. See
	// https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
	// for details.
	Image_Never Image_PullPolicy = 3
)

func (Image_PullPolicy) Descriptor

func (Image_PullPolicy) Enum

func (Image_PullPolicy) EnumDescriptor deprecated

func (Image_PullPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use Image_PullPolicy.Descriptor instead.

func (Image_PullPolicy) Number

func (Image_PullPolicy) String

func (x Image_PullPolicy) String() string

func (Image_PullPolicy) Type

type Pod

type Pod struct {

	// Additional labels to add to the Pod object metadata.
	ExtraLabels map[string]string `` /* 182-byte string literal not displayed */
	// Additional annotations to add to the Pod object metadata.
	ExtraAnnotations map[string]string `` /* 197-byte string literal not displayed */
	// The pod security context. See
	// https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#podsecuritycontext-v1-core
	// for details.
	SecurityContext *v1.PodSecurityContext `protobuf:"bytes,3,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"`
	// An optional list of references to secrets in the same namespace to use for
	// pulling any of the images used by this Pod spec. See
	// https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
	// for details.
	ImagePullSecrets []*v1.LocalObjectReference `protobuf:"bytes,4,rep,name=image_pull_secrets,json=imagePullSecrets,proto3" json:"image_pull_secrets,omitempty"`
	// A selector which must be true for the pod to fit on a node. See
	// https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ for
	// details.
	NodeSelector map[string]string `` /* 185-byte string literal not displayed */
	// If specified, the pod's scheduling constraints. See
	// https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#affinity-v1-core
	// for details.
	Affinity *v1.Affinity `protobuf:"bytes,6,opt,name=affinity,proto3" json:"affinity,omitempty"`
	// If specified, the pod's tolerations. See
	// https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#toleration-v1-core
	// for details.
	Tolerations []*v1.Toleration `protobuf:"bytes,7,rep,name=tolerations,proto3" json:"tolerations,omitempty"`
	// contains filtered or unexported fields
}

Configuration for a Kubernetes Pod template.

func (*Pod) Descriptor deprecated

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

Deprecated: Use Pod.ProtoReflect.Descriptor instead.

func (*Pod) Equal

func (m *Pod) Equal(that interface{}) bool

Equal function

func (*Pod) GetAffinity

func (x *Pod) GetAffinity() *v1.Affinity

func (*Pod) GetExtraAnnotations

func (x *Pod) GetExtraAnnotations() map[string]string

func (*Pod) GetExtraLabels

func (x *Pod) GetExtraLabels() map[string]string

func (*Pod) GetImagePullSecrets

func (x *Pod) GetImagePullSecrets() []*v1.LocalObjectReference

func (*Pod) GetNodeSelector

func (x *Pod) GetNodeSelector() map[string]string

func (*Pod) GetSecurityContext

func (x *Pod) GetSecurityContext() *v1.PodSecurityContext

func (*Pod) GetTolerations

func (x *Pod) GetTolerations() []*v1.Toleration

func (*Pod) Hash

func (m *Pod) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Pod) ProtoMessage

func (*Pod) ProtoMessage()

func (*Pod) ProtoReflect

func (x *Pod) ProtoReflect() protoreflect.Message

func (*Pod) Reset

func (x *Pod) Reset()

func (*Pod) String

func (x *Pod) String() string

type ResourceRequirements

type ResourceRequirements struct {

	// The maximum amount of compute resources allowed.
	Limits map[string]string `` /* 153-byte string literal not displayed */
	// The minimum amount of compute resources required.
	Requests map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

Compute resources required by this container. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ for details.

func (*ResourceRequirements) Descriptor deprecated

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

Deprecated: Use ResourceRequirements.ProtoReflect.Descriptor instead.

func (*ResourceRequirements) Equal

func (m *ResourceRequirements) Equal(that interface{}) bool

Equal function

func (*ResourceRequirements) GetLimits

func (x *ResourceRequirements) GetLimits() map[string]string

func (*ResourceRequirements) GetRequests

func (x *ResourceRequirements) GetRequests() map[string]string

func (*ResourceRequirements) Hash

func (m *ResourceRequirements) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*ResourceRequirements) ProtoMessage

func (*ResourceRequirements) ProtoMessage()

func (*ResourceRequirements) ProtoReflect

func (x *ResourceRequirements) ProtoReflect() protoreflect.Message

func (*ResourceRequirements) Reset

func (x *ResourceRequirements) Reset()

func (*ResourceRequirements) String

func (x *ResourceRequirements) String() string

type Service

type Service struct {

	// The Kubernetes Service type.
	Type Service_ServiceType `protobuf:"varint,1,opt,name=type,proto3,enum=kube.gateway.gloo.solo.io.Service_ServiceType" json:"type,omitempty"`
	// The manually specified IP address of the service, if a randomly assigned
	// IP is not desired. See
	// https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
	// and
	// https://kubernetes.io/docs/concepts/services-networking/service/#headless-services
	// on the implications of setting `clusterIP`.
	ClusterIP *wrappers.StringValue `protobuf:"bytes,2,opt,name=clusterIP,proto3" json:"clusterIP,omitempty"`
	// Additional labels to add to the Service object metadata.
	ExtraLabels map[string]string `` /* 182-byte string literal not displayed */
	// Additional annotations to add to the Service object metadata.
	ExtraAnnotations map[string]string `` /* 197-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration for a Kubernetes Service.

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) Equal

func (m *Service) Equal(that interface{}) bool

Equal function

func (*Service) GetClusterIP

func (x *Service) GetClusterIP() *wrappers.StringValue

func (*Service) GetExtraAnnotations

func (x *Service) GetExtraAnnotations() map[string]string

func (*Service) GetExtraLabels

func (x *Service) GetExtraLabels() map[string]string

func (*Service) GetType

func (x *Service) GetType() Service_ServiceType

func (*Service) Hash

func (m *Service) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type Service_ServiceType

type Service_ServiceType int32

Kubernetes Service type. If not specified, defaults to `ClusterIP`. See https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types for details on each service type. Currently, only ClusterIP and LoadBalancer are supported.

const (
	// Unspecified allows us to mark a field for inheritance when overriding defaults. This is the default.
	Service_Unspecified Service_ServiceType = 0
	// Exposes the Service on a cluster-internal IP.
	Service_ClusterIP Service_ServiceType = 1
	// Exposes the Service externally using an external load balancer.
	Service_LoadBalancer Service_ServiceType = 2
)

func (Service_ServiceType) Descriptor

func (Service_ServiceType) Enum

func (Service_ServiceType) EnumDescriptor deprecated

func (Service_ServiceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Service_ServiceType.Descriptor instead.

func (Service_ServiceType) Number

func (Service_ServiceType) String

func (x Service_ServiceType) String() string

func (Service_ServiceType) Type

Jump to

Keyboard shortcuts

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