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 ¶ added in v1.9.2
type RestClientResult struct { ResourceInterface dynamic.ResourceInterface Error error Status RestClientStatus }
func RestClientResultFromErr ¶ added in v1.9.2
func RestClientResultFromErr(err error) *RestClientResult
func RestClientResultFromInvalidTypeErr ¶ added in v1.9.2
func RestClientResultFromInvalidTypeErr(err error) *RestClientResult
func RestClientResultSuccess ¶ added in v1.9.2
func RestClientResultSuccess(resourceInterface dynamic.ResourceInterface) *RestClientResult
type RestClientStatus ¶ added in v1.9.2
type RestClientStatus int
Click to show internal directories.
Click to hide internal directories.