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

package admission

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

Index

Package Files

mutator.go validator.go

func ValidatePostgres Uses

func ValidatePostgres(client kubernetes.Interface, extClient cs.Interface, postgres *api.Postgres, strictValidation bool) error

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

type PostgresMutator Uses

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

func (*PostgresMutator) Admit Uses

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

func (*PostgresMutator) Initialize Uses

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

func (*PostgresMutator) Resource Uses

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

type PostgresValidator Uses

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

func (*PostgresValidator) Admit Uses

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

func (*PostgresValidator) Initialize Uses

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

func (*PostgresValidator) Resource Uses

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

Package admission imports 24 packages (graph) and is imported by 6 packages. Updated 2019-10-11. Refresh now. Tools for package owners.