mongodb: kubedb.dev/mongodb/pkg/admission Index | Files

package admission

import "kubedb.dev/mongodb/pkg/admission"

Index

Package Files

mutator.go validator.go

func ValidateMongoDB Uses

func ValidateMongoDB(client kubernetes.Interface, extClient cs.Interface, mongodb *api.MongoDB, strictValidation bool) error

ValidateMongoDB checks if the object satisfies all the requirements. It is not method of Interface, because it is referenced from controller package too.

type MongoDBMutator Uses

type MongoDBMutator struct {
    // contains filtered or unexported fields
}

func (*MongoDBMutator) Admit Uses

func (a *MongoDBMutator) Admit(req *admission.AdmissionRequest) *admission.AdmissionResponse

func (*MongoDBMutator) Initialize Uses

func (a *MongoDBMutator) Initialize(config *rest.Config, stopCh <-chan struct{}) error

func (*MongoDBMutator) Resource Uses

func (a *MongoDBMutator) Resource() (plural schema.GroupVersionResource, singular string)

type MongoDBValidator Uses

type MongoDBValidator struct {
    // contains filtered or unexported fields
}

func (*MongoDBValidator) Admit Uses

func (a *MongoDBValidator) Admit(req *admission.AdmissionRequest) *admission.AdmissionResponse

func (*MongoDBValidator) Initialize Uses

func (a *MongoDBValidator) Initialize(config *rest.Config, stopCh <-chan struct{}) error

func (*MongoDBValidator) Resource Uses

func (a *MongoDBValidator) Resource() (plural schema.GroupVersionResource, singular string)

Package admission imports 23 packages (graph) and is imported by 6 packages. Updated 2019-07-22. Refresh now. Tools for package owners.