k8s

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

Kubernetes Support

Kubernetes offers an api from the master node(s) which can be used to get some internal information.

For accessing this api, we need an access token.

AWS

To get the token via AWS IAM Authenticator, you can run:

$ aws-iam-authenticator token -i CLUSTERID

This is a bearer token that can be used on our API side to work with the cluster.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeAddressType_name = map[int32]string{
		0: "Hostname",
		1: "ExternalIP",
		3: "InternalIP",
		4: "ExternalDNS",
		5: "InternalDNS",
	}
	NodeAddressType_value = map[string]int32{
		"Hostname":    0,
		"ExternalIP":  1,
		"InternalIP":  3,
		"ExternalDNS": 4,
		"InternalDNS": 5,
	}
)

Enum value maps for NodeAddressType.

View Source
var File_k8s_k8s_types_proto protoreflect.FileDescriptor

Functions

func GetAwsK8sAccessToken

func GetAwsK8sAccessToken(k8sClusterId string, stsPartitionId string) (accessToken string)

func GetNodesInternalIpAddresses

func GetNodesInternalIpAddresses(clusterEndpoint string, limit uint, authToken string, certClientFile string) (result []string)

Returns the internal ip addresses of all known nodes of the cluster.

func GetTokenViaAwsIamAuthenticatorClient

func GetTokenViaAwsIamAuthenticatorClient(k8sClusterId string) (accesstoken string)

Types

type AttachedVolume

type AttachedVolume struct {
	// contains filtered or unexported fields
}

func (*AttachedVolume) Descriptor deprecated

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

Deprecated: Use AttachedVolume.ProtoReflect.Descriptor instead.

func (*AttachedVolume) ProtoMessage

func (*AttachedVolume) ProtoMessage()

func (*AttachedVolume) ProtoReflect added in v1.2.3

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

func (*AttachedVolume) Reset

func (x *AttachedVolume) Reset()

func (*AttachedVolume) String

func (x *AttachedVolume) String() string

type AwsIamAuthenticatorResponse

