Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrObjectHasParents = fmt.Errorf("This object has parents")
ErrObjectHasParents is returned when the resource being created is the child of another resource
var ErrObjectHasZeroReplicas = fmt.Errorf("This object has zero replicas")
ErrObjectHasZeroReplicas is returned when the resource being created has zero replicas
Functions ¶
This section is empty.
Types ¶
type Auths ¶
type Auths struct {
Registries RegistriesStruct `json:"auths"`
}
Auths struct contains an embedded RegistriesStruct of name auths
type RegistriesStruct ¶
type RegistriesStruct map[string]struct { Username string `json:"username"` Password string `json:"password"` Email string `json:"email"` Auth string `json:"auth"` }
RegistriesStruct is a map of registries
type Wrapper ¶
type Wrapper struct {
kubernetes.Interface
}
Wrapper is a wrapper around kubeclientset that includes some helper functions for applying behaviour to kube resources
func NewKubeClientsetWrapper ¶
func NewKubeClientsetWrapper(kubeClientset kubernetes.Interface) *Wrapper
NewKubeClientsetWrapper creates a wrapper from the kubeclientset passed in
func (*Wrapper) GetPodSpec ¶
GetPodSpec retrieves the podspec from the admission request passed in
type WrapperInterface ¶
type WrapperInterface interface { kubernetes.Interface GetPodSpec(*v1beta1.AdmissionRequest) (string, *corev1.PodSpec, error) GetSecretToken(namespace, secretName, registry string, defaultPull bool) (string, string, error) }
WrapperInterface is the interface for a wrapper around kubeclientset that includes some helper functions for applying behaviour to kube resources