k8sutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceAlreadyExists

func ResourceAlreadyExists(err error) bool

ResourceAlreadyExists checks if error corresponds to Already exists error

func ResourceNotFound

func ResourceNotFound(err error) bool

ResourceNotFound checks if error corresponds to Not found error

func RestConfig

func RestConfig(kubeConfig string, outOfCluster bool) (*rest.Config, error)

RestConfig creates REST config

func SameLogicalBackupJob added in v1.2.0

func SameLogicalBackupJob(cur, new *batchv1beta1.CronJob) (match bool, reason string)

SameLogicalBackupJob compares Specs of logical backup cron jobs

func SamePDB

func SamePDB(cur, new *policybeta1.PodDisruptionBudget) (match bool, reason string)

SamePDB compares the PodDisruptionBudgets

func SameService

func SameService(cur, new *v1.Service) (match bool, reason string)

SameService compares the Services

Types

type MockConfigMapsGetter added in v1.2.0

type MockConfigMapsGetter struct {
}

func (*MockConfigMapsGetter) ConfigMaps added in v1.2.0

func (c *MockConfigMapsGetter) ConfigMaps(namespace string) v1core.ConfigMapInterface

ConfigMaps to be mocked

type MockSecretGetter added in v1.2.0

type MockSecretGetter struct {
}

func (*MockSecretGetter) Secrets added in v1.2.0

func (c *MockSecretGetter) Secrets(namespace string) v1core.SecretInterface

Secrets to be mocked

Jump to

Keyboard shortcuts

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