type AwsIamAuthenticatorResponse struct {
	Kind       string                     `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	ApiVersion string                     `protobuf:"bytes,2,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	Status     *AwsIamAuthenticatorStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*AwsIamAuthenticatorResponse) Descriptor deprecated

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

Deprecated: Use AwsIamAuthenticatorResponse.ProtoReflect.Descriptor instead.

func (*AwsIamAuthenticatorResponse) GetApiVersion

func (x *AwsIamAuthenticatorResponse) GetApiVersion() string

func (*AwsIamAuthenticatorResponse) GetKind

func (x *AwsIamAuthenticatorResponse) GetKind() string

func (*AwsIamAuthenticatorResponse) GetStatus

func (*AwsIamAuthenticatorResponse) ProtoMessage

func (*AwsIamAuthenticatorResponse) ProtoMessage()

func (*AwsIamAuthenticatorResponse) ProtoReflect added in v1.2.3

func (*AwsIamAuthenticatorResponse) Reset

func (x *AwsIamAuthenticatorResponse) Reset()

func (*AwsIamAuthenticatorResponse) String

func (x *AwsIamAuthenticatorResponse) String() string

type AwsIamAuthenticatorStatus

type AwsIamAuthenticatorStatus struct {
	ExpirationTimestamp string `protobuf:"bytes,1,opt,name=expirationTimestamp,proto3" json:"expirationTimestamp,omitempty"`
	Token               string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*AwsIamAuthenticatorStatus) Descriptor deprecated

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

Deprecated: Use AwsIamAuthenticatorStatus.ProtoReflect.Descriptor instead.

func (*AwsIamAuthenticatorStatus) GetExpirationTimestamp

func (x *AwsIamAuthenticatorStatus) GetExpirationTimestamp() string

func (*AwsIamAuthenticatorStatus) GetToken

func (x *AwsIamAuthenticatorStatus) GetToken() string

func (*AwsIamAuthenticatorStatus) ProtoMessage

func (*AwsIamAuthenticatorStatus) ProtoMessage()

func (*AwsIamAuthenticatorStatus) ProtoReflect added in v1.2.3

func (*AwsIamAuthenticatorStatus) Reset

func (x *AwsIamAuthenticatorStatus) Reset()

func (*AwsIamAuthenticatorStatus) String

func (x *AwsIamAuthenticatorStatus) String() string

type ContainerImage

type ContainerImage struct {
	// contains filtered or unexported fields
}

func (*ContainerImage) Descriptor deprecated

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

Deprecated: Use ContainerImage.ProtoReflect.Descriptor instead.

func (*ContainerImage) ProtoMessage

func (*ContainerImage) ProtoMessage()

func (*ContainerImage) ProtoReflect added in v1.2.3

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

func (*ContainerImage) Reset

func (x *ContainerImage) Reset()

func (*ContainerImage) String

func (x *ContainerImage) String() string

type ListMeta

type ListMeta struct {
	Continue        string `protobuf:"bytes,1,opt,name=continue,proto3" json:"continue,omitempty"`
	ResourceVersion string `protobuf:"bytes,2,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"`
	SelfLink        string `protobuf:"bytes,3,opt,name=selfLink,proto3" json:"selfLink,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMeta) Descriptor deprecated

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

Deprecated: Use ListMeta.ProtoReflect.Descriptor instead.

func (*ListMeta) GetContinue

func (x *ListMeta) GetContinue() string

func (*ListMeta) GetResourceVersion

func (x *ListMeta) GetResourceVersion() string
func (x *ListMeta) GetSelfLink() string

func (*ListMeta) ProtoMessage

func (*ListMeta) ProtoMessage()

func (*ListMeta) ProtoReflect added in v1.2.3

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

func (*ListMeta) Reset

func (x *ListMeta) Reset()

func (*ListMeta) String

func (x *ListMeta) String() string

type Node

type Node struct {
	ApiVersion string      `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	Kind       string      `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Metadata   *ObjectMeta `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Spec       *NodeSpec   `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"`
	Status     *NodeStatus `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetApiVersion

func (x *Node) GetApiVersion() string

func (*Node) GetKind

func (x *Node) GetKind() string

func (*Node) GetMetadata

func (x *Node) GetMetadata() *ObjectMeta

func (*Node) GetSpec

func (x *Node) GetSpec() *NodeSpec

func (*Node) GetStatus

func (x *Node) GetStatus() *NodeStatus

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect added in v1.2.3

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type NodeAddress

type NodeAddress struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Type    string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeAddress) Descriptor deprecated

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

Deprecated: Use NodeAddress.ProtoReflect.Descriptor instead.

func (*NodeAddress) GetAddress

func (x *NodeAddress) GetAddress() string

func (*NodeAddress) GetType

func (x *NodeAddress) GetType() string

func (*NodeAddress) ProtoMessage

func (*NodeAddress) ProtoMessage()

func (*NodeAddress) ProtoReflect added in v1.2.3

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

func (*NodeAddress) Reset

func (x *NodeAddress) Reset()

func (*NodeAddress) String

func (x *NodeAddress) String() string

type NodeAddressType

type NodeAddressType int32
const (
	NodeAddressType_Hostname    NodeAddressType = 0
	NodeAddressType_ExternalIP  NodeAddressType = 1
	NodeAddressType_InternalIP  NodeAddressType = 3
	NodeAddressType_ExternalDNS NodeAddressType = 4
	NodeAddressType_InternalDNS NodeAddressType = 5
)

func (NodeAddressType) Descriptor added in v1.2.3

func (NodeAddressType) Enum added in v1.2.3

func (x NodeAddressType) Enum() *NodeAddressType

func (NodeAddressType) EnumDescriptor deprecated

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

Deprecated: Use NodeAddressType.Descriptor instead.

func (NodeAddressType) Number added in v1.2.3

func (NodeAddressType) String

func (x NodeAddressType) String() string

func (NodeAddressType) Type added in v1.2.3

type NodeCondition

type NodeCondition struct {
	// contains filtered or unexported fields
}

func (*NodeCondition) Descriptor deprecated

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

Deprecated: Use NodeCondition.ProtoReflect.Descriptor instead.

func (*NodeCondition) ProtoMessage

func (*NodeCondition) ProtoMessage()

func (*NodeCondition) ProtoReflect added in v1.2.3

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

func (*NodeCondition) Reset

func (x *NodeCondition) Reset()

func (*NodeCondition) String

func (x *NodeCondition) String() string

type NodeList

type NodeList struct {
	Kind       string    `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	ApiVersion string    `protobuf:"bytes,2,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	Items      []*Node   `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
	Metadata   *ListMeta `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeList) Descriptor deprecated

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

Deprecated: Use NodeList.ProtoReflect.Descriptor instead.

func (*NodeList) GetApiVersion

func (x *NodeList) GetApiVersion() string

func (*NodeList) GetItems

func (x *NodeList) GetItems() []*Node

func (*NodeList) GetKind

func (x *NodeList) GetKind() string

func (*NodeList) GetMetadata

func (x *NodeList) GetMetadata() *ListMeta

func (*NodeList) ProtoMessage

func (*NodeList) ProtoMessage()

func (*NodeList) ProtoReflect added in v1.2.3

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

func (*NodeList) Reset

func (x *NodeList) Reset()

func (*NodeList) String

func (x *NodeList) String() string

type NodeSpec

type NodeSpec struct {
	ExternalID    string `protobuf:"bytes,1,opt,name=externalID,proto3" json:"externalID,omitempty"`
	PodCIDR       string `protobuf:"bytes,2,opt,name=podCIDR,proto3" json:"podCIDR,omitempty"`
	ProviderID    string `protobuf:"bytes,3,opt,name=providerID,proto3" json:"providerID,omitempty"`
	Unschedulable bool   `protobuf:"varint,4,opt,name=unschedulable,proto3" json:"unschedulable,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeSpec) Descriptor deprecated

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

Deprecated: Use NodeSpec.ProtoReflect.Descriptor instead.

func (*NodeSpec) GetExternalID

func (x *NodeSpec) GetExternalID() string

func (*NodeSpec) GetPodCIDR

func (x *NodeSpec) GetPodCIDR() string

func (*NodeSpec) GetProviderID

func (x *NodeSpec) GetProviderID() string

func (*NodeSpec) GetUnschedulable

func (x *NodeSpec) GetUnschedulable() bool

func (*NodeSpec) ProtoMessage

func (*NodeSpec) ProtoMessage()

func (*NodeSpec) ProtoReflect added in v1.2.3

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

func (*NodeSpec) Reset

func (x *NodeSpec) Reset()

func (*NodeSpec) String

func (x *NodeSpec) String() string

type NodeStatus

type NodeStatus struct {
	Addresses   []*NodeAddress   `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	Allocatable *anypb.Any       `protobuf:"bytes,2,opt,name=allocatable,proto3" json:"allocatable,omitempty"`
	Capacity    *anypb.Any       `protobuf:"bytes,3,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Conditions  []*NodeCondition `protobuf:"bytes,4,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// daemonEndpoints=5
	Images          []*ContainerImage `protobuf:"bytes,6,rep,name=images,proto3" json:"images,omitempty"`
	NodeInfo        *NodeSystemInfo   `protobuf:"bytes,7,opt,name=nodeInfo,proto3" json:"nodeInfo,omitempty"`
	Phase           string            `protobuf:"bytes,8,opt,name=phase,proto3" json:"phase,omitempty"`
	VolumesAttached []*AttachedVolume `protobuf:"bytes,9,rep,name=volumesAttached,proto3" json:"volumesAttached,omitempty"`
	VolumesInUse    []string          `protobuf:"bytes,10,rep,name=volumesInUse,proto3" json:"volumesInUse,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeStatus) Descriptor deprecated

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

Deprecated: Use NodeStatus.ProtoReflect.Descriptor instead.

func (*NodeStatus) GetAddresses

func (x *NodeStatus) GetAddresses() []*NodeAddress

func (*NodeStatus) GetAllocatable

func (x *NodeStatus) GetAllocatable() *anypb.Any

func (*NodeStatus) GetCapacity

func (x *NodeStatus) GetCapacity() *anypb.Any

func (*NodeStatus) GetConditions

func (x *NodeStatus) GetConditions() []*NodeCondition

func (*NodeStatus) GetImages

func (x *NodeStatus) GetImages() []*ContainerImage

func (*NodeStatus) GetNodeInfo

func (x *NodeStatus) GetNodeInfo() *NodeSystemInfo

func (*NodeStatus) GetPhase

func (x *NodeStatus) GetPhase() string

func (*NodeStatus) GetVolumesAttached

func (x *NodeStatus) GetVolumesAttached() []*AttachedVolume

func (*NodeStatus) GetVolumesInUse

func (x *NodeStatus) GetVolumesInUse() []string

func (*NodeStatus) ProtoMessage

func (*NodeStatus) ProtoMessage()

func (*NodeStatus) ProtoReflect added in v1.2.3

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

func (*NodeStatus) Reset

func (x *NodeStatus) Reset()

func (*NodeStatus) String

func (x *NodeStatus) String() string

type NodeSystemInfo

type NodeSystemInfo struct {
	// contains filtered or unexported fields
}

func (*NodeSystemInfo) Descriptor deprecated

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

Deprecated: Use NodeSystemInfo.ProtoReflect.Descriptor instead.

func (*NodeSystemInfo) ProtoMessage

func (*NodeSystemInfo) ProtoMessage()

func (*NodeSystemInfo) ProtoReflect added in v1.2.3

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

func (*NodeSystemInfo) Reset

func (x *NodeSystemInfo) Reset()

func (*NodeSystemInfo) String

func (x *NodeSystemInfo) String() string

type ObjectMeta

type ObjectMeta struct {
	Annotations                *anypb.Any   `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations,omitempty"`
	ClusterName                string       `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"`
	CreationTimestamp          string       `protobuf:"bytes,3,opt,name=creationTimestamp,proto3" json:"creationTimestamp,omitempty"`
	DeletionGracePeriodSeconds int32        `protobuf:"varint,4,opt,name=deletionGracePeriodSeconds,proto3" json:"deletionGracePeriodSeconds,omitempty"`
	DeletionTimestamp          string       `protobuf:"bytes,5,opt,name=deletionTimestamp,proto3" json:"deletionTimestamp,omitempty"`
	Finalizers                 []string     `protobuf:"bytes,6,rep,name=finalizers,proto3" json:"finalizers,omitempty"`
	GenerateName               string       `protobuf:"bytes,7,opt,name=generateName,proto3" json:"generateName,omitempty"`
	Generation                 int32        `protobuf:"varint,8,opt,name=generation,proto3" json:"generation,omitempty"`
	Initializers               *anypb.Any   `protobuf:"bytes,9,opt,name=initializers,proto3" json:"initializers,omitempty"`
	Labels                     *anypb.Any   `protobuf:"bytes,10,opt,name=labels,proto3" json:"labels,omitempty"`
	Name                       string       `protobuf:"bytes,11,opt,name=name,proto3" json:"name,omitempty"`
	Namespace                  string       `protobuf:"bytes,12,opt,name=namespace,proto3" json:"namespace,omitempty"`
	OwnerReferences            []*anypb.Any `protobuf:"bytes,13,rep,name=ownerReferences,proto3" json:"ownerReferences,omitempty"`
	ResourceVersion            string       `protobuf:"bytes,14,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"`
	SelfLink                   string       `protobuf:"bytes,15,opt,name=selfLink,proto3" json:"selfLink,omitempty"`
	Uid                        string       `protobuf:"bytes,16,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectMeta) Descriptor deprecated

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

Deprecated: Use ObjectMeta.ProtoReflect.Descriptor instead.

func (*ObjectMeta) GetAnnotations

func (x *ObjectMeta) GetAnnotations() *anypb.Any

func (*ObjectMeta) GetClusterName

func (x *ObjectMeta) GetClusterName() string

func (*ObjectMeta) GetCreationTimestamp

func (x *ObjectMeta) GetCreationTimestamp() string

func (*ObjectMeta) GetDeletionGracePeriodSeconds

func (x *ObjectMeta) GetDeletionGracePeriodSeconds() int32

func (*ObjectMeta) GetDeletionTimestamp

func (x *ObjectMeta) GetDeletionTimestamp() string

func (*ObjectMeta) GetFinalizers

func (x *ObjectMeta) GetFinalizers() []string

func (*ObjectMeta) GetGenerateName

func (x *ObjectMeta) GetGenerateName() string

func (*ObjectMeta) GetGeneration

func (x *ObjectMeta) GetGeneration() int32

func (*ObjectMeta) GetInitializers

func (x *ObjectMeta) GetInitializers() *anypb.Any

func (*ObjectMeta) GetLabels

func (x *ObjectMeta) GetLabels() *anypb.Any

func (*ObjectMeta) GetName

func (x *ObjectMeta) GetName() string

func (*ObjectMeta) GetNamespace

func (x *ObjectMeta) GetNamespace() string

func (*ObjectMeta) GetOwnerReferences

func (x *ObjectMeta) GetOwnerReferences() []*anypb.Any

func (*ObjectMeta) GetResourceVersion

func (x *ObjectMeta) GetResourceVersion() string
func (x *ObjectMeta) GetSelfLink() string

func (*ObjectMeta) GetUid

func (x *ObjectMeta) GetUid() string

func (*ObjectMeta) ProtoMessage

func (*ObjectMeta) ProtoMessage()

func (*ObjectMeta) ProtoReflect added in v1.2.3

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

func (*ObjectMeta) Reset

func (x *ObjectMeta) Reset()

func (*ObjectMeta) String

func (x *ObjectMeta) String() string

type RolloutImageDetails added in v1.1.3

type RolloutImageDetails struct {
	Namespace      string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	DeploymentName string `protobuf:"bytes,2,opt,name=deploymentName,proto3" json:"deploymentName,omitempty"`
	ContainerName  string `protobuf:"bytes,3,opt,name=containerName,proto3" json:"containerName,omitempty"`
	ImageWithTag   string `protobuf:"bytes,4,opt,name=imageWithTag,proto3" json:"imageWithTag,omitempty"`
	// contains filtered or unexported fields
}

func (*RolloutImageDetails) Descriptor deprecated added in v1.1.3

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

Deprecated: Use RolloutImageDetails.ProtoReflect.Descriptor instead.

func (*RolloutImageDetails) GetContainerName added in v1.1.3

func (x *RolloutImageDetails) GetContainerName() string

func (*RolloutImageDetails) GetDeploymentName added in v1.1.3

func (x *RolloutImageDetails) GetDeploymentName() string

func (*RolloutImageDetails) GetImageWithTag added in v1.1.3

func (x *RolloutImageDetails) GetImageWithTag() string

func (*RolloutImageDetails) GetNamespace added in v1.1.3

func (x *RolloutImageDetails) GetNamespace() string

func (*RolloutImageDetails) ProtoMessage added in v1.1.3

func (*RolloutImageDetails) ProtoMessage()

func (*RolloutImageDetails) ProtoReflect added in v1.2.3

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

func (*RolloutImageDetails) Reset added in v1.1.3

func (x *RolloutImageDetails) Reset()

func (*RolloutImageDetails) String added in v1.1.3

func (x *RolloutImageDetails) String() string

Jump to

Keyboard shortcuts

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