Documentation ¶
Index ¶
- Constants
- func CPU(cpu string) kresource.Quantity
- func ConfigMap(spec *ConfigMapSpec) *kcore.ConfigMap
- func ConfigMapMap(configMaps []kcore.ConfigMap) map[string]kcore.ConfigMap
- func Deployment(spec *DeploymentSpec) *kapps.Deployment
- func DeploymentMap(deployments []kapps.Deployment) map[string]kapps.Deployment
- func DeploymentStartTime(deployment *kapps.Deployment) *time.Time
- func DeploymentStrategiesMatch(s1, s2 kapps.DeploymentStrategy) bool
- func EmptyDirVolume(volumeName string) kcore.Volume
- func EmptyDirVolumeMount(volumeName string, mountPath string) kcore.VolumeMount
- func ErrorAnnotationNotFound(annotationName string) error
- func ErrorLabelNotFound(labelName string) error
- func ErrorMissingMetrics() error
- func ErrorParseAnnotation(annotationName string, annotationVal string, desiredType string) error
- func ErrorParseLabel(labelName string, labelVal string, desiredType string) error
- func ErrorParseQuantity(qtyStr string) error
- func ErrorServiceNotFound(serviceName string) error
- func ExtractVirtualServiceEndpoints(virtualService *istioclientnetworking.VirtualService) strset.Set
- func ExtractVirtualServiceGateways(virtualService *istioclientnetworking.VirtualService) strset.Set
- func FieldSelectorNotIn(key string, values []string) string
- func GetAnnotation(obj kmeta.Object, key string) (string, error)
- func GetLabel(obj kmeta.Object, key string) (string, error)
- func GetPodConditionOf(pod *kcore.Pod, podType kcore.PodConditionType) (*bool, *kcore.PodCondition)
- func GetPodReadyTime(pod *kcore.Pod) *time.Time
- func HPA(spec *HPASpec) (*kautoscaling.HorizontalPodAutoscaler, error)
- func HPAMap(hpas []kautoscaling.HorizontalPodAutoscaler) map[string]kautoscaling.HorizontalPodAutoscaler
- func HowManyPodsFitOnNode(podSpec kcore.PodSpec, node kcore.Node, cpuReserved resource.Quantity, ...) int64
- func Ingress(spec *IngressSpec) *kextensions.Ingress
- func IngressMap(ingresses []kextensions.Ingress) map[string]kextensions.Ingress
- func IsHPAUpToDate(hpa *kautoscaling.HorizontalPodAutoscaler, ...) bool
- func IsPodReady(pod *kcore.Pod) bool
- func IsPodStalled(pod *kcore.Pod) bool
- func Job(spec *JobSpec) *kbatch.Job
- func JobMap(jobs []kbatch.Job) map[string]kbatch.Job
- func LabelExistsSelector(labelKeys ...string) string
- func Mem(mem string) kresource.Quantity
- func ParseBoolAnnotation(obj kmeta.Object, key string) (bool, error)
- func ParseBoolLabel(obj kmeta.Object, key string) (bool, error)
- func ParseDurationAnnotation(obj kmeta.Object, key string) (time.Duration, error)
- func ParseDurationLabel(obj kmeta.Object, key string) (time.Duration, error)
- func ParseFloat32Annotation(obj kmeta.Object, key string) (float32, error)
- func ParseFloat32Label(obj kmeta.Object, key string) (float32, error)
- func ParseFloat64Annotation(obj kmeta.Object, key string) (float64, error)
- func ParseFloat64Label(obj kmeta.Object, key string) (float64, error)
- func ParseInt32Annotation(obj kmeta.Object, key string) (int32, error)
- func ParseInt32Label(obj kmeta.Object, key string) (int32, error)
- func ParseInt64Annotation(obj kmeta.Object, key string) (int64, error)
- func ParseInt64Label(obj kmeta.Object, key string) (int64, error)
- func ParseIntAnnotation(obj kmeta.Object, key string) (int, error)
- func ParseIntLabel(obj kmeta.Object, key string) (int, error)
- func Pod(spec *PodSpec) *kcore.Pod
- func PodComputesEqual(podSpec1, podSpec2 *kcore.PodSpec) bool
- func PodMap(pods []kcore.Pod) map[string]kcore.Pod
- func QuantityParser(v *QuantityValidation) func(string) (interface{}, error)
- func QuantityPtr(k8sQuantity kresource.Quantity) *kresource.Quantity
- func QuantityPtrID(quantity *Quantity) string
- func QuantityPtrsEqual(quantity *Quantity, quantity2 *Quantity) bool
- func RandomName() string
- func Secret(spec *SecretSpec) *kcore.Secret
- func SecretMap(secrets []kcore.Secret) map[string]kcore.Secret
- func Service(spec *ServiceSpec) *kcore.Service
- func ServiceMap(services []kcore.Service) map[string]kcore.Service
- func ToKiCeil(k8sQuantity kresource.Quantity) int64
- func ToKiCeilStr(k8sQuantity kresource.Quantity) string
- func ToKiFloor(k8sQuantity kresource.Quantity) int64
- func ToKiFloorStr(k8sQuantity kresource.Quantity) string
- func ToKiRounded(k8sQuantity kresource.Quantity) int64
- func ToKiRoundedStr(k8sQuantity kresource.Quantity) string
- func ToMiCeil(k8sQuantity kresource.Quantity) int64
- func ToMiCeilStr(k8sQuantity kresource.Quantity) string
- func ToMiFloor(k8sQuantity kresource.Quantity) int64
- func ToMiFloorStr(k8sQuantity kresource.Quantity) string
- func ToMiRounded(k8sQuantity kresource.Quantity) int64
- func ToMiRoundedStr(k8sQuantity kresource.Quantity) string
- func TotalPodCompute(podSpec *kcore.PodSpec) (Quantity, Quantity, int64, int64)
- func ValidName(name string) string
- func ValidNameContainer(name string) string
- func VirtualService(spec *VirtualServiceSpec) *istioclientnetworking.VirtualService
- func WasPodOOMKilled(pod *kcore.Pod) bool
- type Client
- func (c *Client) ApplyConfigMap(configMap *kcore.ConfigMap) (*kcore.ConfigMap, error)
- func (c *Client) ApplyDeployment(deployment *kapps.Deployment) (*kapps.Deployment, error)
- func (c *Client) ApplyHPA(hpa *kautoscaling.HorizontalPodAutoscaler) (*kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) ApplyIngress(ingress *kextensions.Ingress) (*kextensions.Ingress, error)
- func (c *Client) ApplyJob(job *kbatch.Job) (*kbatch.Job, error)
- func (c *Client) ApplyPod(pod *kcore.Pod) (*kcore.Pod, error)
- func (c *Client) ApplySecret(secret *kcore.Secret) (*kcore.Secret, error)
- func (c *Client) ApplyService(service *kcore.Service) (*kcore.Service, error)
- func (c *Client) ApplyVirtualService(virtualService *istioclientnetworking.VirtualService) (*istioclientnetworking.VirtualService, error)
- func (c *Client) ClientSet() *kclientset.Clientset
- func (c *Client) CreateConfigMap(configMap *kcore.ConfigMap) (*kcore.ConfigMap, error)
- func (c *Client) CreateDeployment(deployment *kapps.Deployment) (*kapps.Deployment, error)
- func (c *Client) CreateHPA(hpa *kautoscaling.HorizontalPodAutoscaler) (*kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) CreateIngress(ingress *kextensions.Ingress) (*kextensions.Ingress, error)
- func (c *Client) CreateJob(job *kbatch.Job) (*kbatch.Job, error)
- func (c *Client) CreatePod(pod *kcore.Pod) (*kcore.Pod, error)
- func (c *Client) CreateSecret(secret *kcore.Secret) (*kcore.Secret, error)
- func (c *Client) CreateService(service *kcore.Service) (*kcore.Service, error)
- func (c *Client) CreateVirtualService(virtualService *istioclientnetworking.VirtualService) (*istioclientnetworking.VirtualService, error)
- func (c *Client) DeleteConfigMap(name string) (bool, error)
- func (c *Client) DeleteDeployment(name string) (bool, error)
- func (c *Client) DeleteHPA(name string) (bool, error)
- func (c *Client) DeleteIngress(name string) (bool, error)
- func (c *Client) DeleteJob(name string) (bool, error)
- func (c *Client) DeleteJobs(opts *kmeta.ListOptions) (bool, error)
- func (c *Client) DeletePod(name string) (bool, error)
- func (c *Client) DeleteSecret(name string) (bool, error)
- func (c *Client) DeleteService(name string) (bool, error)
- func (c *Client) DeleteVirtualService(name string) (bool, error)
- func (c *Client) Exec(podName string, containerName string, command []string) (string, error)
- func (c *Client) GetConfigMap(name string) (*kcore.ConfigMap, error)
- func (c *Client) GetConfigMapData(name string) (map[string]string, map[string][]byte, error)
- func (c *Client) GetDeployment(name string) (*kapps.Deployment, error)
- func (c *Client) GetHPA(name string) (*kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) GetIngress(name string) (*kextensions.Ingress, error)
- func (c *Client) GetJob(name string) (*kbatch.Job, error)
- func (c *Client) GetPod(name string) (*kcore.Pod, error)
- func (c *Client) GetSecret(name string) (*kcore.Secret, error)
- func (c *Client) GetSecretData(name string) (map[string][]byte, error)
- func (c *Client) GetService(name string) (*kcore.Service, error)
- func (c *Client) GetVirtualService(name string) (*istioclientnetworking.VirtualService, error)
- func (c *Client) InternalServiceEndpoint(serviceName string, portNumber int32) string
- func (c *Client) IsJobRunning(name string) (bool, error)
- func (c *Client) IstioClientSet() *istioclient.Clientset
- func (c *Client) ListConfigMaps(opts *kmeta.ListOptions) ([]kcore.ConfigMap, error)
- func (c *Client) ListConfigMapsByLabel(labelKey string, labelValue string) ([]kcore.ConfigMap, error)
- func (c *Client) ListConfigMapsByLabels(labels map[string]string) ([]kcore.ConfigMap, error)
- func (c *Client) ListConfigMapsWithLabelKeys(labelKeys ...string) ([]kcore.ConfigMap, error)
- func (c *Client) ListDeployments(opts *kmeta.ListOptions) ([]kapps.Deployment, error)
- func (c *Client) ListDeploymentsByLabel(labelKey string, labelValue string) ([]kapps.Deployment, error)
- func (c *Client) ListDeploymentsByLabels(labels map[string]string) ([]kapps.Deployment, error)
- func (c *Client) ListDeploymentsWithLabelKeys(labelKeys ...string) ([]kapps.Deployment, error)
- func (c *Client) ListHPAs(opts *kmeta.ListOptions) ([]kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) ListHPAsByLabel(labelKey string, labelValue string) ([]kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) ListHPAsByLabels(labels map[string]string) ([]kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) ListHPAsWithLabelKeys(labelKeys ...string) ([]kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) ListIngresses(opts *kmeta.ListOptions) ([]kextensions.Ingress, error)
- func (c *Client) ListIngressesByLabel(labelKey string, labelValue string) ([]kextensions.Ingress, error)
- func (c *Client) ListIngressesByLabels(labels map[string]string) ([]kextensions.Ingress, error)
- func (c *Client) ListIngressesWithLabelKeys(labelKeys ...string) ([]kextensions.Ingress, error)
- func (c *Client) ListJobs(opts *kmeta.ListOptions) ([]kbatch.Job, error)
- func (c *Client) ListJobsByLabel(labelKey string, labelValue string) ([]kbatch.Job, error)
- func (c *Client) ListJobsByLabels(labels map[string]string) ([]kbatch.Job, error)
- func (c *Client) ListJobsWithLabelKeys(labelKeys ...string) ([]kbatch.Job, error)
- func (c *Client) ListNodes(opts *kmeta.ListOptions) ([]kcore.Node, error)
- func (c *Client) ListNodesByLabel(labelKey string, labelValue string) ([]kcore.Node, error)
- func (c *Client) ListNodesByLabels(labels map[string]string) ([]kcore.Node, error)
- func (c *Client) ListNodesWithLabelKeys(labelKeys ...string) ([]kcore.Node, error)
- func (c *Client) ListPods(opts *kmeta.ListOptions) ([]kcore.Pod, error)
- func (c *Client) ListPodsByLabel(labelKey string, labelValue string) ([]kcore.Pod, error)
- func (c *Client) ListPodsByLabels(labels map[string]string) ([]kcore.Pod, error)
- func (c *Client) ListPodsWithLabelKeys(labelKeys ...string) ([]kcore.Pod, error)
- func (c *Client) ListSecrets(opts *kmeta.ListOptions) ([]kcore.Secret, error)
- func (c *Client) ListSecretsByLabel(labelKey string, labelValue string) ([]kcore.Secret, error)
- func (c *Client) ListSecretsByLabels(labels map[string]string) ([]kcore.Secret, error)
- func (c *Client) ListSecretsWithLabelKeys(labelKeys ...string) ([]kcore.Secret, error)
- func (c *Client) ListServices(opts *kmeta.ListOptions) ([]kcore.Service, error)
- func (c *Client) ListServicesByLabel(labelKey string, labelValue string) ([]kcore.Service, error)
- func (c *Client) ListServicesByLabels(labels map[string]string) ([]kcore.Service, error)
- func (c *Client) ListServicesWithLabelKeys(labelKeys ...string) ([]kcore.Service, error)
- func (c *Client) ListVirtualServices(opts *kmeta.ListOptions) ([]istioclientnetworking.VirtualService, error)
- func (c *Client) ListVirtualServicesByLabel(labelKey string, labelValue string) ([]istioclientnetworking.VirtualService, error)
- func (c *Client) ListVirtualServicesByLabels(labels map[string]string) ([]istioclientnetworking.VirtualService, error)
- func (c *Client) ListVirtualServicesWithLabelKeys(labelKeys ...string) ([]istioclientnetworking.VirtualService, error)
- func (c *Client) UpdateConfigMap(configMap *kcore.ConfigMap) (*kcore.ConfigMap, error)
- func (c *Client) UpdateDeployment(deployment *kapps.Deployment) (*kapps.Deployment, error)
- func (c *Client) UpdateHPA(hpa *kautoscaling.HorizontalPodAutoscaler) (*kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) UpdateIngress(ingress *kextensions.Ingress) (*kextensions.Ingress, error)
- func (c *Client) UpdateJob(job *kbatch.Job) (*kbatch.Job, error)
- func (c *Client) UpdatePod(pod *kcore.Pod) (*kcore.Pod, error)
- func (c *Client) UpdateSecret(secret *kcore.Secret) (*kcore.Secret, error)
- func (c *Client) UpdateService(existing, updated *kcore.Service) (*kcore.Service, error)
- func (c *Client) UpdateVirtualService(existing, updated *istioclientnetworking.VirtualService) (*istioclientnetworking.VirtualService, error)
- func (c *Client) VirtualServiceClient() istionetworkingclient.VirtualServiceInterface
- func (c *Client) WaitForPodRunning(name string, numSeconds int) error
- type ConfigMapSpec
- type DeploymentSpec
- type Destination
- type HPASpec
- type IngressSpec
- type JobSpec
- type PodSpec
- type PodStatus
- type Quantity
- func (quantity *Quantity) Add(q2 kresource.Quantity)
- func (quantity *Quantity) AddQty(q2 Quantity)
- func (quantity *Quantity) DeepCopy() Quantity
- func (quantity *Quantity) Equal(quantity2 Quantity) bool
- func (quantity *Quantity) ID() string
- func (quantity Quantity) MarshalBinary() ([]byte, error)
- func (quantity Quantity) MarshalJSON() ([]byte, error)
- func (quantity Quantity) MarshalText() ([]byte, error)
- func (quantity Quantity) MarshalYAML() (interface{}, error)
- func (quantity *Quantity) MilliString() string
- func (quantity *Quantity) String() string
- func (quantity *Quantity) Sub(q2 kresource.Quantity)
- func (quantity *Quantity) SubQty(q2 Quantity)
- func (quantity *Quantity) ToFloat32() float32
- func (quantity *Quantity) ToKiCeil() int64
- func (quantity *Quantity) ToKiCeilStr() string
- func (quantity *Quantity) ToKiFloor() int64
- func (quantity *Quantity) ToKiFloorStr() string
- func (quantity *Quantity) ToKiRounded() int64
- func (quantity *Quantity) ToKiRoundedStr() string
- func (quantity *Quantity) ToMiCeil() int64
- func (quantity *Quantity) ToMiCeilStr() string
- func (quantity *Quantity) ToMiFloor() int64
- func (quantity *Quantity) ToMiFloorStr() string
- func (quantity *Quantity) ToMiRounded() int64
- func (quantity *Quantity) ToMiRoundedStr() string
- func (quantity *Quantity) UnmarshalBinary(data []byte) error
- func (quantity *Quantity) UnmarshalJSON(data []byte) error
- func (quantity *Quantity) UnmarshalText(data []byte) error
- func (quantity *Quantity) UnmarshalYAML(unmarshal func(interface{}) error) error
- type QuantityValidation
- type SecretSpec
- type ServiceSpec
- type VirtualServiceSpec
Constants ¶
View Source
const ( ErrLabelNotFound = "k8s.label_not_found" ErrAnnotationNotFound = "k8s.annotation_not_found" ErrParseLabel = "k8s.parse_label" ErrParseAnnotation = "k8s.parse_annotation" ErrParseQuantity = "k8s.parse_quantity" ErrMissingMetrics = "k8s.missing_metrics" ErrServiceNotFound = "k8s.service_not_found" )
View Source
const ( ReasonEvicted = "Evicted" ReasonOOMKilled = "OOMKilled" ReasonCompleted = "Completed" )
pod termination reasons https://github.com/kubernetes/kube-state-metrics/blob/master/docs/pod-metrics.md
Variables ¶
This section is empty.
Functions ¶
func ConfigMap ¶ added in v0.7.0
func ConfigMap(spec *ConfigMapSpec) *kcore.ConfigMap
func ConfigMapMap ¶ added in v0.7.0
func Deployment ¶
func Deployment(spec *DeploymentSpec) *kapps.Deployment
func DeploymentMap ¶
func DeploymentMap(deployments []kapps.Deployment) map[string]kapps.Deployment
func DeploymentStartTime ¶
func DeploymentStartTime(deployment *kapps.Deployment) *time.Time
func DeploymentStrategiesMatch ¶ added in v0.13.0
func DeploymentStrategiesMatch(s1, s2 kapps.DeploymentStrategy) bool
func EmptyDirVolume ¶
func EmptyDirVolumeMount ¶
func EmptyDirVolumeMount(volumeName string, mountPath string) kcore.VolumeMount
func ErrorAnnotationNotFound ¶ added in v0.15.0
func ErrorLabelNotFound ¶ added in v0.15.0
func ErrorMissingMetrics ¶ added in v0.33.0
func ErrorMissingMetrics() error
func ErrorParseAnnotation ¶ added in v0.15.0
func ErrorParseLabel ¶ added in v0.15.0
func ErrorParseQuantity ¶ added in v0.9.0
func ErrorServiceNotFound ¶ added in v0.34.0
func ExtractVirtualServiceEndpoints ¶ added in v0.13.0
func ExtractVirtualServiceEndpoints(virtualService *istioclientnetworking.VirtualService) strset.Set
func ExtractVirtualServiceGateways ¶ added in v0.13.0
func ExtractVirtualServiceGateways(virtualService *istioclientnetworking.VirtualService) strset.Set
func FieldSelectorNotIn ¶
func GetAnnotation ¶ added in v0.14.0
func GetPodConditionOf ¶ added in v0.40.0
func GetPodConditionOf(pod *kcore.Pod, podType kcore.PodConditionType) (*bool, *kcore.PodCondition)
func HPA ¶ added in v0.6.0
func HPA(spec *HPASpec) (*kautoscaling.HorizontalPodAutoscaler, error)
func HPAMap ¶ added in v0.6.0
func HPAMap(hpas []kautoscaling.HorizontalPodAutoscaler) map[string]kautoscaling.HorizontalPodAutoscaler
func HowManyPodsFitOnNode ¶ added in v0.40.0
func Ingress ¶
func Ingress(spec *IngressSpec) *kextensions.Ingress
func IngressMap ¶
func IngressMap(ingresses []kextensions.Ingress) map[string]kextensions.Ingress
func IsHPAUpToDate ¶ added in v0.7.0
func IsHPAUpToDate(hpa *kautoscaling.HorizontalPodAutoscaler, minReplicas, maxReplicas, targetCPUUtilization, targetMemUtilization int32) bool
func IsPodReady ¶ added in v0.7.0
func IsPodStalled ¶ added in v0.40.0
func LabelExistsSelector ¶ added in v0.13.0
func ParseBoolAnnotation ¶ added in v0.14.0
func ParseBoolLabel ¶ added in v0.15.0
func ParseDurationAnnotation ¶ added in v0.14.0
func ParseDurationLabel ¶ added in v0.15.0
func ParseFloat32Annotation ¶ added in v0.14.0
func ParseFloat32Label ¶ added in v0.15.0
func ParseFloat64Annotation ¶ added in v0.14.0
func ParseFloat64Label ¶ added in v0.15.0
func ParseInt32Annotation ¶ added in v0.14.0
func ParseInt32Label ¶ added in v0.15.0
func ParseInt64Annotation ¶ added in v0.14.0
func ParseInt64Label ¶ added in v0.15.0
func ParseIntAnnotation ¶ added in v0.14.0
func PodComputesEqual ¶ added in v0.13.0
func QuantityParser ¶ added in v0.11.0
func QuantityParser(v *QuantityValidation) func(string) (interface{}, error)
func QuantityPtr ¶ added in v0.11.0
func QuantityPtrID ¶ added in v0.11.0
func QuantityPtrsEqual ¶ added in v0.11.0
func RandomName ¶ added in v0.13.0
func RandomName() string
to be safe, k8s sometimes needs all characters to be lower case, and the first to be a letter
func Secret ¶ added in v0.21.0
func Secret(spec *SecretSpec) *kcore.Secret
func Service ¶
func Service(spec *ServiceSpec) *kcore.Service
func ToKiCeilStr ¶ added in v0.37.0
func ToKiFloorStr ¶ added in v0.37.0
func ToKiRounded ¶ added in v0.37.0
func ToKiRoundedStr ¶ added in v0.37.0
func ToMiCeilStr ¶ added in v0.37.0
func ToMiFloorStr ¶ added in v0.37.0
func ToMiRounded ¶ added in v0.37.0
func ToMiRoundedStr ¶ added in v0.37.0
func TotalPodCompute ¶ added in v0.13.0
func ValidNameContainer ¶
ValidNameContainer ensures name contains only lower case alphanumeric or '-', must start with alphabetic, end with alphanumeric
func VirtualService ¶ added in v0.8.0
func VirtualService(spec *VirtualServiceSpec) *istioclientnetworking.VirtualService
func WasPodOOMKilled ¶ added in v0.19.0
Types ¶
type Client ¶
type Client struct { ctrl.Client RestConfig *kclientrest.Config Namespace string // contains filtered or unexported fields }
func (*Client) ApplyConfigMap ¶ added in v0.7.0
func (*Client) ApplyDeployment ¶ added in v0.7.0
func (c *Client) ApplyDeployment(deployment *kapps.Deployment) (*kapps.Deployment, error)
func (*Client) ApplyHPA ¶ added in v0.7.0
func (c *Client) ApplyHPA(hpa *kautoscaling.HorizontalPodAutoscaler) (*kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) ApplyIngress ¶ added in v0.7.0
func (c *Client) ApplyIngress(ingress *kextensions.Ingress) (*kextensions.Ingress, error)
func (*Client) ApplySecret ¶ added in v0.21.0
func (*Client) ApplyService ¶ added in v0.7.0
func (*Client) ApplyVirtualService ¶ added in v0.8.0
func (c *Client) ApplyVirtualService(virtualService *istioclientnetworking.VirtualService) (*istioclientnetworking.VirtualService, error)
func (*Client) ClientSet ¶ added in v0.38.0
func (c *Client) ClientSet() *kclientset.Clientset
func (*Client) CreateConfigMap ¶ added in v0.7.0
func (*Client) CreateDeployment ¶
func (c *Client) CreateDeployment(deployment *kapps.Deployment) (*kapps.Deployment, error)
func (*Client) CreateHPA ¶ added in v0.6.0
func (c *Client) CreateHPA(hpa *kautoscaling.HorizontalPodAutoscaler) (*kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) CreateIngress ¶
func (c *Client) CreateIngress(ingress *kextensions.Ingress) (*kextensions.Ingress, error)
func (*Client) CreateSecret ¶ added in v0.21.0
func (*Client) CreateService ¶
func (*Client) CreateVirtualService ¶ added in v0.8.0
func (c *Client) CreateVirtualService(virtualService *istioclientnetworking.VirtualService) (*istioclientnetworking.VirtualService, error)
func (*Client) DeleteConfigMap ¶ added in v0.7.0
func (*Client) DeleteJobs ¶ added in v0.19.0
func (c *Client) DeleteJobs(opts *kmeta.ListOptions) (bool, error)
func (*Client) DeleteSecret ¶ added in v0.21.0
func (*Client) DeleteVirtualService ¶ added in v0.8.0
func (*Client) Exec ¶ added in v0.14.0
Example of running a shell command: []string{"/bin/bash", "-c", "ps aux | grep my-proc"}
func (*Client) GetConfigMap ¶ added in v0.7.0
func (*Client) GetConfigMapData ¶ added in v0.7.0
func (*Client) GetDeployment ¶
func (c *Client) GetDeployment(name string) (*kapps.Deployment, error)
func (*Client) GetHPA ¶ added in v0.6.0
func (c *Client) GetHPA(name string) (*kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) GetIngress ¶
func (c *Client) GetIngress(name string) (*kextensions.Ingress, error)
func (*Client) GetSecretData ¶ added in v0.21.0
func (*Client) GetVirtualService ¶ added in v0.8.0
func (c *Client) GetVirtualService(name string) (*istioclientnetworking.VirtualService, error)
func (*Client) InternalServiceEndpoint ¶ added in v0.34.0
func (*Client) IsJobRunning ¶ added in v0.7.0
func (*Client) IstioClientSet ¶ added in v0.38.0
func (c *Client) IstioClientSet() *istioclient.Clientset
func (*Client) ListConfigMaps ¶ added in v0.7.0
func (*Client) ListConfigMapsByLabel ¶ added in v0.7.0
func (*Client) ListConfigMapsByLabels ¶ added in v0.7.0
func (*Client) ListConfigMapsWithLabelKeys ¶ added in v0.13.0
func (*Client) ListDeployments ¶
func (c *Client) ListDeployments(opts *kmeta.ListOptions) ([]kapps.Deployment, error)
func (*Client) ListDeploymentsByLabel ¶
func (*Client) ListDeploymentsByLabels ¶
func (*Client) ListDeploymentsWithLabelKeys ¶ added in v0.13.0
func (c *Client) ListDeploymentsWithLabelKeys(labelKeys ...string) ([]kapps.Deployment, error)
func (*Client) ListHPAs ¶ added in v0.6.0
func (c *Client) ListHPAs(opts *kmeta.ListOptions) ([]kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) ListHPAsByLabel ¶ added in v0.6.0
func (c *Client) ListHPAsByLabel(labelKey string, labelValue string) ([]kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) ListHPAsByLabels ¶ added in v0.6.0
func (c *Client) ListHPAsByLabels(labels map[string]string) ([]kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) ListHPAsWithLabelKeys ¶ added in v0.13.0
func (c *Client) ListHPAsWithLabelKeys(labelKeys ...string) ([]kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) ListIngresses ¶
func (c *Client) ListIngresses(opts *kmeta.ListOptions) ([]kextensions.Ingress, error)
func (*Client) ListIngressesByLabel ¶
func (*Client) ListIngressesByLabels ¶
func (*Client) ListIngressesWithLabelKeys ¶ added in v0.13.0
func (c *Client) ListIngressesWithLabelKeys(labelKeys ...string) ([]kextensions.Ingress, error)
func (*Client) ListJobsByLabel ¶
func (*Client) ListJobsByLabels ¶
func (*Client) ListJobsWithLabelKeys ¶ added in v0.13.0
func (*Client) ListNodesByLabel ¶ added in v0.17.0
func (*Client) ListNodesByLabels ¶ added in v0.17.0
func (*Client) ListNodesWithLabelKeys ¶ added in v0.17.0
func (*Client) ListPodsByLabel ¶
func (*Client) ListPodsByLabels ¶
func (*Client) ListPodsWithLabelKeys ¶ added in v0.13.0
func (*Client) ListSecrets ¶ added in v0.21.0
func (*Client) ListSecretsByLabel ¶ added in v0.21.0
func (*Client) ListSecretsByLabels ¶ added in v0.21.0
func (*Client) ListSecretsWithLabelKeys ¶ added in v0.21.0
func (*Client) ListServices ¶
func (*Client) ListServicesByLabel ¶
func (*Client) ListServicesByLabels ¶
func (*Client) ListServicesWithLabelKeys ¶ added in v0.13.0
func (*Client) ListVirtualServices ¶ added in v0.8.0
func (c *Client) ListVirtualServices(opts *kmeta.ListOptions) ([]istioclientnetworking.VirtualService, error)
func (*Client) ListVirtualServicesByLabel ¶ added in v0.8.0
func (c *Client) ListVirtualServicesByLabel(labelKey string, labelValue string) ([]istioclientnetworking.VirtualService, error)
func (*Client) ListVirtualServicesByLabels ¶ added in v0.8.0
func (c *Client) ListVirtualServicesByLabels(labels map[string]string) ([]istioclientnetworking.VirtualService, error)
func (*Client) ListVirtualServicesWithLabelKeys ¶ added in v0.13.0
func (c *Client) ListVirtualServicesWithLabelKeys(labelKeys ...string) ([]istioclientnetworking.VirtualService, error)
func (*Client) UpdateConfigMap ¶ added in v0.13.0
func (*Client) UpdateDeployment ¶
func (c *Client) UpdateDeployment(deployment *kapps.Deployment) (*kapps.Deployment, error)
func (*Client) UpdateHPA ¶ added in v0.6.0
func (c *Client) UpdateHPA(hpa *kautoscaling.HorizontalPodAutoscaler) (*kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) UpdateIngress ¶ added in v0.6.0
func (c *Client) UpdateIngress(ingress *kextensions.Ingress) (*kextensions.Ingress, error)
func (*Client) UpdateSecret ¶ added in v0.21.0
func (*Client) UpdateService ¶ added in v0.6.0
func (*Client) UpdateVirtualService ¶ added in v0.13.0
func (c *Client) UpdateVirtualService(existing, updated *istioclientnetworking.VirtualService) (*istioclientnetworking.VirtualService, error)
func (*Client) VirtualServiceClient ¶ added in v0.38.0
func (c *Client) VirtualServiceClient() istionetworkingclient.VirtualServiceInterface
type ConfigMapSpec ¶ added in v0.7.0
type DeploymentSpec ¶
type Destination ¶ added in v0.19.0
type IngressSpec ¶
type PodStatus ¶ added in v0.5.0
type PodStatus string
const ( PodStatusPending PodStatus = "Pending" PodStatusCreating PodStatus = "Creating" PodStatusNotReady PodStatus = "NotReady" PodStatusReady PodStatus = "Ready" PodStatusErrImagePull PodStatus = "ErrImagePull" PodStatusTerminating PodStatus = "Terminating" PodStatusFailed PodStatus = "Failed" PodStatusKilled PodStatus = "Killed" PodStatusKilledOOM PodStatus = "KilledOOM" PodStatusStalled PodStatus = "Stalled" PodStatusSucceeded PodStatus = "Succeeded" PodStatusUnknown PodStatus = "Unknown" )
func GetPodStatus ¶
func PodStatusFromContainerStatuses ¶ added in v0.8.0
func PodStatusFromContainerStatuses(containerStatuses []kcore.ContainerStatus) PodStatus
type Quantity ¶ added in v0.11.0
func NewMilliQuantity ¶ added in v0.16.0
func NewQuantity ¶ added in v0.16.0
func WrapQuantity ¶ added in v0.17.0
func (Quantity) MarshalBinary ¶ added in v0.11.0
func (Quantity) MarshalJSON ¶ added in v0.11.0
func (Quantity) MarshalText ¶ added in v0.11.0
func (Quantity) MarshalYAML ¶ added in v0.11.0
func (*Quantity) MilliString ¶ added in v0.19.0
func (*Quantity) ToKiCeilStr ¶ added in v0.37.0
func (*Quantity) ToKiFloorStr ¶ added in v0.37.0
func (*Quantity) ToKiRounded ¶ added in v0.37.0
func (*Quantity) ToKiRoundedStr ¶ added in v0.37.0
func (*Quantity) ToMiCeilStr ¶ added in v0.37.0
func (*Quantity) ToMiFloorStr ¶ added in v0.37.0
func (*Quantity) ToMiRounded ¶ added in v0.37.0
func (*Quantity) ToMiRoundedStr ¶ added in v0.37.0
func (*Quantity) UnmarshalBinary ¶ added in v0.11.0
func (*Quantity) UnmarshalJSON ¶ added in v0.11.0
func (*Quantity) UnmarshalText ¶ added in v0.11.0
func (*Quantity) UnmarshalYAML ¶ added in v0.11.0
type QuantityValidation ¶ added in v0.11.0
type SecretSpec ¶ added in v0.21.0
type ServiceSpec ¶
type VirtualServiceSpec ¶ added in v0.8.0
type VirtualServiceSpec struct { Name string Gateways []string ExactPath *string // either this or PrefixPath PrefixPath *string // either this or ExactPath Destinations []Destination Rewrite *string Labels map[string]string Annotations map[string]string Headers *istionetworking.Headers Retries *int32 }
Click to show internal directories.
Click to hide internal directories.