Documentation ¶
Index ¶
Constants ¶
View Source
const ( RestClientOk = iota RestClientGenericError RestClientInvalidTypeError )
View Source
const (
// https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/deployment/util/deployment_util.go#L93
TimedOutReason = "ProgressDeadlineExceeded"
)
Variables ¶
This section is empty.
Functions ¶
func GetDeploymentCondition ¶
func GetDeploymentCondition(status apps_v1.DeploymentStatus, condType apps_v1.DeploymentConditionType) *apps_v1.DeploymentCondition
GetDeploymentConditionInternal returns the condition with the provided type. Borrowed from: https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/deployment/util/deployment_util.go#L135
Types ¶
type KubeProvider ¶
type KubeProvider struct { MainClientset *kubernetes.Clientset RestConfig restclient.Config AggregatorClientset *aggregator.Clientset }
func (*KubeProvider) ToDiscoveryClient ¶
func (p *KubeProvider) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*KubeProvider) ToRESTConfig ¶
func (p *KubeProvider) ToRESTConfig() (*restclient.Config, error)
func (*KubeProvider) ToRESTMapper ¶
func (p *KubeProvider) ToRESTMapper() (meta.RESTMapper, error)
func (*KubeProvider) ToRawKubeConfigLoader ¶
func (p *KubeProvider) ToRawKubeConfigLoader() clientcmd.ClientConfig
type RestClientResult ¶
type RestClientResult struct { ResourceInterface dynamic.ResourceInterface Error error Status RestClientStatus }
func RestClientResultFromErr ¶
func RestClientResultFromErr(err error) *RestClientResult
func RestClientResultFromInvalidTypeErr ¶
func RestClientResultFromInvalidTypeErr(err error) *RestClientResult
func RestClientResultSuccess ¶
func RestClientResultSuccess(resourceInterface dynamic.ResourceInterface) *RestClientResult
type RestClientStatus ¶
type RestClientStatus int
Click to show internal directories.
Click to hide internal directories.