k8s

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2021 Antoine Martin <antoine@openance.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientSetForDistribution

func ClientSetForDistribution(distributionName string) (clientset *kubernetes.Clientset, err error)

func GetPodStatus

func GetPodStatus(clientset kubernetes.Interface) (active, unready, stopped []*v1.Pod, err error)

func GetPodsSeparatedByStatus

func GetPodsSeparatedByStatus(pods []v1.Pod) (active, unready, stopped []*v1.Pod)

func IsPodReady

func IsPodReady(pod *v1.Pod) bool

IsPodReady returns false if the Pod Status is nil

func MergeKubernetesConfig

func MergeKubernetesConfig(distributionName string) (err error)

func RemoveKubernetesConfig

func RemoveKubernetesConfig(distributionName string) (err error)

Types

type RESTClientGetter added in v0.3.8

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

func NewRESTClientForDistribution added in v0.3.8

func NewRESTClientForDistribution(distributionName string) (*RESTClientGetter, error)

func NewRESTClientFromConfig added in v0.3.8

func NewRESTClientFromConfig(config *api.Config) *RESTClientGetter

func (*RESTClientGetter) ToDiscoveryClient added in v0.3.8

func (r *RESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*RESTClientGetter) ToRESTConfig added in v0.3.8

func (r *RESTClientGetter) ToRESTConfig() (*rest.Config, error)

func (*RESTClientGetter) ToRESTMapper added in v0.3.8

func (r *RESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)

func (*RESTClientGetter) ToRawKubeConfigLoader added in v0.3.8

func (r *RESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig

Jump to

Keyboard shortcuts

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