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 ¶
- func ClientSetForDistribution(distributionName string) (clientset *kubernetes.Clientset, err error)
- func GetPodStatus(clientset kubernetes.Interface) (active, unready, stopped []*v1.Pod, err error)
- func GetPodsSeparatedByStatus(pods []v1.Pod) (active, unready, stopped []*v1.Pod)
- func IsPodReady(pod *v1.Pod) bool
- func MergeKubernetesConfig(distributionName string) (err error)
- func RemoveKubernetesConfig(distributionName string) (err error)
- type RESTClientGetter
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 IsPodReady ¶
IsPodReady returns false if the Pod Status is nil
func MergeKubernetesConfig ¶
func RemoveKubernetesConfig ¶
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
Click to show internal directories.
Click to hide internal directories.