Documentation ¶
Index ¶
- func ResourceAlreadyExists(err error) bool
- func ResourceNotFound(err error) bool
- func RestConfig(kubeConfig string, outOfCluster bool) (*rest.Config, error)
- func SamePDB(cur, new *policybeta1.PodDisruptionBudget) (match bool, reason string)
- func SameService(cur, new *v1.Service) (match bool, reason string)
- type KubernetesClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceAlreadyExists ¶
ResourceAlreadyExists checks if error corresponds to Already exists error
func ResourceNotFound ¶
ResourceNotFound checks if error corresponds to Not found error
func RestConfig ¶
RestConfig creates REST config
func SamePDB ¶
func SamePDB(cur, new *policybeta1.PodDisruptionBudget) (match bool, reason string)
SamePDB compares the PodDisruptionBudgets
Types ¶
type KubernetesClient ¶
type KubernetesClient struct { v1core.SecretsGetter v1core.ServicesGetter v1core.EndpointsGetter v1core.PodsGetter v1core.PersistentVolumesGetter v1core.PersistentVolumeClaimsGetter v1core.ConfigMapsGetter v1core.NodesGetter v1core.NamespacesGetter v1core.ServiceAccountsGetter v1beta1.StatefulSetsGetter rbacv1beta1.RoleBindingsGetter policyv1beta1.PodDisruptionBudgetsGetter apiextbeta1.CustomResourceDefinitionsGetter RESTClient rest.Interface CRDREST rest.Interface }
KubernetesClient describes getters for Kubernetes objects
func NewFromConfig ¶
func NewFromConfig(cfg *rest.Config) (KubernetesClient, error)
NewFromConfig create Kubernets Interface using REST config
Click to show internal directories.
Click to hide internal directories.